protected virtual void OnBindingPopupControl(BindPopupControlEventArgs e) { if (BindPopupControl != null) { BindPopupControl(this, e); } bindedControl = e.BindedControl; }
/// <summary> /// Fires the BindPopupControl and shows the container panel with the control specified in the <see cref="BindPopupControlEventArgs.BindedControl">BindPopupControlEventArgs.BindedControl</see>. /// Binded control should implement <see cref="IPopupControl">IPopupControl</see> interface. /// </summary> public void ShowDropDown() { if (BindedControl == null) { BindPopupControlEventArgs args = new BindPopupControlEventArgs(this); OnBindingPopupControl(args); } if (BindedControl != null) { OnPopupShowing(EventArgs.Empty); BindedControl.ShowPopup(); } }
protected override void OnBindingPopupControl(BindPopupControlEventArgs e) { e.BindedControl = mv; base.OnBindingPopupControl(e); }