OrgChart for WinRT
Alignment

The HorizontalContentAlignment and VerticalContentAlignment properties allow you to customize the alignment of nodes within the chart. The default value is Center for both properties, so nodes are centered within the tree. The images below show the effect of the other possible settings:

Left

If you set HorizontalContentAlignment to "Left":

Markup
Copy Code
<OrgChart:C1OrgChart
  Name="_orgChart"
  HorizontalContentAlignment="Left"
  ItemTemplate="{StaticResource EmployeeTemplate }" >
</OrgChart:C1OrgChart>

The OrgChart will appear as follows:

 

Right

If you set HorizontalContentAlignment to "Right":

Markup
Copy Code
<OrgChart:C1OrgChart
  Name="_orgChart"
  HorizontalContentAlignment="Right"
  ItemTemplate="{StaticResource EmployeeTemplate }" >
</OrgChart:C1OrgChart>

The OrgChart will appear as follows:

 

See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback