关于MVVM框架下,combobox和datagrid触发选取事件的操作
<i:Interaction.Triggers> <i:EventTrigger EventName="DropDownClosed"> <i:InvokeCommandAction Command="{Binding DataContent.GetFunctionCommand}" CommandParameter="{Binding ElementName=ComboBoxName,Path=Text}"/> </i:EventTrigger> </i:Interaction.Triggers>

浙公网安备 33010602011771号