C1OrgChart Task-Based Help > Adding C1OrgChart to the Application |
Complete the following steps to add a C1OrgChart control to your application:
xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
.
The namespaces will now appear similar to the following:
XAML |
Copy Code
|
---|---|
<Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> |
This is a unified namespace that will enable you to work with most of the WPF and Silverlight Edition controls without adding multiple namespaces.
<c1:C1OrgChart x:Name="C1OrgChart1" />
tag within the Grid tags on the page to add the C1OrgChart control to the application.
The XAML will appear similar to the following:
XAML |
Copy Code
|
---|---|
<Grid x:Name="LayoutRoot" Background="White"> <c1:C1OrgChart x:Name="C1OrgChart1" /> </Grid> |
This will add a C1OrgChart control named "C1OrgChart1" to the application.
You've successfully set up your application, but if you run your application now you'll see that application is currently blank.
Note: If the C1OrgChart control was installed to the Visual Studio Toolbox, simply dragging the control onto a page will automatically perform all the steps above. |