I want to change the .ico depending on which Checkbox is checked:
<MenuItem Header="_Online" Command="{Binding SetStatusOnlineCommand}" />
<MenuItem Header="_Away" Command="{Binding SetStatusAwayCommand}" />
<MenuItem Header="_Offline" Command="{Binding SetStatusOfflineCommand}" />
Since I am using MVVM Light and it's SimpleIoC I don't know how to achieve this.
My ViewModel doesn't know the Window it's representing, and thus I can't change the Icon of the Window. My Window get's it DataContext inside XAML via the localter:
<DockPanel x:Name="MainPanel" DataContext="{Binding MainViewModel, Source={StaticResource Locator}}">
I wanted to create a PropertyChangeEvent inside my ViewModel. The Window registers to this event, but since I am instanciating via the Locator inside my XAML, I don't have access to it from my Window, or am I wrong?!
I could use OnChange-Events ... but then I will break the MVVM pattern. Does anyone have a nice idea ho to achieve this?!