I need to trigger an event when the left mouse button is released. I tried this:
<i:Interaction.Triggers> <i:EventTrigger EventName="MouseClick" > <i:InvokeCommandAction Command="{Binding OnBarGroupChangeCommand}" CommandParameter="{Binding ElementName=ReportsBarGroup, Path=Key}" /> </i:EventTrigger> </i:Interaction.Triggers>
and this one
<igWPF:OutlookBarGroup.InputBindings> <MouseBinding MouseAction="LeftClick" Command="{Binding OnBarGroupChangeCommand}" CommandParameter="{Binding ElementName=ReportsBarGroup, Path=Key}"/> </igWPF:OutlookBarGroup.InputBindings>
These both work. The problem in both cases is that the event fires when the button is pressed. I need it to work only when the button is released. MouseBinding does not seem to support this. Is there a way to do this through interaction? What is the best way to handle this? Thanks.
Krisw source share