private void MapPageSelected(object sender, DockPageEventArgs arg) { if (ContentFocus != null && arg.Page != null) { ContentFocus(arg.Page.Widget, arg); } }
protected internal void OnPageSelected(DockPanel panel, DockPageEventArgs e) { if (e.Page == null) { if (!panel.DockItem.Main) { panel.DockItem.Visible = false; } Unhide(); } else if (!panel.DockItem.Visible) { panel.DockItem.Visible = true; } QueueForReallocate(); ChildFocusInEvent(panel, e); PageSelected?.Invoke(this, e); }