Windows phone 8.1 在Windows Phone 8.1的RichEditbox控件中删除图像
我正在尝试使用下面的代码在windowsphone应用程序的richeditbox控件中插入内联图像Windows phone 8.1 在Windows Phone 8.1的RichEditbox控件中删除图像,windows-phone-8.1,richeditbox,Windows Phone 8.1,Richeditbox,我正在尝试使用下面的代码在windowsphone应用程序的richeditbox控件中插入内联图像 FileOpenPicker openPicker = new FileOpenPicker(); openPicker.ViewMode = PickerViewMode.Thumbnail; openPicker.SuggestedStartLocation =PickerLocationId.PicturesLibrary; openPick
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation =PickerLocationId.PicturesLibrary;
openPicker.FileTypeFilter.Add(".jpg");
openPicker.FileTypeFilter.Add(".jpeg");
openPicker.FileTypeFilter.Add(".png");
openPicker.PickSingleFileAndContinue();
var imagefile=args.Files[0];
IRandomAccessStream stream= await imagefile.OpenAsync(Windows.Storage.FileAccessMode.Read);
Notebox.Document.Selection.InsertImage(215,152,25,Windows.UI.Text.VerticalCharacterAlignment.Baseline,imagefile.DisplayName,stream);
但用户只能使用backspaceDelete键擦除文本,而不能擦除图像。请为我提供一个解决方案。或者,我是否可以为用户提供任何其他方式/控件,以便在用户需要时输入文本、插入图像和删除它们