You can hide the Close button of a document tab in DockingManager using the DisabledCloseButtonBehavior property.
You can restrict closing a document by setting the CanClose property as False. But the Close button is visible in TabItem and this may be confusing. So it is preferred to hide or collapse the Close button.
The Close button can be hidden by setting the DisabledCloseButtonBehavior property to Hide for DockingManager. This sets the Visibility of the Close button as Hidden. You can also collapse or disable the Close button by setting Collapse and Disable in DisabledCloseButtonBehavior.
The above code hides the Close button of the document with the header “Dock1” as displayed in the following screenshot.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|