//图片容器 
DevExpress.Utils.ImageCollection imageCollection = new DevExpress.Utils.ImageCollection();
imageCollection.AddImage(Properties.Resources.apply_32x32); 
imageCollection.AddImage(Properties.Resources.cancel_32x32);
repositoryItemImageComboBox1.SmallImages = imageCollection; repositoryItemImageComboBox1.Items.Clear(); //添加下拉选项(-1则不显示图片0、1分别是加入图片的索引) 
repositoryItemImageComboBox1.Items.Add(new DevExpress.XtraEditors.Controls.ImageComboBoxItem(Resources.Multilingual.String["等待下达"], 0, -1)); repositoryItemImageComboBox1.Items.Add(new DevExpress.XtraEditors.Controls.ImageComboBoxItem(Resources.Multilingual.String["成功"], 1, 0)); repositoryItemImageComboBox1.Items.Add(new DevExpress.XtraEditors.Controls.ImageComboBoxItem(Resources.Multilingual.String["失败"], 2, 1));

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐