menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfRadialMenu - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfRadialMenu

    Radial menu class

    Inheritance
    System.Object
    SfRadialMenu
    Namespace: Syncfusion.SfRadialMenu.Android
    Assembly: Syncfusion.SfRadialMenu.Android.dll
    Syntax
    public class SfRadialMenu : FrameLayout

    Constructors

    SfRadialMenu(Context)

    Initializes a new instance of the SfRadialMenu class.

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

    Context type

    SfRadialMenu(Context, IAttributeSet)

    Initializes a new instance of the SfRadialMenu class.

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

    Context type

    Android.Util.IAttributeSet attrs

    Attribute set

    SfRadialMenu(Context, IAttributeSet, Int32)

    Initializes a new instance of the SfRadialMenu class.

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

    Context type

    Android.Util.IAttributeSet attrs

    Attribute set

    System.Int32 defStyle

    Integer type

    Properties

    AnimationDuration

    Gets or sets the value indicating the speed of opening / closing / navigating animations.

    Declaration
    public int AnimationDuration { get; set; }
    Property Value
    Type Description
    System.Int32

    The duration of the animation.

    CenterButtonBackground

    Gets or sets the value indicating the back color of the center button at first level. It will not applicable to custom view assigned through CenterButtonView.

    Declaration
    public Color CenterButtonBackground { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    The center button background.

    CenterButtonBackIcon

    Gets or sets the center button back icon.

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

    The center button back icon.

    CenterButtonBackText

    Gets or sets the value indicating text of the center button when it navigated to next level and not in first level and it can also act as font icon. It will not applicable to custom view assigned through CenterBackButtonView.

    Declaration
    public string CenterButtonBackText { get; set; }
    Property Value
    Type Description
    System.String

    The center button back text.

    CenterButtonBackTextColor

    Gets or sets the value indicating text/font icon color of the center button when it navigated to next level and not in first level. It will not applicable to custom view assigned through CenterBackButtonView.

    Declaration
    public Color CenterButtonBackTextColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    The color of the center button back text.

    CenterButtonBackTextSize

    Gets or sets the value that indicating the size of the text / icon of the center button when it navigated to next level and not in first level. It will not applicable to custom view assigned through CenterBackButtonView.

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

    The size of the center button back text.

    CenterButtonBackTypeface

    Gets or sets the value that indicating the font family of the text of center button when it navigated to next level and not in first level. Font icon support will achieved through this support. It will not applicable to custom view assigned through CenterBackButtonView

    Declaration
    public Typeface CenterButtonBackTypeface { get; set; }
    Property Value
    Type Description
    Android.Graphics.Typeface

    The center button back typeface.

    CenterButtonBorderColor

    Gets or sets the value indicating the border color of the center button.

    Declaration
    public Color CenterButtonBorderColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    The color of the center button border.

    CenterButtonBorderThickness

    Gets or sets the value indicating the border thickness of the center button.

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

    The center button border thickness.

    CenterButtonPlacement

    Gets or sets SfRadialMenuCenterButtonPlacement.

    Declaration
    public SfRadialMenuCenterButtonPlacement CenterButtonPlacement { get; set; }
    Property Value
    Type
    SfRadialMenuCenterButtonPlacement

    CenterButtonRadius

    Gets or sets the value that indicating the size of the center button at first level by adjusting its radius.

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

    The center button radius.

    CenterButtonText

    Gets or sets the value indicating text of the center button at first level and it can also act as font icon. It will not applicable to custom view assigned through CenterButtonView.

    Declaration
    public string CenterButtonText { get; set; }
    Property Value
    Type Description
    System.String

    The center button text.

    CenterButtonTextColor

    Gets or sets the value indicating text/font icon color of the center button at first level. It will not applicable to custom view assigned through CenterButtonView.

    Declaration
    public Color CenterButtonTextColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    The color of the center button text.

    CenterButtonTextSize

    Gets or sets the value that indicating the size of the text / icon of the center button at first level. It will not applicable to custom view assigned through CenterButtonView

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

    The size of the center button text.

    CenterButtonTypeface

    Gets or sets the value that indicating the font family of the text of center button when it navigated to next level and not in first level. Font icon support will achieved through this support. It will not applicable to custom view assigned through CenterBackButtonView.

    Declaration
    public Typeface CenterButtonTypeface { get; set; }
    Property Value
    Type Description
    Android.Graphics.Typeface

    The center button typeface.

    CenterButtonView

    Gets or sets the value indicating view of the center button at first level. Any view can be assigned as center button view.

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

    The center button view.

    EnableCenterButtonAnimation

    Gets or sets a value indicating whether the value that enable and disable Zoom In or Zoom out animation when the RadialMenu getting open or close respectively.

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

    true if enable center button animation; otherwise, false.

    EnableRotation

    Gets or sets a value indicating whether that enable or disable the rim rotation with touch gestures.

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

    true if enable rotation; otherwise, false.

    IsDragEnabled

    Gets or sets a value indicating whether the center button can be drag on the view. It is applicable when the SfRadialMenu in closed state.

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

    true if is drag enabled; otherwise, false.

    IsOpen

    Gets or sets a value indicating whether the control has to be open or closed. Using this property user can load the control with open state.

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

    true if is open; otherwise, false.

    Items

    Gets or sets the items.

    Declaration
    public ObservableCollection<SfRadialMenuItem> Items { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<SfRadialMenuItem>

    The items.

    ItemsSource

    Gets or sets a collection of items that can be populated as SfRadialMenuItem and get rendered at run-time based on the Template provided.

    Declaration
    public IEnumerable ItemsSource { get; set; }
    Property Value
    Type Description
    System.Collections.IEnumerable

    The items source.

    LayoutType

    Gets or sets the value indicating arrangement of items on rim either automatic or user defined.

    Declaration
    public LayoutType LayoutType { get; set; }
    Property Value
    Type Description
    LayoutType

    The type of the layout.

    OuterRimColor

    Gets or sets the color of the outer rim.

    Declaration
    public Color OuterRimColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    The color of the outer rim.

    OuterRimThickness

    Gets or sets the outer rim thickness.

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

    The outer rim thickness.

    Point

    Gets or sets the value indication the position of the center button placement. User can determine the position of the center button while loading.

    Declaration
    public Point Point { get; set; }
    Property Value
    Type Description
    Android.Graphics.Point

    The point.

    RimActiveColor

    Gets or sets the color of the rim active.

    Declaration
    public Color RimActiveColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    The color of the rim active.

    RimColor

    Gets or sets the value indicating the color of the entire rim.

    Declaration
    public Color RimColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    The color of the rim.

    RimRadius

    Gets or sets the value indicating the size of the rim by adjusting its radius.

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

    The rim radius.

    SelectionColor

    Gets or sets the value indicating the back color of each items. Generally its represent as pie. It will not applicable to custom view.

    Declaration
    public Color SelectionColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    The color of the selection.

    SeparatorColor

    Gets or sets the value indicating the color of the separator that appear between two items.

    Declaration
    public Color SeparatorColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    The color of the separator.

    SeparatorThickness

    Gets or sets the value indicating the thickness of the separator that appear between two items.

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

    The separator thickness.

    StartAngle

    Gets or sets the start angle of the radial menu item.

    Declaration
    public int StartAngle { get; set; }
    Property Value
    Type Description
    System.Int32

    The start angle of Radial menu item.

    VisibleSegmentsCount

    Gets or sets the value that splits the available spaces as pie segments. Exceeded items will not shown and beneath items leave empty space on rim. It will be applicable only if the SfRadialMenu in Custom layout type.

    Declaration
    public int VisibleSegmentsCount { get; set; }
    Property Value
    Type Description
    System.Int32

    The visible segments count.

    Methods

    Close()

    Closed the items of the Radial Menu by collapsing the rim.

    Declaration
    public void Close()

    DispatchTouchEvent(MotionEvent)

    Dispatch Touch event

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

    Motion event

    Returns
    Type Description
    System.Boolean

    return value

    Dispose(Boolean)

    Dispose method

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    disposing value

    OnSizeChanged(Int32, Int32, Int32, Int32)

    OnSizeChanged Method.

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

    Integer W

    System.Int32 h

    Integer h

    System.Int32 oldw

    Old Width

    System.Int32 oldh

    Old Height

    Show()

    Opens the first level items of the Radial Menu by expanding the rim.

    Declaration
    public void Show()

    Events

    CenterButtonBackTapped

    Center Button back tapped event.

    Declaration
    public event EventHandler<CenterButtonBackTappedEventArgs> CenterButtonBackTapped
    Event Type
    Type
    System.EventHandler<CenterButtonBackTappedEventArgs>

    Closed

    Closed event.

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

    Closing

    Closing event.

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

    DragBegin

    DragBegin event.

    Declaration
    public event EventHandler<DragBeginEventArgs> DragBegin
    Event Type
    Type
    System.EventHandler<DragBeginEventArgs>

    DragEnd

    DragEnd event.

    Declaration
    public event EventHandler<DragEndEventArgs> DragEnd
    Event Type
    Type
    System.EventHandler<DragEndEventArgs>

    Navigated

    Navigated event.

    Declaration
    public event EventHandler<NavigatedEventArgs> Navigated
    Event Type
    Type
    System.EventHandler<NavigatedEventArgs>

    Navigating

    Navigating event.

    Declaration
    public event EventHandler<NavigatingEventArgs> Navigating
    Event Type
    Type
    System.EventHandler<NavigatingEventArgs>

    Opened

    Openend event.

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

    Opening

    Opening event.

    Declaration
    public event EventHandler<OpeningEventArgs> Opening
    Event Type
    Type
    System.EventHandler<OpeningEventArgs>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved