8,757
社区成员
发帖
与我相关
我的任务
分享
private string m_selectedGroup;
public string SelectedGroup
{
get
{
return this.m_selectedGroup;
}
set
{
this.m_selectedGroup = value;
this.NotifyPropertyChanged("SelectedGroup");
}
}
private string m_selectedGroup;
public string MySelectedGroup
{
get
{
return this.m_selectedGroup;
}
set
{
this.m_selectedGroup = value;
this.NotifyPropertyChanged("MySelectedGroup");
}
}
<ComboBox x:Name="cmbGroupList" Style="{DynamicResource ComboBoxStyle1}" ItemsSource="{Binding OutputGroupList}"SelectedValuePath="{Binding SelectedGroup}" DisplayMemberPath="{Binding SelectedGroup}" SelectedValue ="{Binding MySelectedGroup, Mode=TwoWay}"> <i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<ei:CallMethodAction MethodName="UpdateOutputListBox" TargetObject="{Binding}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</ComboBox>