GroupControl.CustomButtonUnchecked Event
Occurs whenever a check button from the GroupControl.CustomHeaderButtons collection is unchecked.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.Utils.v24.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
Declaration
[DXCategory("Behavior")]
public virtual event BaseButtonEventHandler CustomButtonUnchecked
Event Data
The CustomButtonUnchecked event's data class is DevExpress.XtraBars.Docking2010.BaseButtonEventArgs.
Remarks
The following example demonstrates how to determine which header button has been checked/unchecked:
using DevExpress.XtraBars.Docking2010;
using DevExpress.XtraEditors.ButtonsPanelControl;
public Form1() {
InitializeComponent();
groupControl1.CustomButtonChecked += groupControl1_CustomButtonChecked;
groupControl1.CustomButtonUnchecked += groupControl1_CustomButtonUnchecked;
}
private void groupControl1_CustomButtonChecked(object sender, BaseButtonEventArgs e) {
MessageBox.Show(String.Format("{0} was checked", (e.Button as GroupBoxButton).Caption), "Information", MessageBoxButtons.OK);
}
private void groupControl1_CustomButtonUnchecked(object sender, BaseButtonEventArgs e) {
MessageBox.Show(String.Format("{0} was unchecked", (e.Button as GroupBoxButton).Caption), "Information", MessageBoxButtons.OK);
}
See Also