How to change the position of .NET MAUI Navigation Drawer?
The .NET MAUI Navigation Drawer can be positioned from any side by setting the Position property with the following options:
- Left
- Right
- Top
- Bottom
Note
The default position is Left.
Left
Set the navigation pane to open from the Left side.
XAML
<navigationdrawer:SfNavigationDrawer x:Name="navigationDrawer">
<navigationdrawer:SfNavigationDrawer.DrawerSettings>
<navigationdrawer:DrawerSettings Position="Left">
...
</navigationdrawer:DrawerSettings>
</navigationdrawer:SfNavigationDrawer.DrawerSettings>
...
</navigationdrawer:SfNavigationDrawer>
Output
Right
Set the navigation pane to open from the Right side.
XAML
<navigationdrawer:SfNavigationDrawer x:Name="navigationDrawer">
<navigationdrawer:SfNavigationDrawer.DrawerSettings>
<navigationdrawer:DrawerSettings Position="Right">
...
</navigationdrawer:DrawerSettings>
</navigationdrawer:SfNavigationDrawer.DrawerSettings>
...
</navigationdrawer:SfNavigationDrawer>
Output
Top
Set the navigation pane to open from the Top side.
XAML
<navigationdrawer:SfNavigationDrawer x:Name="navigationDrawer">
<navigationdrawer:SfNavigationDrawer.DrawerSettings>
<navigationdrawer:DrawerSettings Position="Top">
...
</navigationdrawer:DrawerSettings>
</navigationdrawer:SfNavigationDrawer.DrawerSettings>
...
</navigationdrawer:SfNavigationDrawer>
Output
Bottom
Set the navigation pane to open from the Bottom side.
XAML
<navigationdrawer:SfNavigationDrawer x:Name="navigationDrawer">
<navigationdrawer:SfNavigationDrawer.DrawerSettings>
<navigationdrawer:DrawerSettings Position="Bottom">
...
</navigationdrawer:DrawerSettings>
</navigationdrawer:SfNavigationDrawer.DrawerSettings>
...
</navigationdrawer:SfNavigationDrawer>
Output
Conclusion
I hope you enjoyed learning how to change the position of the .NET MAUI Navigation Drawer.
Refer to our .NET MAUI Navigation Drawer feature tour page to learn about its other groundbreaking feature representations. You can explore our .NET MAUI Navigation Drawer documentation to understand how to present and manipulate data.
For current customers, check out our .NET MAUI components on the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to explore our .NET MAUI Navigation Drawer and other .NET MAUI components.
Please let us know in the comments section if you have any queries or require clarification. You can also contact us through our support forums, Direct-Trac, or feedback portal, or the feedback portal. We are always happy to assist you!