How to set RichEditBox text binding in code

I can set the text in the RichEditBox through the Document Property, but I would like to associate the text with the RichTextBox with my model. I could easily bind to a TextBox, but I don’t know how to do this with RichEditBox, any help would be appreciated :)

+4
source share
2 answers

I created a new control that inherits from the original RichEditBox. It contains an additional RtfText dependency property that I can bind.

Source Code RichEditBoxExtended

It works for me!

+2
source

Document, . , RichTextBox, , . , .

+1

Source: https://habr.com/ru/post/1536962/


All Articles