Class SfNavigationDrawer
Represents the SfNavigationDrawer control that contains multiple items that share the same space on the screen.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Maui.NavigationDrawer
Assembly: Syncfusion.Maui.NavigationDrawer.dll
Syntax
public class SfNavigationDrawer : SfNavigationDrawerExt, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider, ITouchListener, ITapGestureListener, IGestureListener, IParentThemeElement, IThemeElement
Constructors
SfNavigationDrawer()
Initializes a new instance of the SfNavigationDrawer class.
Declaration
public SfNavigationDrawer()
Fields
ContentViewProperty
Identifies the ContentView bindable property.
Declaration
public static readonly BindableProperty ContentViewProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for ContentView bindable property. |
DrawerSettingsProperty
Identifies the DrawerSettings bindable property.
Declaration
public static readonly BindableProperty DrawerSettingsProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for DrawerSettings bindable property. |
FlowDirectionProperty
Identifies the FlowDirection bindable property.
Declaration
public static readonly BindableProperty FlowDirectionProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for FlowDirection bindable property. |
IsOpenProperty
Identifies the IsOpen bindable property.
Declaration
public static readonly BindableProperty IsOpenProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for IsOpen bindable property. |
Properties
ContentView
Gets or sets the view that can be used to customize the content view of SfNavigationDrawer.
Declaration
public View ContentView { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.View |
DrawerSettings
Gets or sets the DrawerSettings," which is a container for various customization options, allowing the appearance of the navigation drawer to be customized.
Declaration
public DrawerSettings DrawerSettings { get; set; }
Property Value
Type |
---|
DrawerSettings |
FlowDirection
Gets or sets a value of the flow direction of the navigation drawer.
Declaration
public FlowDirection FlowDirection { get; set; }
Property Value
Type |
---|
Microsoft.Maui.FlowDirection |
IsOpen
Gets or sets a value indicating whether to open or close the drawer.
Declaration
public bool IsOpen { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
OnBindingContextChanged()
Call when the binding context is changed.
Declaration
protected override void OnBindingContextChanged()
Overrides
OnHandlerChanged()
Raised when handler gets changed.
Declaration
protected override void OnHandlerChanged()
Overrides
OnPropertyChanged(String)
Raised when a property value changes.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |
OnSizeAllocated(Double, Double)
OnSizeAllocated method.
Declaration
protected override void OnSizeAllocated(double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | Width. |
System.Double | height | Height. |
ToggleDrawer()
Methods to open or close the drawer based on the existing state in the SfNavigationDrawer.
Declaration
public void ToggleDrawer()
Events
DrawerClosed
It is drawer closed event.
Declaration
public event EventHandler<EventArgs> DrawerClosed
Event Type
Type |
---|
System.EventHandler<System.EventArgs> |
DrawerClosing
It is drawer closing event.
Declaration
public event EventHandler<CancelEventArgs> DrawerClosing
Event Type
Type |
---|
System.EventHandler<System.ComponentModel.CancelEventArgs> |
DrawerOpened
It is drawer opened event.
Declaration
public event EventHandler<EventArgs> DrawerOpened
Event Type
Type |
---|
System.EventHandler<System.EventArgs> |
DrawerOpening
It is drawer opening event.
Declaration
public event EventHandler<CancelEventArgs> DrawerOpening
Event Type
Type |
---|
System.EventHandler<System.ComponentModel.CancelEventArgs> |
DrawerToggled
It is drawer toggled event.
Declaration
public event EventHandler<ToggledEventArgs> DrawerToggled
Event Type
Type |
---|
System.EventHandler<ToggledEventArgs> |