-1
嗨我想用ViewModel綁定一個Togglebutton。以下是查看代碼ToggleButton Binding ViewModel
<ToggleButton Content="Toggle" Width="80">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Checked">
<i:InvokeCommandAction Command="{Binding Path=CheckedCommand}"/>
</i:EventTrigger>
<i:EventTrigger EventName="Unchecked">
<i:InvokeCommandAction Command="{Binding Path=UncheckedCommand}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</ToggleButton>
任何人都可以幫助我與相應的ViewModel代碼?