Open danilwhale opened 7 months ago
I'm getting the same error 😠Versions:
11.0.5
11.0.5
One possible workaround seems to be binding to the Document
property of the TextEditor
instead of the Text
property, using a TextDocument
instance inside the view model.
One possible workaround seems to be binding to the
Document
property of theTextEditor
instead of theText
property, using aTextDocument
instance inside the view model.
That is, what I ended up using too. Its not pretty, because now my view model contains a type specific to the used UI/control.
The best practice at now is to create a converter that accept string
and return Document
.
For example:
i get this when trying to build project:
here is my code:
my Code property is string, no issues happen when i bind it to TextBlock