alexa
menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class SfNavigationDrawer

    it is a navigation drawer class

    Inheritance
    System.Object
    SfNavigationDrawer
    Implements
    System.IDisposable
    Namespace: Com.Syncfusion.Navigationdrawer
    Assembly: Syncfusion.SfNavigationDrawer.Android.dll
    Syntax
    public class SfNavigationDrawer : FrameLayout, IDisposable

    Constructors

    SfNavigationDrawer(Context)

    Initializes a new instance of the SfNavigationDrawer class.

    Declaration
    public SfNavigationDrawer(Context context)
    Parameters
    Type Name Description
    Android.Content.Context context

    The first context

    SfNavigationDrawer(Context, IAttributeSet)

    Initializes a new instance of the SfNavigationDrawer class.

    Declaration
    public SfNavigationDrawer(Context context, IAttributeSet attrs)
    Parameters
    Type Name Description
    Android.Content.Context context

    The second context

    Android.Util.IAttributeSet attrs

    the base

    SfNavigationDrawer(Context, IAttributeSet, Int32)

    Initializes a new instance of the SfNavigationDrawer class.

    Declaration
    public SfNavigationDrawer(Context context, IAttributeSet attrs, int defStyle)
    Parameters
    Type Name Description
    Android.Content.Context context

    The third context

    Android.Util.IAttributeSet attrs

    The base value

    System.Int32 defStyle

    the style value

    SfNavigationDrawer(Context, IAttributeSet, Int32, Int32)

    Initializes a new instance of SfNavigationDrawer class.

    Declaration
    public SfNavigationDrawer(Context context, IAttributeSet attrs, int defStyle, int defResource)
    Parameters
    Type Name Description
    Android.Content.Context context
    Android.Util.IAttributeSet attrs
    System.Int32 defStyle
    System.Int32 defResource

    SfNavigationDrawer(IntPtr, JniHandleOwnership)

    Initializes a new instance of SfNavigationDrawer class.

    Declaration
    public SfNavigationDrawer(IntPtr ptr, JniHandleOwnership handle)
    Parameters
    Type Name Description
    System.IntPtr ptr
    Android.Runtime.JniHandleOwnership handle

    Properties

    AnimationDuration

    Gets or sets a value indicating whether a long property.

    Declaration
    public long AnimationDuration { get; set; }
    Property Value
    Type
    System.Int64

    ContentView

    Gets or sets a value indicating whether a view property.

    Declaration
    public View ContentView { get; set; }
    Property Value
    Type
    Android.Views.View

    DefaultDrawerSettings

    Gets or sets a value indicating whether a DefaultDrawerSettings for Drawer.

    Declaration
    public DrawerSettings DefaultDrawerSettings { get; set; }
    Property Value
    Type
    DrawerSettings

    DrawerContentView

    Gets or sets a value indicating whether a view property.

    Declaration
    public View DrawerContentView { get; set; }
    Property Value
    Type
    Android.Views.View

    DrawerFooterHeight

    Gets or sets a value indicating whether a float property.

    Declaration
    public float DrawerFooterHeight { get; set; }
    Property Value
    Type
    System.Single

    DrawerFooterView

    Gets or sets a value indicating whether a view property.

    Declaration
    public View DrawerFooterView { get; set; }
    Property Value
    Type
    Android.Views.View

    DrawerHeaderHeight

    Gets or sets a value indicating whether a float property.

    Declaration
    public float DrawerHeaderHeight { get; set; }
    Property Value
    Type
    System.Single

    DrawerHeaderView

    Gets or sets a value indicating whether a view property.

    Declaration
    public View DrawerHeaderView { get; set; }
    Property Value
    Type
    Android.Views.View

    DrawerHeight

    Gets or sets a value indicating whether a float property.

    Declaration
    public float DrawerHeight { get; set; }
    Property Value
    Type
    System.Single

    DrawerWidth

    Gets or sets a value indicating whether a float property.

    Declaration
    public float DrawerWidth { get; set; }
    Property Value
    Type
    System.Single

    EnableSwipeGesture

    Gets or sets a value indicating whether a boolean property.

    Declaration
    public bool EnableSwipeGesture { get; set; }
    Property Value
    Type
    System.Boolean

    IsOpen

    Gets or sets a value indicating whether a boolean property.

    Declaration
    public bool IsOpen { get; set; }
    Property Value
    Type
    System.Boolean

    Opacity

    Gets or sets a value indicating whether a float property.

    Declaration
    public double Opacity { get; set; }
    Property Value
    Type
    System.Double

    Position

    Gets or sets a value indicating whether a position property.

    Declaration
    public Position Position { get; set; }
    Property Value
    Type
    Position

    SecondaryDrawerSettings

    SecondaryDrawerSettings class

    Declaration
    public DrawerSettings SecondaryDrawerSettings { get; set; }
    Property Value
    Type
    DrawerSettings

    TouchThreshold

    Gets or sets a value indicating whether a double property.

    Declaration
    public double TouchThreshold { get; set; }
    Property Value
    Type
    System.Double

    Transition

    Gets or sets a value indicating whether a transition property.

    Declaration
    public Transition Transition { get; set; }
    Property Value
    Type
    Transition

    Methods

    Dispose()

    Declaration
    public void Dispose()

    OnConfigurationChanged(Configuration)

    Represents the configuration change.

    Declaration
    protected override void OnConfigurationChanged(Configuration newConfig)
    Parameters
    Type Name Description
    Android.Content.Res.Configuration newConfig

    The new config.

    OnDraw(Canvas)

    Represents the draw method.

    Declaration
    protected override void OnDraw(Canvas canvas)
    Parameters
    Type Name Description
    Android.Graphics.Canvas canvas

    The canvas

    OnInterceptTouchEvent(MotionEvent)

    Its is represent on intercept touch event operation

    Declaration
    public override bool OnInterceptTouchEvent(MotionEvent ev)
    Parameters
    Type Name Description
    Android.Views.MotionEvent ev

    the touch e

    Returns
    Type Description
    System.Boolean

    Its returns boolean variable

    OnLayout(Boolean, Int32, Int32, Int32, Int32)

    Represents the layout method.

    Declaration
    protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
    Parameters
    Type Name Description
    System.Boolean changed

    The changed

    System.Int32 left

    The left

    System.Int32 top

    The top

    System.Int32 right

    The right

    System.Int32 bottom

    The bottom

    OnSizeChanged(Int32, Int32, Int32, Int32)

    Represents the size changed method.

    Declaration
    protected override void OnSizeChanged(int w, int h, int oldw, int oldh)
    Parameters
    Type Name Description
    System.Int32 w

    The w

    System.Int32 h

    The h

    System.Int32 oldw

    The old

    System.Int32 oldh

    The old h

    OnTouchEvent(MotionEvent)

    Its is represent on touch event operation

    Declaration
    public override bool OnTouchEvent(MotionEvent e)
    Parameters
    Type Name Description
    Android.Views.MotionEvent e

    The event a

    Returns
    Type Description
    System.Boolean

    its return boolean variable

    RefreshDrawer()

    Its is represent on refresh drawer operation

    Declaration
    public void RefreshDrawer()

    ToggleDrawer()

    Its is represent on toggled drawer operation

    Declaration
    public void ToggleDrawer()

    ToggleSecondaryDrawer()

    Its is represent on toggled drawer operation

    Declaration
    public void ToggleSecondaryDrawer()

    Events

    Closed

    it is a closed event

    Declaration
    public event EventHandler<EventArgs> Closed
    Event Type
    Type
    System.EventHandler<System.EventArgs>

    Closing

    it is a closing event

    Declaration
    public event EventHandler<CancelEventArgs> Closing
    Event Type
    Type
    System.EventHandler<CancelEventArgs>

    Opened

    it is a opened event

    Declaration
    public event EventHandler<EventArgs> Opened
    Event Type
    Type
    System.EventHandler<System.EventArgs>

    Opening

    it is a opening event

    Declaration
    public event EventHandler<CancelEventArgs> Opening
    Event Type
    Type
    System.EventHandler<CancelEventArgs>

    Toggled

    it is a toggled event

    Declaration
    public event EventHandler<ToggledEventArgs> Toggled
    Event Type
    Type
    System.EventHandler<ToggledEventArgs>

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved