Window.Commands in Context Menu

Docking/MDI for WPF Forum

Posted 9 years ago by David Sherwood
Version: 10.2.0531
Avatar
I included the Window.Commands.Close in my Context menu but it is always disabled even though the close button works. What am I missing?

Comments (2)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi David,

The WindowCommands are used with WindowControl. If you are trying to close a DocumentWindow or a ToolWindow, then you'd need to use DockingCommands.CloseWindow or DockingCommands.ClosePrimaryWindow.


Actipro Software Support

Posted 9 years ago by David Sherwood
Avatar
That make sense. Thanks. It works now.
The latest build of this product (v2019.1 build 0684) was released 14 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.