Hi Aishwaria,
Thanks for your interests in Syncfusion products.
We would like to explain the usage of the CanDock and CanClose properties first. Please find the below explanations.
CanDock - Determines whether the instance of the DockingManager can dock the specified hosted element, it can be set to False when the state of the Docking Manager is other than in Dock State
CanClose- This property is used to allow or deny change element state to DockState.Hidden. If it is set to false it means element cannot be closed. The default value is true.
If your requirement is that you don’t want the header to be displayed at all for the Dockwindow then you need to make use of the DockHeaderStyle property, set the DockHeaderPresenter visibility to collapsed which will remove the header contents from the dock window. kindly make use of the code snippet for more idea.
[XAML]
or you can set the Noheader property to True also, both the case it will work out. Code snippet
[XAML]
If your requirement is not to display the individual buttons in the header then you need to overwrite the DockHeaderPresenterTemplate, we tried a simple sample in which we tried to overwrite the buttons in the header. Kindly download the sample from the following location for more information.
http://files.syncfusion.com/support/Tools.WPF/7.2.0.20/Forum-80809/main.htmPlease let us know still if you have any queries.
Regards,
Bala.