How to simplify a layout of Ribbon Control in WinUI?
Simplified Layout
The Simplified layout in the WinUI Ribbon control displays the most frequently used commands in a compact, single-line interface. Less commonly used commands are accessible via an overflow menu. A toggle button allows users to switch easily between Simplified and Normal layouts.
Adding a Simplify layout
To obtain the simplified ribbon layout, two enumerated properties are required. They are,
- LayoutModeOptions
- ActiveLayoutmode
Layout mode options
The enumeration includes the following values.
Normal: Helps to organize ribbon elements in standard layout.
Simplified: Helps to organize ribbon elements in simplified layout.
Normal, Simplified: The Ribbon elements are organized in both the standard and simplified layouts. This is the default value of this settings.
Active layout mode
This can be utilized to load the Ribbon control in the simplified layout.
Normal: Loads the Ribbon in the standard layout.
Simplified: Loads the Ribbon in the simplified, single-line layout.
In the following example, a Home tab is created with a Clipboard group. The Clipboard group contains the commands: Cut, Copy, Paste, and Format Painter.
-
In the Normal layout, all four commands are visible.
-
In the Simplified layout, only Paste and Format Painter are shown. This is because their
DisplayOptionsare set toNormal, Simplified, while the others are set toNormal, Overflow.
XAML
<ribbon:SfRibbon x:Name="simplifiedRibbon" ActiveLayoutMode="Simplified" LayoutModeOptions="Normal,Simplified"> <ribbon:SfRibbon.Tabs> <ribbon:RibbonTab Header="Home"> <ribbon:RibbonGroup Header="Clipboard"> <ribbon:RibbonSplitButton Content="Paste" DisplayOptions="Normal,Simplified" Icon="Paste"/> <ribbon:RibbonButton Content="Cut" DisplayOptions="Normal,Overflow" Icon="Cut"/> <ribbon:RibbonButton Content="Copy" DisplayOptions="Normal,Overflow" Icon="Copy"/> <ribbon:RibbonButton Content="Format Painter" DisplayOptions="Normal,Simplified"> <ribbon:RibbonButton.Icon> <FontIcon Glyph="" /> </ribbon:RibbonButton.Icon> </ribbon:RibbonButton> </ribbon:RibbonGroup> </ribbon:RibbonTab> </ribbon:SfRibbon.Tabs> </ribbon:SfRibbon>
Output
Normal Layout

Simplified Layout

Conclusion
I hope you enjoyed learning on how to simplify a layout of ribbon control.
You can refer to our WinUI Ribbon feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WinUI Ribbon example to understand how to create and manipulate data. For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!