I have two kinds of menu items according to the login. So, by using the property in the ViewModel Class
bool IsAdmin {get; set;}
I have to change the menu item content.I am not familiar with data template. I want to define all the menu items in the xaml itself (might be using the data templates). How we can bind the differnt menu items by using the data trigger. Can anyone can give a smaller example for this. using only this property and no c# codes.
Use ContentControl and Styles for max flexability in changing the view betwin Admin or not Admin views
Please keep in mind that you will have to implement the INPC interface on your VM in order to be able to change the state (is admin or not) on the fly.If not the change will be accepted only once(on the creation of the class that is holding the IsAdmin property). Here is the INPC implementation example: