Migrate from Xamarin Navigation Drawer to .NET MAUI Navigation Drawer

11 Aug 20261 minute to read

To simplify the migration process from Xamarin Navigation Drawer to .NET MAUI Navigation Drawer, most of the APIs from Xamarin Navigation Drawer have been retained in .NET MAUI Navigation Drawer. However, some APIs have been renamed to ensure consistency in API naming within .NET MAUI Navigation Drawer. The changes to APIs between Xamarin Navigation Drawer and .NET MAUI Navigation Drawer are as follows:

Namespaces

Xamarin Navigation Drawer .NET MAUI Navigation Drawer
Syncfusion.SfNavigationDrawer.XForms Syncfusion.Maui.NavigationDrawer

Properties

Xamarin Navigation Drawer .NET MAUI Navigation Drawer Description

DefaultDrawerSettings

DrawerSettings

Gets or sets the DrawerSettings, which is a container for various customization options, allowing the appearance of the Navigation Drawer to be customized.

NOTE

In Xamarin Navigation Drawer, the obsolete properties have been removed in .NET MAUI, and can be exclusively set using the DrawerSettings properties.

Events

Xamarin Navigation Drawer .NET MAUI Navigation Drawer Description

Closed

DrawerClosed

Occurs whenever the drawer is closed.

Closing

DrawerClosing

Occurs before whenever the drawer is closing.

Opening

DrawerOpening

Occurs before whenever the drawer is opening.

Toggled

DrawerToggled

Occurs whenever the drawer is opened or closed.