private void SetOwnerItem(Control control) { if (control == null) { return; } if (control is DropDownControl) { DropDownControl popupControl = control as DropDownControl; _ownerPopup = popupControl; _ownerPopup._childPopup = this; OwnerItem = popupControl.Items[0]; return; } if (control.Parent != null) { SetOwnerItem(control.Parent); } }
public DropDownUserControl() { _ddc = new DropDownControl(this); }