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. Image for the cookie policy date
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?

Platform: WPF |
Control: DockingManager |
Published Date: May 30, 2018 |
Last Revised Date: May 30, 2018

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.





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


2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile
Live Chat Icon