Migrate from Xamarin NavigationDrawer to .NET MAUI NavigationDrawer

13 Mar 20241 minute to read

To migrate easier from Xamarin SfNavigationDrawer to .NET MAUI SfNavigationDrawer, keep most of the APIs from Xamarin SfNavigationDrawer in MAUI SfNavigationDrawer. However, to maintain the consistency of API naming in MAUI SfNavigationDrawer, rename some of the APIs. The APIs changed in MAUI SfNavigationDrawer from Xamarin SfNavigationDrawer are detailed 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 the Xamarin Forms SfNavigationDrawer, the obsolete properties are removed in the .NET MAUI. You can exclusively set it 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.