Enable/disable TabItemContextMenu and TabListContextMenu

31 May 20211 minute to read

ShowTabItemContextMenu is the property that is used to disable the showing of Context Menu when right-clicked on the document tab. Similarly, ShowTabListContextMenu is used to disable the showing of Context Menu list when clicked on the TabControl menu toggle button. The usages are given below:

<syncfusion:DockingManager Name="DockingManager" ShowTabItemContextMenu="False" ShowTabListContextMenu="False" UseDocumentContainer="True" ContainerMode="TDI">       
	<Grid Name="grid1" syncfusion:DockingManager.State="Document"/>  
	<Grid Name="grid2" syncfusion:DockingManager.State="Document"/>
//Disables the TabItem context menu.

DockingManager.ShowTabItemContextMenu = false;

//Disables the TabList context menu.

DockingManager.ShowTabListContextMenu = false;