[]
        
(Showing Draft Content)

C1.WPF.Menu.C1RadialMenu

C1RadialMenu Class

The C1RadialMenu control represents a touch-friendly alternative to the traditional context menu.

Namespace: C1.WPF.Menu
Assembly: C1.WPF.Menu.dll
Syntax
[StyleTypedProperty(Property = "NavigationButtonStyle", StyleTargetType = typeof(Button))]
[TemplatePart(Name = "ContextMenuPopup", Type = typeof(Popup))]
[TemplatePart(Name = "CurrentItemPresenter", Type = typeof(C1RadialMenuItemsPresenter))]
[TemplatePart(Name = "ColorPresenter", Type = typeof(C1RadialColorItemsPresenter))]
[TemplatePart(Name = "RadialSlider", Type = typeof(C1RadialSlider))]
[TemplatePart(Name = "CurrentItemRing", Type = typeof(C1RadialBackgroundPresenter))]
[TemplatePart(Name = "ItemsContainer", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "MainPanel", Type = typeof(Grid))]
[TemplatePart(Name = "NavigationButton", Type = typeof(Button))]
[TemplatePart(Name = "PositioningPanel", Type = typeof(Canvas))]
[TemplatePart(Name = "ToolTip", Type = typeof(ToolTip))]
[TemplatePart(Name = "Expand", Type = typeof(Storyboard))]
[TemplatePart(Name = "Collapse", Type = typeof(Storyboard))]
[TemplatePart(Name = "SubmenuOpen", Type = typeof(Storyboard))]
[TemplatePart(Name = "SubmenuClose", Type = typeof(Storyboard))]
[TemplatePart(Name = "ColorSubmenuOpen", Type = typeof(Storyboard))]
[TemplatePart(Name = "ColorSubmenuClose", Type = typeof(Storyboard))]
[TemplatePart(Name = "RadialSliderOpen", Type = typeof(Storyboard))]
[TemplatePart(Name = "RadialSliderClose", Type = typeof(Storyboard))]
public class C1RadialMenu : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage, IC1ContextMenu, IDisposable

Constructors

Name Description
C1RadialMenu()

Initializes a new instance of the C1RadialMenu class.

Fields

Name Description
AccentBrushProperty

Identifies the AccentBrush dependency property.

AutoCollapseProperty

Identifies the AutoCollapse dependency property.

BackIconProperty

Identifies the BackIcon dependency property.

ColorItemStyleProperty

Identifies the ColorItemStyle dependency property.

CurrentItemProperty

Identifies the CurrentItem dependency property.

ExpandAreaThicknessProperty

Identifies the ExpandAreaThickness dependency property.

IconProperty

Identifies the Icon dependency property.

ItemIconStyleProperty

Identifies the ItemIconStyle dependency property.

NavigationButtonRelativeSizeProperty

Identifies the NavigationButtonRelativeSize dependency property.

NavigationButtonStyleProperty

Identifies the NavigationButtonStyle dependency property.

OffsetProperty

Identifies the Offset dependency property.

PlacementTargetProperty

Identifies the PlacementTarget dependency property.

RadialSliderStyleProperty

Identifies the RadialSliderStyle dependency property.

SectorCountProperty

Identifies the SectorCount dependency property.

ShowToolTipProperty

Identifies the ShowToolTip dependency property.

ToolTipPlacementProperty

Identifies the ToolTipPlacement dependency property.

ToolTipTemplateProperty

Identifies the ToolTipTemplate dependency property.

Properties

Name Description
AccentBrush

Gets or sets the <see cref="Brush" /> used to color small menu parts.

AutoCollapse

Gets or sets a value indicating if the menu will auto collapse when the user clicks outside of it.

BackIcon

Gets or sets the back icon that appears in a C1RadialMenu.

ColorItemStyle

Gets or sets the style used to display the C1RadialColorItem.

CurrentItem

Gets the C1RadialMenu or C1RadialMenuItem control which items are currently visible in the C1RadialMenu UI.

ExpandAreaThickness

Gets or sets the thickness of expand area.

HasItems

Gets a value that indicates whether the ItemsControl contains items.

Icon

Gets or sets the icon that appears in a C1RadialMenu.

IsCollapsed

Gets a value that indicates whether the menue is collapsed.

IsDisposed

Gets whether this instance is disposed.

ItemIconStyle

Gets or sets the style used to display the icon.

NavigationButtonRelativeSize

Gets or sets the navigation button size relative to the menu size.

NavigationButtonStyle

Represents the style to apply to navigation button.

Offset

Gets or sets the relative offset of the C1RadialMenu relative to the pointer position.

PlacementTarget

Gets or sets the FrameworkElement relative to which the C1RadialMenu is positioned when it opens.

RadialSliderStyle

Gets or sets the style used to display the C1RadialSlider.

RootElement

Gets the root visible element of the C1RadialMenu control.

SectorCount

Gets or sets the number of sectors which should be displayed in menu.

ShowToolTip

Determines whether the control should display tooltips for individual items.

ToolTipPlacement

Gets or sets the tooltip placement.

ToolTipTemplate

Gets or sets the data template used to display the tooltip.

Methods

Name Description
Collapse()

Collapses the menu.

Dispose()
Dispose(bool)
Expand()

Expands the menu.

Finalize()

Finalizes this instance of the C1RadialMenu class.

GoBack()

Navigates the C1RadialMenu control one level up as if end-user clicked Back button.

Hide()

Hides the menu.

OnApplyTemplate()
OnClosed(EventArgs)

Raises the Closed event.

OnClosing(CancelEventArgs)

Raises the Closing event.

OnCollapsed(EventArgs)

Raises the Collapsed event.

OnCollapsing(CancelEventArgs)

Raises the Collapsing event.

OnExpanded(EventArgs)

Raises the Expanded event.

OnExpanding(CancelEventArgs)

Raises the Expanding event.

OnItemChecked(SourcedEventArgs)

Raises the ItemChecked event.

OnItemClick(SourcedEventArgs)

Raises the ItemClick event.

OnItemClosed(SourcedEventArgs)

Raises the ItemClosed event.

OnItemClosing(CancelSourceEventArgs)

Raises the ItemClosing event.

OnItemOpened(SourcedEventArgs)

Raises the ItemOpened event.

OnItemOpening(CancelSourceEventArgs)

Raises the ItemOpening event.

OnItemUnchecked(SourcedEventArgs)

Raises the ItemUnchecked event.

OnItemsChanged(NotifyCollectionChangedEventArgs)
OnOpened(EventArgs)

Raises the Opened event.

OnOpening(CancelEventArgs)

Raises the Opening event.

Show(FrameworkElement, Point)

Displays the radial menu at the specified position.

Show(FrameworkElement, Point, bool)

Displays the radial menu at the specified position.

Events

Name Description
Closed

Occurs when the C1RadialMenu closes.

Closing

Occurs when the C1RadialMenu is Closing.

Collapsed

Occurs when the C1RadialMenu is collapsed.

Collapsing

Occurs when the C1RadialMenu is collapsing.

Expanded

Occurs when the C1RadialMenu is expanded.

Expanding

Occurs when the C1RadialMenu is expanding.

ItemChecked

Occurs when a C1RadialMenuItem is checked.

ItemClick

Occurs when a C1RadialMenuItem is clicked.

ItemClosed

Occurs when a C1RadialMenuItem is closed.

ItemClosing

Occurs when a C1RadialMenuItem is closing.

ItemOpened

Occurs when a C1RadialMenuItem is opened.

ItemOpening

Occurs when a C1RadialMenuItem is opening.

ItemUnchecked

Occurs when a C1RadialMenuItem is unchecked.

Opened

Occurs when the C1RadialMenu opens.

Opening

Occurs when the C1RadialMenu is Opening.