WinUI | ComponentOne
Controls / Menu / Orientation and Alignment
In This Topic
    Orientation and Alignment
    In This Topic

    In the Menu control, the direction of rendering the menu is set to vertical, by default. However, you can change the rendering direction to horizontal by using Orientation property of the C1MenuList class. Along with the orientation, you also need to set the alignment of the menu based on the orientation you choose. For example, if you set the orientation of the Menu control to horizontal then setting the vertical alignment of the control to top creates a traditional looking menu, similar to the one showcased in the following image.

    Menu Orientation

    The following code demonstrates how to set the orientation and alignment of the menu using the Orientation and VerticalAlignment properties:

    XAML
    Copy Code
    <c1:C1Menu x:Name="WordMenu" Orientation="Horizontal" VerticalAlignment="Top"></c1:C1Menu>