Window.Commands in Context Menu

Docking/MDI for WPF Forum

Posted 14 years ago by David Sherwood
Version: 10.2.0531
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 14 years ago by Actipro Software Support - Cleveland, OH, USA
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 14 years ago by David Sherwood
That make sense. Thanks. It works now.
The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.