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.
Unfortunately, activation email could not send to your email. Please try again.

Binding custom commands to built-in context menu items of Document TabItem in DockingManager

DockingManager has individual routed event to notify the TabItem closing by below context menu items of DocumentTabItem,

  1. Close
  2. CloseAll
  3. CloseAllButThis

Using commands to notify those actions is recommended if the application has MVVM structure. DockingManager has built-in support to bind the custom commands for those ContextMenu actions. The following code example demonstrate the same,

 

Mainwindow.xaml:

 

Mainwindow.cs:

 

Sample :

http://www.syncfusion.com/downloads/support/directtrac/general/ze/DockingManagerCommands1860148428.zip

 

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework:
8787 05/31/2018 05/31/2018 WPF DockingManager 4
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.