Configure the .NET MAUI SideDrawer
This article explains all configuration options that the SideDrawer control provides.
Use the folloing properties to define content of the SideDrawer control:
View)—Specifies the drawer (initially hidden) content.
View)—Specifies the (initially visible) content of the component.
bool)—Specifies a value indicating if the drawer content is visible.
double)—Defines how much the drawer content should be extended over the main content in opened position.
SideDrawerLocation)—Specifies the location from which the drawer will be opened. The following options are available:
bool)—This is a mobile exclusive property which specifies ability for gestures to open and close the drawer.
double)—Defines the touchable area (number of pixels from the screen edges) that will allow to open the DrawerContent.
Keep Drawer open and main content area active
By default the SideDrawer Drawer Content closes when user clicks/taps outside of it. By setting the
false, the drawer content remains open if the user taps/clicks outside of it and the main content area remains active. The default value of
A sample Location example can be found in the SideDrawer/Features folder of the SDK Samples Browser application.