DevExpress XtraTabControl CloseButton 事件

using DevExpress.XtraTab;  
using DevExpress.XtraTab.ViewInfo;  
  
private void xtraTabControl1_CloseButtonClick(object sender, EventArgs e) {  
    XtraTabControl tabControl = sender as XtraTabControl;  
    ClosePageButtonEventArgs arg = e as ClosePageButtonEventArgs;  
    (arg.Page as XtraTabPage).PageVisible = false;  
}  

 

posted @ 2016-11-14 20:30  Fanyalei  阅读(1331)  评论(0编辑  收藏  举报