-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
🐛 bugSomething isn't workingSomething isn't working
Description
创建了一个演示项目,方便大佬快速确认一下:HcTest.zip
效果图:
主要代码:
namespace HcTest
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
private IList<ObjectItem> _items;
public MainWindow()
{
InitializeComponent();
_items = new List<ObjectItem>()
{
new ObjectItem()
{
Name = "张三",
Value = 99
},
new ObjectItem()
{
Name = "李四",
Value = 98
},
new ObjectItem()
{
Name = "王五",
Value = 97
},
};
CheckComboBox.ItemsSource = _items;
CheckComboBox.DisplayMemberPath = "Name";
}
}
public class ObjectItem
{
public string Name { get; set; }
public int Value { get; set; }
}
}
Metadata
Metadata
Assignees
Labels
🐛 bugSomething isn't workingSomething isn't working