Hi Guy,
This could be achieved by handling dockingManager1_DockContextMenu and dockingManager1_DockAllow events.
Here is the code snippet:
private void dockingManager1_DockContextMenu(object sender, Syncfusion.Windows.Forms.Tools.DockContextMenuEventArgs arg)
{
Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu p = arg.ContextMenu;
p.ParentBarItem.Items[2].Visible = false;
}
private void dockingManager1_DockAllow(object sender, Syncfusion.Windows.Forms.Tools.DockAllowEventArgs arg)
{
if (arg.DockStyle == Syncfusion.Windows.Forms.Tools.DockingStyle.Tabbed && arg.TargetControl == this )
{
arg.Cancel = true;
}
}
Herewith I have also attached the sample. Please have a look at the sample and let me know if it helps.
MDIChildThanks for choosing Syncfusion products.
Regards,
Murugan P.S