[]
        
(Showing Draft Content)

C1.Win.Command.C1RadialMenu

C1RadialMenu Class

Represents a radial menu.

Inheritance
C1RadialMenu
Implements
ISupportSuperTooltip
Namespace: C1.Win.Command
Assembly: C1.Win.Command.8.dll
Syntax
[ToolboxBitmap(typeof(C1RadialMenu), "C1RadialMenu.png")]
[C1Description("C1RadialMenu", "Creates menu with a circular appearance.")]
public class C1RadialMenu : Component, IComponent, IDisposable, INotifyPropertyChanged, ISupportSuperTooltip

Constructors

Name Description
C1RadialMenu()

Initializes a new instance of the C1RadialMenu class.

Properties

Name Description
AutoHide

Gets or sets a value indicating whether the radial menu should automatically hide on certain events (such as lost focus etc).

The default is true.

BorderWidth

Gets or sets the width of the radial menu's outer border.

The default value is 24.

ButtonRadius

Gets or sets the radius of the central button.

The default value is 28.

CenterOnScreen

Gets or sets the screen coordinates of the menu's center. If the menu is currently invisible (Visible is false), setting this property throws an exception.

Cursor

Gets or sets the cursor used by the radial menu.

The default value is "hand".

Enabled

Gets or sets a value indicating whether the radial menu is enabled.

The default is true.

Expanded

Gets or sets a value indicating whether the radial menu is currently expanded. If the menu is currently invisible (Visible is false), setting this property throws an exception.

HorizontalOffset

Gets or sets the horizontal offset which is used for the tooltip displaying.

Image

Gets or sets the image shown in the radial menu's center button.

InnerRadius

Gets or sets the radius separating the area filled with items' background color on the outside from the inner area filled with radial menu's own background.

The default value is 70.

Items

Gets or sets the collection of items contained in this menu.

PlacementTarget

Gets or sets a target control relative to which the radial menu is positioned when it opens. If the PlacementTarget is empty (null), then the radial menu opens relative to the screen.

PlacementType

Gets or sets the mode for displaying the radial menu.

Radius

Gets or sets the menu radius in the expanded state.

The default value is 160.

SectorCount

Gets or sets a value indicating the number of sectors in the control. If sector count is greater then menu items, remaining sectors are shown as an empty space. If the number of sectors is less than the number of menu items, then only as many items as specified in this property are shown A value of -1 means that the number of sectors is equal to the number of items.

ShowToolTips

Get or sets whether the control should display tooltips.

Style

Gets or sets the styles of the radial menu.

SuperTooltip

Gets or sets the external instance of C1SuperTooltip class used to display tooltips.

TooltipPlacement

Gets or sets the placement of where a tooltip appears on the screen.

TooltipPlacementTarget

Gets or sets the element relative to which the tooltip is positioned when it opens.

TooltipPosition

Gets or sets the position of the tooltip relative to the radial menu.

The default value is "left".

UseAnimation

Gets or sets a value indicating whether the menu should use animation effects.

The default value is true.

VerticalOffset

Gets or sets the vertical offset which is used for the tooltip displaying.

Visible

Gets a value indicating whether the radial menu is currently visible.

Methods

Name Description
Dispose(bool)
HideMenu()

Hides the radial menu if it is currently visible.

Move(int, int)

Moves the radial menu if it is currently visible, does nothing otherwise.

OnCustomTooltipDisplaying(CustomTooltipDisplayingEventArgs)

Invokes the CustomTooltipDisplaying event.

OnItemCheck(RadialMenuItemCheckEventArgs)

Invokes the ItemCheck event.

OnItemClosed(EventArgs)

Invokes the ItemClosed event.

OnItemClosing(CancelEventArgs)

Invokes the ItemClosing event.

OnItemOpened(EventArgs)

Invokes the ItemOpened event.

OnItemOpening(CancelEventArgs)

Invokes the ItemOpening event.

OnItemUncheck(RadialMenuItemUncheckEventArgs)

Invokes the ItemUncheck event.

OnMenuClosing(CancelEventArgs)

Invokes the MenuClosing event.

OnMenuCollapsed(EventArgs)

Invokes the MenuCollapsed event.

OnMenuCollapsing(CancelEventArgs)

Invokes the MenuCollapsing event.

OnMenuExpanded(EventArgs)

Invokes the MenuExpanded event.

OnMenuExpanding(CancelEventArgs)

Invokes the MenuExpanding event.

OnMenuOpened(EventArgs)

Invokes the MenuOpened event.

OnMenuOpening(CancelEventArgs)

Invokes the MenuOpening event.

ResetCursor()

This method is for internal use only.

ShouldSerializeCursor()

This method is for internal use only.

ShowMenu(Form, Point, bool)

Shows the radial menu at the specified screen point. If the menu is currently visible at another location, it is hidden first.

Events

Name Description
CustomTooltipDisplaying

Occurs when the tooltip is displaying if the TooltipPlacement is set to Custom.

ItemCheck

Occurs when a menu item is checked.

ItemClick

Occurs when a menu item is clicked.

ItemClosed

Occurs when a menu item is closed.

ItemClosing

Occurs when a menu item is closing.

ItemOpened

Occurs when a menu item is opened.

ItemOpening

Occurs when a menu item is opening.

ItemUncheck

Occurs when a menu item is unchecked.

MenuClosed

Occurs when the menu is closed.

MenuClosing

Occurs when the menu is closing.

MenuCollapsed

Occurs when the menu is collapsed.

MenuCollapsing

Occurs when the menu is collapsing.

MenuExpanded

Occurs when the menu is expanded.

MenuExpanding

Occurs when the menu is expanding.

MenuOpened

Occurs when the menu is opened.

MenuOpening

Occurs when the menu is opening.

PropertyChanged

Occurs when a public property has changed.