In the DockingManager I would like to hide the header panel (no button, no context menu) on top of the Window when it is the only window. I have tried HideTDIHeaderOnSingleChild which removes the tab header but not the panel. I also removed the close button but I haven't found how to remove the remaining context menu (which displays only the header of the one window).
The picture below is from the documentation "MDI/TDI functionnalities of Syncfusion DockingManager control for wpf - Hiding TDI header". It shows the problem I'm facing. In this case, there is only one window the header is hidden. As I don't want the window to be closed nor dragged I would like also to remove the panel that sits on top of the window
I would like the same behaviour as the clientControl but only when there is only 1 window. If there is more than 1 window, the headers would be displayed and every window, except the first one, could be dragged, closed, etc...
Thank you for your help.
JPJagadeesan Pichaimuthu Syncfusion Team January 2, 2019 03:45 AM
Hi Amari Mecheri,
Thank you for contacting Syncfusion support.
We have checked your query "How to hide header panel of DocumentTabControl in DockingManager ". We have prepared sample based on your requirement in which we have restricted close and dragging functionalities for the first tab by setting CanClose and CanFloat attached property of Docking Manager as false when it contain more than one tab items in DocumentTabControl and also hide the header panel of DocumentTabControl when it contain only one tab item by setting following property of Docking Manager ShowTabListContextMenu as false, HideTDIHeaderOnSingleChild astrueand DocumentCloseButtonType ashide. Please download the same from the below location.
If we misunderstood your requirement, please provide more information regarding the requirement. This would help us to proceed further.
AMAmari MecheriJanuary 2, 2019 05:31 AM
This is what i was looking for. Thank you for your help. ShowTabListContextMenu does what I was looking for.
May I ask you how I can remove all the space (margins) around the "client control" window. When it's the only Window, I'd like it takes all the available space.
Thank you very much.
JPJagadeesan Pichaimuthu Syncfusion Team January 3, 2019 03:56 AM
Thank for your update.
We have checked your query "How to disable border around the DocumentTabControl when it contain single tab item". We have prepared sample based on your requirement in which we have set the border of DocumentTabControl by using its BorderThickness property based on its tab items count. Please download the same from the below location.