TDI questions

Hello,

I would like to use the DockingManager as a TDI. When a button is clicked, how can I create a new page and have it displayed with Mode="Document"? I went through the documentation and there is on XAML, no C#.

Please advise


Thank you.

1 Reply

DR Durga Rajan Syncfusion Team June 28, 2018 04:48 AM UTC

Hi Al Calderon, 

Thanks for contacting Syncfusion support. 

We have checked your query “How to add a child in Document state to a DockingManager” and we suggest you to use SetState property of DockingManager is to define a state of a docking child. Please refer below code example, 

             
            dockingmanager.UseDocumentContainer = true; 
            dockingmanager.ContainerMode = DocumentContainerMode.TDI;  
 
            ContentControl cc1 = new ContentControl(); 
            DockingManager.SetHeader(cc1, "Tab" + dockingmanager.Children.Count); 
            DockingManager.SetState(cc1, DockState.Document); 
            dockingmanager.Children.Add(cc1); 


We have prepared sample which tries to meet your requirement. Please download the sample from below location, 


Regards, 
Durga S. 


Loader.
Up arrow icon