Migrate from Xamarin Navigation Drawer to .NET MAUI Navigation Drawer

21 May 20251 minute to read

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

Namespaces

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

Properties

Xamarin SfNavigationDrawer .NET MAUI SfNavigationDrawer 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 Forms SfNavigationDrawer, the obsolete properties have been removed in .NET MAUI, and can be exclusively set using the DrawerSettings properties.

Events

Xamarin SfNavigationDrawer .NET MAUI SfNavigationDrawer 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.