mvvm - Using Blend InvokeCommandAction on button in WPF -


i learning wpf using mvvm pattern. trying use invokecommandaction behavior on button. in blend, placed button on view. dragged invokecommandaction onto button.

blend displays properties tab. trigger set "click". set command closecommand : (icomamnd) in view using "create data binding" dialog.

this generates following xaml

<button x:name="closeapp" content="close" >     <i:interaction.triggers>     <i:eventtrigger eventname="click">     <i:invokecommandaction command="{binding closecommand}"/>     </i:eventtrigger> </i:interaction.triggers> </button> 

closecommand relaycommand : icommand msdn. project compiles, when click on button, command not execute. ideas, or sample code point me to.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -