We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to hide specific menu items in default context menu of the TabItemExt?

In the DockingManager, you can hide the selected context menu according to the requirement. The following screenshot shows the default context menu of the document child.

 

Figure 1: Default context menu

For instance, to show only the close context menu of the document child in the DockingManager, you need to hide all the other default context menu items. This can be done by using the Boolean property of the DockingManager that has a naming convention, Show + Nameof theContextMenuItem. By disabling this property, you can hide the unnecessary context menu items. 

The following code example demonstrates the same.

XAML

 

C#

 

The following screenshot shows only the close context menu item in the document child of the DockingManager.

Figure 2: Close context menu item in the document child

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8786 05/30/2018 05/30/2018 WPF DockingManager
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon