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.

How to disable the close button of MDI windows in DockingManager?

To disable the close button for the MDI window, the CanClose an attached property of the DockingManager need to set to False for the particular document window. The same has been demonstrated in the following code example:

XAML:

 

C#:

 

Output:

The following screenshot shows the close button of the MDI document window is disabled.

         

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework:
5834 12/09/2015 12/09/2015 WPF DockingManager 4.5
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.