Closed ghost1372 closed 5 years ago
Hi,
You can try to use with the System.Windows.Interactivity.WPF NuGet like this:
// namespace:
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
// ....
<MyExpander Content="new">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Expanded" >
<i:InvokeCommandAction
Command="{mvvmc:NavigateCommand ControllerID='MainOperation', Action='myDashboard'}"
CommandParameter="smth" />
</i:EventTrigger>
<i:EventTrigger EventName="Collapsed" >
<i:InvokeCommandAction
Command="{mvvmc:NavigateCommand ControllerID='MainOperation', Action='myDashboard'}"
CommandParameter="smth" />
</i:EventTrigger>
</i:Interaction.Triggers>
</MyExpander>
tnx
hi i need navigate when user click on Expander Menu But this control does not have the Command property so After some searching I found the following code:
But the command is not executed