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


<ImageBrush ImageSource="{Binding FillTextSource}" > 


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