C1DockControl Quick Start > Step 1 of 3: Creating a WPF Application |
In this step you'll create a WPF or Silverlight application in Visual Studio using DockControl for WPF and Silverlight.
To set up your project and add a C1DockControl control to your application, complete the following steps:
WPF XAML |
Copy Code
|
---|---|
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> <Grid x:Name="LayoutRoot"> <c1:C1DockControl></c1:C1DockControl> </Grid> </Window> |
Silverlight XAML |
Copy Code
|
---|---|
<UserControl xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" x:Class="C1DockControlQuickStart.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> <Grid x:Name="LayoutRoot"> <c1:C1DockControl></c1:C1DockControl> </Grid> </UserControl> |
Note: The C1.WPF.Docking or C1.Silverlight.Docking namespace and <c1:C1DockControl></c1:C1DockControl> tags have been added to the project. |
In the next step, you will add a C1DockTabControl with C1DockTabItems.