Articles in this section
Category / Section

How to hide the tabitemcontextmenu of TDI window in DocumentContainer

1 min read

Context menu of TDI (Tabbed Document Interface) window can be disable by ShowTabItemContextMenu Property of DocumentContainer as false.

The same has been explained in the following code snippet:

XAML:

//Code Explains How to disable the tabitemcontextmenu of TDI window for DocumentContainer
<Window x:Class="DocumentContainerSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
Title="MainWindow" Height="350" Width="525">
<Grid>
<syncfusion:DocumentContainer Name="Document"  Mode="TDI"  ShowTabItemContextMenu="False">
<ContentControl syncfusion:DocumentContainer.Header="Tab1">
</ContentControl>
<ContentControl syncfusion:DocumentContainer.Header="Tab2">
</ContentControl>
<ContentControl syncfusion:DocumentContainer.Header="Tab3">
</ContentControl>
</syncfusion:DocumentContainer>
</Grid>
</Window>

C#:

//Code Explains How to disable the tabitemcontextmenu for TDI window
namespace DocumentContainerSample
{
public partial class MainWindow : Window
{
public MainWindow()
 {
InitializeComponent();
Document.ShowTabItemContextMenu =false;
}
}
}

 

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied