如何以编程方式在 WPF 中将位图图像添加为组合框项?
我正在ComboBox
动态创建:
private ComboBox CreateSymbolComboBox(List<BitmapImage> images, int selectedIndex, bool isEnabled)
{
ComboBox cb = new ComboBox();
foreach (BitmapImage img in images)
{
cb.Items.Add();
}
return cb;
}