internal override Rectangle CalculateConnectedArea() { if (this.OwnerItem != null && !this.OwnerItem.IsOnDropDown && !(this.OwnerItem is MdiControlStrip.SystemMenuItem)) { Point owner_screen_loc = OwnerItem.GetCurrentParent().PointToScreen(OwnerItem.Location); return(new Rectangle(owner_screen_loc.X - Left, 0, this.OwnerItem.Width - 1, 2)); } return(base.CalculateConnectedArea()); }
private void OnItemClick(object sender, ToolItemEventArgs e) { if (e.Item.CheckOnClick || (e.Item is ToolDropDown && ((ToolDropDown)e.Item).HasDropDown)) { return; } OwnerItem?.OnItemClick(e); BaseGetFocus(null, null); }
private void NotifyItemUpdatedWorker(NotificationArgs args) { ItemPropertyChanged(args); if (IsRealItem(ParentItem)) { NotificationArgs parentArgs = args; parentArgs.ChangeSource = HierarchicalChangeSource.ChildItem; ParentItem.NotifyItemUpdatedWorker(parentArgs); } if (IsRealItem(OwnerItem)) { NotificationArgs ownerArgs = args; ownerArgs.ChangeSource = HierarchicalChangeSource.OwnedItem; OwnerItem.NotifyItemUpdatedWorker(ownerArgs); } }