richeditbox

How to get the image already inside a RichEditBox in UWP

谁说胖子不能爱 提交于 2019-12-08 10:43:45
问题 I have a RichEditBox in UWP with an image already inserted inside. When the image was inserted it was given a certain width and height (in pixels). Now, after the image has been inserted, I would like to select the image and edit the dimensions. Is there any way to achieve this? Also, I have seen a similar thread that has an incorrect answer. Please remember this is for WINRT (UWP). How to get image from RichEditBox 回答1: I would like to select the image and edit the dimensions Firstly, you

Insert list in RichEditBox for Windows store application

那年仲夏 提交于 2019-12-08 10:04:31
问题 I develop text editor for the Windows store application (WinRT) based on RichEditBox control. RichEditBox use ITextParagraphFormat for paragraph operation and ListAlignment, ListLevelIndex and other properties for bulleted and numbered lists. I not found any samples to insert bulleted or numbered lists to RichEditBox. How I can to add lists to RichEditBox using ITextParagraphFormat? 回答1: You need to set the ITextParagraphFormat.ListType property for the ITextParagraphFormat. For bullet, set

How can I databind to the plain-text value of a RichEditBox in UWP?

不打扰是莪最后的温柔 提交于 2019-12-03 22:02:34
问题 With a normal TextBox in UWP, you can databind to the Text property and easily get or set the value from a ViewModel. The RichEditBox doesn't have a data-bindable Text property though; instead you have to use the ITextDocument interface exposed by the Document property and use various methods to get and set text. How can I databind the plain text to something in my ViewModel? 回答1: It is possible to data-bind the plain-text of a RichEditBox by using a custom attached property. This attached

UWP RichEditBox disable image resize

前提是你 提交于 2019-12-01 14:34:01
I'm trying to build a native editor in which i have a rich edit box in which i insert an image. I'm able to resize the image from the editor, how can I disable resizing. Al so how can i get the inserted image back. I'm able to resize the image from the editor, how can I disable resizing If you want to keep image original size and insert to RichEditBox , you could get the image PixelWidth and PixelHeight value with BitmapImage like the follow. Windows.Storage.Pickers.FileOpenPicker open = new Windows.Storage.Pickers.FileOpenPicker(); open.SuggestedStartLocation = Windows.Storage.Pickers