Quantcast
Channel: AvalonDock
Viewing all articles
Browse latest Browse all 2690

Commented Issue: Use CommandParameter for close/hide/dock/float commands [15220]

$
0
0
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 **

E


Viewing all articles
Browse latest Browse all 2690

Trending Articles