1
如何將選定的值路徑添加到結構/類中的兩個項目?在下面的例子我想補充SelectedValuePath爲Id1的* Id2的WPF Combobox SelectedValuePath?
this.cboXXX.ItemsSource = Employee;
this.cboXXX.DisplayMemberPath = "Name";
*this.cboXXX.SelectedValuePath = "Id1" + "*" + "Id2";* ??
public struct Employee
{
public int Id1;
public int Id2;
public string Name;
}