C1DockControl Quick Start > Step 2 of 3: Adding a C1DockTabControl with C1DockTabItems |
Next we are going to add a C1DockTabControl with C1DockTabItems.
XAML |
Copy Code
|
---|---|
<c1:C1DockTabControl Dock="Left"> <c1:C1DockTabItem Header="Toolbox"> <TextBlock Text="Here is your Toolbox." /> </c1:C1DockTabItem> </c1:C1DockTabControl> |
This XAML also includes a C1DockTabItem labeled Toolbox. If you run the application now, the C1DockTabControl will look similar to the following:
Let's add another C1DockTabItem and C1DockTabControl to show how you can select tabs and dock or float the C1DockTabControl when you run the application.
XAML |
Copy Code
|
---|---|
<c1:C1DockControl> <c1:C1DockTabControl Dock="Left"> <c1:C1DockTabItem Header="Toolbox"> <TextBlock Text="Here is the Toolbox." /> </c1:C1DockTabItem> <c1:C1DockTabItem Header="Project"> <TextBlock Text="Tree of files" /> </c1:C1DockTabItem> </c1:C1DockTabControl> <c1:C1DockTabControl DockWidth="500" ShowHeader="False"> <c1:C1DockTabItem Header="myfile.ext"> <TextBlock Text="This is the text of myfile.ext" /> </c1:C1DockTabItem> </c1:C1DockTabControl> </c1:C1DockControl> |
In the next step you will run the application and change the docking mode for windows.