8,735
社区成员
发帖
与我相关
我的任务
分享
BitmapImage tempBitmap = new BitmapImage();
using (var tempStream = tempItem.OpenRead())
{
tempBitmap.SetSource(tempStream);
}
Image tempImg = new Image();
tempImg.MouseEnter += (s, ee) =>
{
MessageBox.Show("adf");
};
tempImg.Source = tempBitmap;
InlineUIContainer tempInlineUIContainer = new InlineUIContainer();
tempInlineUIContainer.Child = tempImg;
richTextBox1.Selection.Insert(tempInlineUIContainer);
richTextBox1.Focus();