Logo
My Account |  Site Map | Contact Us  
 The same content in Microsoft HTML help file format is included in the download package.
Multi-Column Sub Menu

EO.Wpf Menu allows you to create multi-column sub menu by setting a single ColumnCount property. The following XAML demonstrates this feature:

XAML
<Window x:Class="Test.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:eo="http://schemas.essentialobjects.com/wpf/"
        Title="MainWindow" Height="250" Width="350">
    <StackPanel>
        <eo:Menu>
            <eo:MenuItem Header="Items" ColumnCount="2">
                <eo:MenuItem Header="Item 1"></eo:MenuItem>
                <eo:MenuItem Header="Item 2"></eo:MenuItem>
                <eo:MenuItem Header="Item 3"></eo:MenuItem>
                <eo:MenuItem Header="Item 4"></eo:MenuItem>
                <eo:MenuItem Header="Item 5"></eo:MenuItem>
                <eo:MenuItem Header="Item 6"></eo:MenuItem>
                <eo:MenuItem Header="Item 7"></eo:MenuItem>
                <eo:MenuItem Header="Item 8"></eo:MenuItem>
                <eo:MenuItem Header="Item 9"></eo:MenuItem>
                <eo:MenuItem Header="Item 10"></eo:MenuItem>
            </eo:MenuItem>
        </eo:Menu>
    </StackPanel>
</Window>

The above code produces the following result:


Direct link to this topic