Nevron Open Vision Documentation
User Interface / Widgets / Ribbon / Layout Panels / Ribbon Wrap Flow Panel
In This Topic
    Ribbon Wrap Flow Panel
    In This Topic

    The ribbon wrap flow panel is implemented by the NRibbonWrapFlowPanel class and represents a wrap flow panel that places its children on two or three lanes. When there's enough space available, the panel is in its initial state, which is Large by default and places its child widgets on two lanes. When the space is not enough, the panel collapses to medium or small state and places its children on three lanes to conserve space.

    Just like with all other UI panels, you can add widgets to the panel using its Add method.

    If you don't want a set of widgets to break on different lanes, you should place them in a ribbon stack panel and then place that panel in the ribbon wrap flow panel.
    Create Ribbon Wrap Flow Panel
    Copy Code
    wrapPanel = new NRibbonWrapFlowPanel();
    
    panel = new NRibbonStackPanel();
    panel.Add(NRibbonButton.CreateSmall("Decrease Indent", NResources.Image_16x16_paragraph_indent_left_png));
    panel.Add(NRibbonButton.CreateSmall("Increase Indent", NResources.Image_16x16_paragraph_indent_right_png));
    panel.Add(new NRibbonSeparator());
    wrapPanel.Add(panel);
    
    wrapPanel.Add(new NFillSplitButton());
    
    See Also