In this step you'll create a Universal Windows application using OrgChart for UWP. C1OrgChart allows you to create hierarchical diagrams that show the structure and relationships of your data. To set up your project and add a C1OrgChart control to your application, complete the following steps:
- Name="c1OrgChart1"
- ConnectorThickness="2"
- ConnectorStroke="Black"
- Orientation="Vertical"
- ChildSpacing="20, 30"
The XAML markup should resemble the following:
Markup Copy Code <OrgChart:C1OrgChart Name="c1OrgChart1" ConnectorThickness="2" ConnectorStroke="Black" Orientation="Vertical" ChildSpacing="20,30" VerticalAlignment="Center" HorizontalAlignment="Center" >
Markup Copy Code <OrgChart:C1OrgChart.ItemTemplate> <DataTemplate> <Border Background="#FF6AD400" Width="180" Height="90"> <TextBlock Text="{Binding Name}" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/> </Border> </DataTemplate> </OrgChart:C1OrgChart.ItemTemplate>
You've successfully set up your application's user interface, but the C1OrgChart control currently contains no content. In the next step you'll add content to the C1OrgChart control.