Class SfRadialMenu
Initializes a new instance of the SfRadialMenu class.
Inheritance
Implements
Namespace: Syncfusion.SfRadialMenu.iOS
Assembly: Syncfusion.SfRadialMenu.iOS.dll
Syntax
public class SfRadialMenu : UIView, IComponent, IDisposable
Constructors
SfRadialMenu()
Initializes a new instance of the SfRadialMenu class.
Declaration
public SfRadialMenu()
SfRadialMenu(IntPtr)
Initializes a new instance of the SfRadialMenu class.
Declaration
public SfRadialMenu(IntPtr handle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | handle | The handle. |
Properties
AnimationDuration
Gets or sets the duration of the animation.
Declaration
public double AnimationDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The duration of the animation. |
CenterButtonBackgroundColor
Gets or sets a value indicating whether the back color of the center button at first level. It will not applicable to custom view assigned through CenterButtonView.
Declaration
public UIColor CenterButtonBackgroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIColor | The color of the center button background. |
CenterButtonBackText
Gets or sets a value indicating whether 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 a value indicating center button back text/font icon color.
Declaration
public UIColor CenterButtonBackTextColor { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIColor | The color of the center button back text. |
CenterButtonBackView
Gets or sets a value indicating whether a view of the center button when it navigated to next level and not in first level. Any view can be assigned as center back button view
Declaration
public UIView CenterButtonBackView { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIView | The center button back view. |
CenterButtonBorderColor
Gets or sets a value indicating whether the border color of the center button.
Declaration
public UIColor CenterButtonBorderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIColor | The color of the center button border. |
CenterButtonBorderThickness
Gets or sets a value indicating whether the border thickness of the center button.
Declaration
public double CenterButtonBorderThickness { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The center button border thickness. |
CenterButtonIconFont
Gets or sets the center button icon font.
Declaration
public UIFont CenterButtonIconFont { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIFont | The center button icon font. |
CenterButtonPlacement
Gets or sets the center button placement.
Declaration
public SfRadialMenuCenterButtonPlacement CenterButtonPlacement { get; set; }
Property Value
| Type | Description |
|---|---|
| SfRadialMenuCenterButtonPlacement | The center button placement. |
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 a value indicating whether 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 a value indicating whether text/font icon color of the center button at first level. It will not applicable to custom view assigned through CenterButtonView
Declaration
public UIColor CenterButtonTextColor { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIColor | The color of the center button text. |
CenterButtonTextFrame
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 CGRect CenterButtonTextFrame { get; set; }
Property Value
| Type | Description |
|---|---|
| CoreGraphics.CGRect | The center button text frame. |
CenterButtonView
Gets or sets a value indicating whether view of the center button at first level. Any view can be assigned as center button view
Declaration
public UIView CenterButtonView { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIView | The center button view. |
DrillDownColor
Gets or sets the color of the drill down.
Declaration
public UIColor DrillDownColor { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIColor | The color of the drill down. |
EnableCenterButtonAnimation
Gets or sets a value indicating whether 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 |
|
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 |
|
Frame
Gets or sets the frame.
Declaration
public override CGRect Frame { get; set; }
Property Value
| Type |
|---|
| CoreGraphics.CGRect |
IsDragEnabled
Gets or sets a value indicating whether the center button can be drag on the view. It is applicable when the RadialMenu in closed state.
Declaration
public bool IsDragEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
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 |
|
Items
Gets or sets the items.
Declaration
public List<SfRadialMenuItem> Items { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<SfRadialMenuItem> | The items. |
LayoutType
Gets or sets the value indicating arrangement of items on rim either automatic or user defined.
Declaration
public SfRadialMenuLayoutType LayoutType { get; set; }
Property Value
| Type | Description |
|---|---|
| SfRadialMenuLayoutType | The type of the layout. |
OuterRimColor
Gets or sets the color of the outer rim.
Declaration
public UIColor OuterRimColor { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIColor | 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. |
Position
Gets or sets the position.
Declaration
public CGPoint Position { get; set; }
Property Value
| Type | Description |
|---|---|
| CoreGraphics.CGPoint | The position. |
RimActiveColor
Gets or sets the color of the rim active.
Declaration
public UIColor RimActiveColor { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIColor | The color of the rim active. |
RimColor
Gets or sets the value indicating the color of the entire rim.
Declaration
public UIColor RimColor { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIColor | 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 UIColor SelectionColor { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIColor | The color of the selection. |
SeparatorColor
Gets or sets the value indicating the color of the separator that appear between two items.
Declaration
public UIColor SeparatorColor { get; set; }
Property Value
| Type | Description |
|---|---|
| UIKit.UIColor | 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. |
Site
Gets or sets the Site.
Declaration
public ISite Site { get; set; }
Property Value
| Type |
|---|
| System.ComponentModel.ISite |
StartAngle
Gets or sets the start angle of radial menu item..
Declaration
public int StartAngle { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The start angle of radial menu item. |
VisibleItemCount
Gets or sets a value indicating whether 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 RadialMenu in Custom layout type
Declaration
public int VisibleItemCount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The visible item count. |
Methods
AwakeFromNib()
The method overrides the AwakeFromNib
Declaration
public override void AwakeFromNib()
Close()
Closed the items of the Radial Menu by collapsing the rim.
Declaration
public void Close()
Dispose(Boolean)
Override Dispose Method.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | The Disposing. |
HitTest(CGPoint, UIEvent)
Override Hit test method.
Declaration
public override UIView HitTest(CGPoint point, UIEvent uievent)
Parameters
| Type | Name | Description |
|---|---|---|
| CoreGraphics.CGPoint | point | The Point. |
| UIKit.UIEvent | uievent | The U I Event. |
Returns
| Type | Description |
|---|---|
| UIKit.UIView | Returns a value. |
LayoutSubviews()
Layout sub views.
Declaration
public override void LayoutSubviews()
Open()
Opens the first level items of the Radial Menu by expanding the rim
Declaration
public void Open()
TouchesBegan(NSSet, UIEvent)
Override touches began method.
Declaration
public override void TouchesBegan(NSSet touches, UIEvent evt)
Parameters
| Type | Name | Description |
|---|---|---|
| Foundation.NSSet | touches | The touches. |
| UIKit.UIEvent | evt | The event. |
TouchesEnded(NSSet, UIEvent)
Override touches end method.
Declaration
public override void TouchesEnded(NSSet touches, UIEvent evt)
Parameters
| Type | Name | Description |
|---|---|---|
| Foundation.NSSet | touches | The touches. |
| UIKit.UIEvent | evt | The event. |
TouchesMoved(NSSet, UIEvent)
Override touches moved method.
Declaration
public override void TouchesMoved(NSSet touches, UIEvent evt)
Parameters
| Type | Name | Description |
|---|---|---|
| Foundation.NSSet | touches | The touches. |
| UIKit.UIEvent | evt | The event. |
updateRotation(CGPoint)
The Update Rotation.
Declaration
public nfloat updateRotation(CGPoint location)
Parameters
| Type | Name | Description |
|---|---|---|
| CoreGraphics.CGPoint | location | The location. |
Returns
| Type | Description |
|---|---|
| System.nfloat | Returns a value. |
Events
CenterButtonBackTapped
Occurs when the Center button is tapped. Center button can be retrieve and customized.
Declaration
public event EventHandler<EventArgs> CenterButtonBackTapped
Event Type
| Type |
|---|
| System.EventHandler<System.EventArgs> |
CenterButtonTapped
Occurs when the Center button is tapped. Center button can be retrieve and customized.
Declaration
public event EventHandler<EventArgs> CenterButtonTapped
Event Type
| Type |
|---|
| System.EventHandler<System.EventArgs> |
Closed
Occurs when the first level menu get collapsed to Closed.
Declaration
public event EventHandler<EventArgs> Closed
Event Type
| Type |
|---|
| System.EventHandler<System.EventArgs> |
Closing
Occurs when the first level menu that starts to collapsing to close.
Declaration
public event EventHandler<RadialMenuEventArgs> Closing
Event Type
| Type |
|---|
| System.EventHandler<RadialMenuEventArgs> |
Disposed
Disposed event.
Declaration
public event EventHandler Disposed
Event Type
| Type |
|---|
| System.EventHandler |
DragBegin
Occurs when the Radial Menu is begin to drag.
Declaration
public event EventHandler<DragBeginEventArgs> DragBegin
Event Type
| Type |
|---|
| System.EventHandler<DragBeginEventArgs> |
DragEnd
Occurs when the Radial menu is stopped dragging.
Declaration
public event EventHandler<DragEndEventArgs> DragEnd
Event Type
| Type |
|---|
| System.EventHandler<DragEndEventArgs> |
Navigated
Occurs when a Radial Menu item tapped and navigated to its next hierarchy level or Center back button is tapped to navigated to its previous hierarchy level. Its occurs only an item that has children.
Declaration
public event EventHandler<EventArgs> Navigated
Event Type
| Type |
|---|
| System.EventHandler<System.EventArgs> |
Navigating
Occurs when a Radial Menu item tapped to starts navigating to its next hierarchy level or Center back button is tapped to starts navigating to previous hierarchy level. Its occurs only an item that has children.
Declaration
public event EventHandler<RadialMenuEventArgs> Navigating
Event Type
| Type |
|---|
| System.EventHandler<RadialMenuEventArgs> |
Opened
Occurs when the first level menu get expanded to opened.
Declaration
public event EventHandler<EventArgs> Opened
Event Type
| Type |
|---|
| System.EventHandler<System.EventArgs> |
Opening
Occurs when the first level menu that starts to expanding to open.
Declaration
public event EventHandler<RadialMenuEventArgs> Opening
Event Type
| Type |
|---|
| System.EventHandler<RadialMenuEventArgs> |