internal void DockToolbar(DockToolbar bar, Placement placement, int offset, int row) { DockToolbarPanel p = GetPanel(placement); if (row != -1) { p.AddDockToolbar(bar, offset, row); } else { p.AddDockToolbar(bar); } }
// Ugly hack to make sure the dock is the right size when the cursor refocuses on OSX void HandleChildClicked(object sender, EventArgs e) { DockToolbarPanel panel = DockPanel; panel.RemoveBar(this); panel.AddDockToolbar(this, anchorOffset, DockRow); }