You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using AvalonEdit, in my VM there's a TextDocument, which is used to logically control the TextEditor in the view, so it is not a view/control, so it is not wrong for me to put it in the VM. But the TextDocument not allow access from other thread except the main thread (even if only read, not write). So when I call Validate, it show me an exception.
And I use MvvmValidation as my underlying validation framework.
It will call the lambda when Validate called. So the ApplicationsDocument will accessed from other thread.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm using AvalonEdit, in my VM there's a
TextDocument, which is used to logically control theTextEditorin the view, so it is not a view/control, so it is not wrong for me to put it in the VM. But theTextDocumentnot allow access from other thread except the main thread (even if only read, not write). So when I callValidate, it show me an exception.And I use MvvmValidation as my underlying validation framework.
It will call the lambda when
Validatecalled. So theApplicationsDocumentwill accessed from other thread.All reactions