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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to display separator in CustomContextMenu of DockingManager

Platform: WPF |
Control: DockingManager |
Published Date: December 14, 2017 |
Last Revised Date: December 14, 2017

 

As per current implementation of DockingManager’s CustomContextMenu there is no direct support to add separator as like in Menu control. But this can be achieved by customizing the MenuItem style of the CustomContextMenu with help of IsSeparator property of SeparatorExt class. If the attached property "IsSeparator" is true, separator will be displayed instead of header. Below code snippets are demonstrate the same,

DockWindowMenuItemStyle:

 

DocumentWindowMenuItemStyle:

 

MainWindow.xaml

 

SeparatorExt.cs

 

Screenshot:

 

 

ADD COMMENT
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.

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