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

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -