Menu for WPF | ComponentOne
Menu Overview / Flat Menu / Adding Separator Bar
In This Topic
    Adding Separator Bar
    In This Topic

    ComponentOne Menu for WPF allows you to add a separator bar between two menu items that allows you to separate items in menus. In Menu for WPF, separators are represented by the C1MenuSeparator class. To add a separator bar to a menu, use <c1:C1MenuSeparator /> between two <c1:C1MenuItem> tags in XAML:

    XAML
    Copy Code
    <c1:C1MenuItem Header="File" />
        <c1:C1MenuSeparator/>
    <c1:C1MenuItem Header="Options" />