InlineUIContainer
filepath = openFileDialog.FileName; Image img = new Image(); BitmapImage bImg = new BitmapImage(); img.IsEnabled = true; bImg.BeginInit(); bImg.UriSource = new Uri(filepath, UriKind.Relative); bImg.EndInit(); img.Source = bImg; img.MouseEnter += new MouseEventHandler(img_MouseEnter); img.Stretch = Stretch.Uniform; new InlineUIContainer(img, richMain.Selection.Start);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)