ComponentOne OrgChart for UWP
Working with OrgChart for UWP / OrgChart for UWP Appearance Properties / Alignment
In This Topic
    Alignment
    In This Topic

    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