samhocevar / emoji.wpf

😸 Emoji support for WPF
Do What The F*ck You Want To Public License
369 stars 43 forks source link

Richtextbox append unexpected behavior #41

Closed ghost closed 1 year ago

ghost commented 3 years ago

If you try to append emoji from emoji picker to wpf:richtextbox when it already includes numbers. some extra emoji will replace the actual text

The code I use to append to richtextbox : private void Picker_Picked(object sender, Emoji.Wpf.EmojiPickedEventArgs e) { richtextbox.AppendText(e.Emoji); } steps:

before append : image

expected behavior when appending ☺️ emoji for example image

result: image

running system: Windows 10 1909 .NET 5 WPF

samhocevar commented 1 year ago

Hi! This was fixed some time ago in Emoji.Wpf v0.3.4. I am sorry, I missed this bug and forgot to follow up.