Calling ViewModel Methods |
<Button Grid.Column="0" IsEnabled="{Binding CanStart}" ToolTip="Start the proxy." Content="Start"> <i:Interaction.Triggers> <i:EventTrigger EventName="Click"> <ie:CallMethodAction TargetObject="{Binding}" MethodName="Start"/> </i:EventTrigger> </i:Interaction.Triggers> </Button>
The above is WPF-specific, similar mechanisms exist for Windows Store Apps, see CallMethodAction