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 C1Separator class. To add a separator bar to a menu, use <c1:C1Separator /> between two <c1:C1MenuItem> tags in XAML:

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