I have a class in the ViewModel folder called "MainViewModel", and I want my datacontext to be set to the class. I am doing it the following way, somehow it doesnt seem to work. Does anyone have some ideas? Thanks.
xmlns:ViewModel="clr-namespace:***.***.ViewModel" <MenuItem Header="always visible" DataContext="{Binding ViewModel:MainViewModel}" IsCheckable="True" IsChecked="{Binding MenuVisible}" /> Many thanks.