Change DockingManager's Content Border

The DockingManager's DocumentContainer contains an innerPanel named PART_ContentPanelInnerBorder. How would I remove/hide it without replacing the whole control template?



5 Replies 1 reply marked as answer

BR Bharathi Rajakantham Syncfusion Team January 27, 2021 02:27 PM UTC

Hi John, 
 
Thanks for contacting Syncfusion Support, 
 
We have checked the reported query “How to hide the DocumentContainer Content Border of DockingManager” from our end. We have achieved your requirement using the VisualTreeHelper. Please check the sample and the CodeSnippet for your reference. 
 
 
Code Snippet: 
 
        var tabcontrol = VisualUtils.FindDescendant(sender as Visual, typeof(DocumentTabControl)) as DocumentTabControl; 
 
            if(tabcontrol!=null) 
            { 
                var Innerborder = tabcontrol.Template.FindName("PART_ContentPanelInnerBorder", tabcontrol) as Border; 
                Innerborder.BorderThickness = new Thickness(0); 
            } 
 
 
 
Please let us know if you need any further assistance on this. We will be glad to assist you. 
 
Regards, 
Bharathi R 


Marked as answer

JO John January 29, 2021 06:02 PM UTC

That worked perfectly thanks!


BR Bharathi Rajakantham Syncfusion Team February 1, 2021 09:40 AM UTC

Hi John, 

Thanks for your update, 

We would be happy to hear that the issue is resolved at your end. Please let us know if you have any other concerns. We will be glad to assist you. 

Regards, 
Bharathi R 



MA Mr Avrohom Singer September 4, 2025 01:49 PM UTC

Hi Bahtathi!


Thanks for the suggestion.


However, whenever all the tab items are closed (assuming the default DocumentContainer is closed), and opening again a tab item the (where a new DocumentContainer is created)

(PART_DockingManager.DocContainer as DocumentContainer).Loaded += DocumentContainer_Loaded is not firing again.




KA Karthick Arjunan Syncfusion Team September 9, 2025 03:06 PM UTC

Hi Mr Avrohom Singer,

We have updated the sample to address the scenario where the DocumentContainer.Loaded event does not fire after all tab items are closed and a new tab item is created.

Instead, we now use the ActiveDocumentChanged event of the DockingManager to dynamically attach the Loaded event to the newly created DocumentTabControl, ensuring the inner border (PART_ContentPanelInnerBorder) is consistently removed by setting its BorderThickness to 0.

Please check the attached modified sample and demo video and let us know if you have any further questions.


Regards,

Karthick Arjunan


Attachment: DocumentContainer_Border_f9c12ea1.zip

Loader.
Up arrow icon