EmojiRichTextBoxOnPreviewDragEnter - метод
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
Пространство имён: Tessa.UI.Emoji.Wpf.ControlsСборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
protected override void OnPreviewDragEnter(
DragEventArgs e
)
Protected Overrides Sub OnPreviewDragEnter (
e As DragEventArgs
)
protected:
virtual void OnPreviewDragEnter(
DragEventArgs^ e
) override
abstract OnPreviewDragEnter :
e : DragEventArgs -> unit
override OnPreviewDragEnter :
e : DragEventArgs -> unit
Параметры
- e DragEventArgs