protected override void OnDeactivate(EventArgs e) { //Debug.WriteLine("OnDeactivate"); base.OnDeactivate(e); CustomComboBoxEventArgs ce = e as CustomComboBoxEventArgs; if (ce != null) { CloseDropdown(ce.Validate); } else { // If not custom event arguments passed, means that this method was called from the // framework. We assume that the checked values should be registered regardless. CloseDropdown(true); } }
public void ForceDeactivate(CustomComboBoxEventArgs e) { OnDeactivate(e); }