EmojiRichTextBoxOnPreviewDragEnter - метод

Список перегрузок

OnPreviewDragEnter(DragEventArgs)Invoked when an unhandled PreviewDragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
OnPreviewDragEnter(DragEventArgs) Handle preview drag event in order to override the serialized data. By default WPF will not serialize embedded elements unless they are images (see [1]), so all our emojis get replaced with " ". To avoid this problem we get rid of the XAML and RTF serialisations and replace the dragged text with the current selection. [1] https://referencesource.microsoft.com/#PresentationFramework/src/Framework/System/windows/Documents/TextRangeSerialization.cs,1180

См. также