menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfNavigationDrawer - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfNavigationDrawer

    Represents the SfNavigationDrawer control that contains multiple items that share the same space on the screen.

    Inheritance
    System.Object
    SfView
    Syncfusion.Maui.Core.Internals.SfNavigationDrawerExt
    SfNavigationDrawer
    Implements
    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<Microsoft.Maui.IView>
    System.Collections.Generic.ICollection<Microsoft.Maui.IView>
    System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Inherited Members
    SfView.ArrangeContent(Rect)
    SfView.ArrangeOverride(Rect)
    SfView.Children
    SfView.ClipToBounds
    SfView.GetSemanticsNodesCore(Double, Double)
    SfView.IDrawableLayout.DrawingOrder
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.MeasureContent(Double, Double)
    SfView.MeasureOverride(Double, Double)
    SfView.OnDraw(ICanvas, RectF)
    SfView.Padding
    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
    SfView.OnBindingContextChanged()

    OnHandlerChanged()

    Raised when handler gets changed.

    Declaration
    protected override void OnHandlerChanged()
    Overrides
    SfView.OnHandlerChanged()

    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>

    Implements

    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Microsoft.Maui.IVisualTreeElement
    Back to top Generated by DocFX
    OSZAR »
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved
    OSZAR »