Dev控件使用学习

1.BarManager管理

  1.1 BarCheckitem的CheckChanged事件发生在选择状态改变之后。

  1.2 barEditItem(ComboBoxEdit)添加Item

1 string item = "comboboxItem1";   ((DevExpress.XtraEditors.Repository.RepositoryItemComboBox)this.barEditItem.Edit).Items.Add(item);
2 barEditItem2.EditValue = repositoryItemComboBox2.Items[1];
3 //设置从repositoryItemComboBox2中选择值

  1.3 ComboBoxEdit(barEditItem)取文本

1 string itemValue = this.barEditItem.EditValue.ToString();// 获取文本

2.RadioGroup通过SelectIndex属性获取和设置当前选择项。SelectedIndexChanged做出判断。

1 RadioGroup1.SelectedIndex==1

 3. SimpleButton的背景色。

   simpleButton.Apperence.BackColor起作用,需要设置ButtonStyle为Simple或者其他的如Flat。

posted @ 2013-04-11 12:05  太一吾鱼水  阅读(812)  评论(0编辑  收藏  举报