Adding and Removing Items from the WPF Tabbed MDI Form control
7 May 20211 minute to read
This topic illustrates how to add and remove items from Document Container control.
Adding items
Document Container allows the user to add new elements to its container(such as button, text block), using Items.Add method. Use the following code snippet, for calling this method.
<syncfusion:DocumentContainer Name="DocContainer">
<Button ></Button></syncfusion:DocumentContainer>
Button a = new Button();
DocContainer.Items.Add(a);
Remove item
You can remove all the items in the Document Container using Items.Clear method. To remove all the items in the Document Container, use the following code snippet.
DocContainer.Items.Clear();