I need to change a field in a ViewModel from another class statically (MVVM)

My XAML

<ImageBrush ImageSource="{Binding FillTextSource}" > 

ViewModel

public string FillTextSource { get { return _fillTextSource; } set { _fillTextSource = value; OnPropertyChanged(); } } 

So I need to change FillTextSource in a different class, but I need to do it statically. So something like

ViewModel.FillTextSource = "ThisIsAGreenThing"; 

I think i've got something terribly wrong somewhere…

by lewisj489 via /r/csharp

Leave a Reply