Hi, in some MVVM scenarios developers don't want to use singleton instance of command.
I personally don't like creating commands in my viewmodel for LayoutContent
In such cases LayoutContent instance must be passed as parameter to the command.
I think CommandParameter should be binded in default theme.
for examle:
<MenuItem Header="Close"
Command="{Binding Path=CloseCommand}"/>
CommandParameter="{Binding Model}"/>
Comments: ** Comment from web user: Liero **
I personally don't like creating commands in my viewmodel for LayoutContent
In such cases LayoutContent instance must be passed as parameter to the command.
I think CommandParameter should be binded in default theme.
for examle:
<MenuItem Header="Close"
Command="{Binding Path=CloseCommand}"/>
CommandParameter="{Binding Model}"/>
Comments: ** Comment from web user: Liero **
E