Syncfusion NavigationDrawer in Xamarin provides toggle drawer event to open the Drawer view. Drawer can be either opened by using “Swiping event” or by using “ToggleDrawer” method. The code snippets and the steps to be followed to toggle the SfNavigationDrawer control is given below.
To open Drawer ContentView in NavigationDrawer using toggle drawer follow the given procedure:
Step 1: Create Header, Footer inside DrawerHeaderView and DrawerFooterView. Initialize the DrawerContentView and add list of items to be visible on the drawer content.
Step 2: Create a button and set ToggleDrawer method to open the Drawer.
The below code illustrates the way to achieve this:
Image before toggle Navigation Drawer:
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|