Search code examples
c#uwpricheditbox

UWP - Add inline element in RichEditBox


Background: I'm looking for a solution to make images in a RichEditBox resizable by the user. The problem is that according to this question there is no API to do so. Nevertheless, in the comments was mentioned that the questioner should have a look on ImageCropper.

Unfortunately, I found no possibility to insert any UWP container into a RichEditBox, like it is possible with InlineUIContainer for RichEditBlock. Is there any possibility to embed an inline element in a RichEditBox?


Solution

  • Add inline element in RichEditBox

    I'm afraid you can't insert inline element into RichEditBox. Currently UWP RichEditBox does not support add uielement. And for resizing image, we suggest you call InsertImage with different image size to replace current one.