How to change the position of .NET MAUI Navigation Drawer?
This section explores how to adjust the position of the .NET MAUI Navigation Drawer. The supplemental pane can be pulled in and out from all four sides. You can achieve this by setting the Position property with the following options:
- Left
- Right
- Top
- Bottom
Note
The default position is Left.
Left
To set the navigation pane to pull in and out from the Left side, use the following code.
XAML
<navigationdrawer:SfNavigationDrawer x:Name="navigationDrawer">
<navigationdrawer:SfNavigationDrawer.DrawerSettings>
<navigationdrawer:DrawerSettings Position="Left">
...
</navigationdrawer:DrawerSettings>
</navigationdrawer:SfNavigationDrawer.DrawerSettings>
...
</navigationdrawer:SfNavigationDrawer>
Output
Right
To set the navigation pane to pull in and out from the Right side, use the following code.
XAML
<navigationdrawer:SfNavigationDrawer x:Name="navigationDrawer">
<navigationdrawer:SfNavigationDrawer.DrawerSettings>
<navigationdrawer:DrawerSettings Position="Right">
...
</navigationdrawer:DrawerSettings>
</navigationdrawer:SfNavigationDrawer.DrawerSettings>
...
</navigationdrawer:SfNavigationDrawer>
Output
Top
To set the navigation pane to pull in and out from the Top side, use the following code.
XAML
<navigationdrawer:SfNavigationDrawer x:Name="navigationDrawer">
<navigationdrawer:SfNavigationDrawer.DrawerSettings>
<navigationdrawer:DrawerSettings Position="Top">
...
</navigationdrawer:DrawerSettings>
</navigationdrawer:SfNavigationDrawer.DrawerSettings>
...
</navigationdrawer:SfNavigationDrawer>
Output
Bottom
To set the navigation pane to pull in and out from the Bottom side, use the following code.
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 position of .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 following comments section if you have any queries or require clarifications. 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!