警告提示框(AlertControl)

设置提示框的透明度

1 private void alertControl1_BeforeFormShow(object sender, 
2   DevExpress.XtraBars.Alerter.AlertFormEventArgs e) 
3 {
4     e.AlertForm.OpacityLevel = 1; //0为透明,1为不透明        
5 }

AutoFormDelay属性用来设置窗体延迟,默认7000ms。

FormDisplaySpeed属性用来设置窗口显示速度

FormMaxCount数值用来设置一次最多同时显示多少个Window,为0则不限制。

FormLocation用来设置显示的位置(相对于整个屏幕),默认为屏幕右下角BottomRight。

其中PinButton、CloseButton所在位置为ControlBoxPosition,可以在顶部或右侧。

 

如果添加了其他按钮

第一个按钮为常规按钮, 单击触发 ButtonClick 事件. 第二个按钮有选中和未选中状态. 单击触发 ButtonDownChanged 事件。

1 if (e.ButtonName == "alertButton2") 
2 {
3 }

 

posted on 2016-08-24 11:45  Joey.ZJ  阅读(1037)  评论(0编辑  收藏  举报