Category / Section
How to change the position of RibbonTabs and RibbonBars in WPF Ribbon control?
1 min read
You can change the direction of the RibbonTab and RibbonBar by using the FlowDirection property to WPF Ribbon control. The default value of the FlowDirection property is LeftToRight.
XAML
<syncfusion:Ribbon x:Name="ribbon" FlowDirection="RightToLeft"> <syncfusion:RibbonTab Caption="Home" > <syncfusion:RibbonBar Header="Bar1"> <syncfusion:RibbonButton SizeForm="Large"/> <syncfusion:RibbonButton SizeForm="Small"/> <syncfusion:DropDownButton/> </syncfusion:RibbonBar> </syncfusion:RibbonTab> </syncfusion:Ribbon>
C#
ribbon.FlowDirection=FlowDirection.RightToLeft;
The following screenshot displays the change in the direction of the RibbonTab and RibbonBar by using FlowDirection property.