I want to have an instance of AvalonEdit that is readonly and I have a property in my viewmodel that looks liks this
public string SavedText => _document.Text;
public string SavedText => _document.Text;
I notify this property of change in one of my methods and it updates but the text of the readonly editor doesn't. The binding is OneWay and I have tried for example making a setter that does nothing for the property and the problem is solved for some reason. Note that whenever I call
OnPropertyChanged(nameof(SavedText))
OnPropertyChanged(nameof(SavedText))
the property's value is updated but the callback function in the behavior is not called.
I want a readonly property (doesn't make sense for it not to be) and a readonly editor and when the property is notified of changed the editor's text updates as well.
I want to include an AvalonEdit TextEditor control into my MVVM application. The first thing I require is to be able to bind to the TextEditor.Text property so that I can display text. To do this I...