get curson position in richtextobx
WCF and WF
1
Posts
1
Posters
4
Views
1
Watching
-
hi i tried insert the emoticon in the richtectbox where it follows my cursor position.. but it always go to behind text
Image imgCtrl = new Image(); BitmapImage bmp = new BitmapImage(); bmp.BeginInit(); bmp.StreamSource = Application.GetResourceStream(new Uri("pic.jpg", UriKind.RelativeOrAbsolute)).Stream; bmp.EndInit(); imgCtrl.Source = bmp; InlineUIContainer iu = new InlineUIContainer(imgCtrl); TextPointer pos = richBox.CaretPosition; pos.Paragraph.Inlines.Add(iu);