1

以下のコードを使用して、Windowsphone アプリケーションの richeditbox コントロールにインライン画像を挿入しようとしています。

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); 

しかし、ユーザーはバックスペース (削除) キーを使用して、テキストのみを消去でき、画像は消去できませんでした。これに対する解決策を教えてください。または、ユーザーが必要に応じてテキストを入力したり、画像を挿入したり、両方を削除したりするために提供できる他の方法/コントロールはありますか。

4

0 に答える 0