[]
        
(Showing Draft Content)

C1.WPF.C1RadialMenuItem

C1RadialMenuItem Class

Represents a selectable item inside a C1RadialMenu control.

Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
[TemplateVisualState(Name = "PointerOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplatePart(Name = "IconPresenter", Type = typeof(ContentControl))]
[TemplatePart(Name = "HeaderPresenter", Type = typeof(ContentControl))]
[TemplatePart(Name = "HeaderPanel", Type = typeof(Grid))]
[TemplatePart(Name = "ExpandButton", Type = typeof(Button))]
[TemplatePart(Name = "CheckElement", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "EnterStoryboard", Type = typeof(Storyboard))]
[TemplateVisualState(Name = "Highlighted", GroupName = "HighlightedStates")]
[TemplateVisualState(Name = "NonHighlighted", GroupName = "HighlightedStates")]
public class C1RadialMenuItem : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage

Constructors

Name Description
C1RadialMenuItem()

Initializes a new instance of a C1RadialMenuItem.

Fields

Name Description
AccentBrushProperty

Identifies the AccentBrush dependency property.

AngleProperty

Identifies the Angle dependency property.

AutoSelectProperty

Identifies the AutoSelect dependency property.

CenterPointProperty

Identifies the CenterPoint dependency property.

CheckArcProperty

Identifies the CheckArc dependency property.

CollapseOnClickProperty

Identifies the CollapseOnClick dependency property.

CommandParameterProperty

Identifies the CommandParameter dependency property.

CommandProperty

Identifies the Command dependency property.

DisabledCuesVisibilityProperty

Identifies the DisabledCuesVisibility dependency property.

DisplayIndexProperty

Identifies the DisplayIndex dependency property.

ExpandArcProperty

Identifies the ExpandArc dependency property.

ExpandAreaThicknessProperty

Identifies the ExpandAreaThickness dependency property.

FocusCuesVisibilityProperty

Identifies the FocusCuesVisibility dependency property.

GroupNameProperty

Identifies the GroupName dependency property.

HeaderBackgroundProperty

Identifies the HeaderBackground dependency property.

HeaderForegroundProperty

Identifies the HeaderForeground dependency property.

HeaderProperty

Identifies the Header dependency property.

HeaderTemplateProperty

Identifies the HeaderTemplate dependency property.

IconProperty

Identifies the Icon dependency property.

IconStyleProperty

Identifies the IconStyle dependency property.

IsCheckableProperty

Identifies the IsCheckable dependency property.

IsCheckedProperty

Identifies the IsChecked dependency property.

IsHighlightedProperty

Identifies the IsHighlighted dependency property.

IsPointerOverProperty

Identifies the IsPointerOver dependency property.

IsSelectableProperty

Identifies the IsSelectable dependency property.

ItemContainerStyleProperty

Identifies the ItemContainerStyle dependency property.

OuterArcProperty

Identifies the OuterArc dependency property.

SectorCountProperty

Identifies the SectorCount dependency property.

SelectedIndexProperty

Identifies the SelectedIndex dependency property.

SelectedItemOptionsProperty

Identifies the SelectedItemOptions dependency property.

ShowSelectedItemProperty

Identifies the ShowSelectedItem dependency property.

TextAlignmentProperty

Identifies the TextAlignment dependency property.

TextDecorationsProperty

Identifies the TextDecorations dependency property.

TextWrappingProperty

Identifies the TextWrapping dependency property.

ToolTipProperty

Identifies the ToolTip dependency property.

Properties

Name Description
AccentBrush

Gets or sets the Brush used to color small menu parts.

Angle

Gets or sets the item angle.

AutoSelect

Determines whether C1RadialMenuItem should update SelectedIndex property acccording to the end-user selection.

CenterPoint

Gets the coordinates of the circle center, which can be used in xaml to draw circle sector, representing the current C1RadialMenuItem.

CheckArc

Gets the definition of check arc segment.

CollapseOnClick

Gets or sets a value indicating if the menu will auto collapse when the user clicks on item which has no child items.

Command

Gets or sets the command to invoke when this button is pressed.

CommandParameter

Gets or sets the parameter to pass to the Command property.

DisabledCuesVisibility

Gets or sets a value indicating whether the disabled visuals of the control are visible.

DisplayIndex

Gets or sets the zero-based index of this item which should be used to layout this item in the parent submenu.

ExpandArc

Gets the definition of expand area arc segment.

ExpandAreaThickness

Gets or sets the thickness of expand area.

FocusCuesVisibility

Gets or sets a value indicating whether the focus visuals of the control are visible.

GroupName

Gets or sets the name that specifies which MenuItems are mutually exclusive (when checkable).

HasContent

Gets a value that indicates whether the C1RadialMenuItem contains sub-items or any other content.

HasItems

Gets a value that indicates whether the ItemsControl contains items.

Header

Gets or sets the header of this control.

HeaderBackground

Gets or sets the background brush of the header.

HeaderForeground

Gets or sets the foreground brush of the header.

HeaderTemplate

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

Icon

Gets or sets the icon that appears in a C1RadialMenuItem.

IconStyle

Gets or sets the style used to display the icon.

Index

Gets the index of this C1RadialMenuItem in its parent items collection.

IsCheckable

Gets a value that indicates whether a C1RadialMenuItem can be checked.

IsChecked

Gets or sets a value that indicates whether the C1RadialMenuItem is checked.

IsClickSubscribed
IsHighlighted

Gets a value that indicates whether a C1RadialMenuItem is highlighted.

IsPointerOver

Gets a value indicating whether the pointer is located over this element.

IsSelectable

Determines whether this item should be honored when SelectedIndex property is changed acccording to the end-user selection.

ItemContainerStyle

Gets or sets the item container style used to display the item container .

Menu

Identifies the parent C1RadialMenu of this item.

OuterArc

Gets the definition of outer arc segment which can be used in xaml to draw circle sector, representing the current C1RadialMenuItem.

ParentItem

Gets the ItemsControl that is the parent of this item.

SectorCount

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

SelectedIndex

Gets or sets the index of the curerntly selected sub-item.

SelectedItem
SelectedItemOptions

Determines what part of the selected sub-item should be displayed for the curren item.

ShowSelectedItem

Determines whether icon, header and check sign of the selected sub-item should be displayed for the curren item.

TextAlignment

Gets or sets a value that indicates the horizontal alignment of text content in the Header.

TextDecorations

Gets or sets a TextDecorationCollection that contains the effects to apply to the text of the Header.

TextWrapping

Gets or sets a value that indicates how any text should be wrapped in the Header.

ToolTip

Gets or sets the tooltip of this control.

Methods

Name Description
ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

ChangeVisualStateHighlighted(bool)

Updates the current visual state of the Highlighted visual state group to match the object's properties.

OnApplyTemplate()

Builds the visual tree for the C1RadialMenuItem control when a new template is applied.

OnChecked(SourcedEventArgs)

Responds to a check item action by raising a Checked event.

OnClick(SourcedEventArgs)

Responds to a click action by raising a Click event.

OnHeaderChanged(object)

Called when the value of the Header property changes.

OnItemsChanged(NotifyCollectionChangedEventArgs)
OnMouseEnter(MouseEventArgs)
OnMouseLeave(MouseEventArgs)
OnMouseLeftButtonDown(MouseButtonEventArgs)
OnMouseLeftButtonUp(MouseButtonEventArgs)
OnMouseRightButtonDown(MouseButtonEventArgs)
OnSelectedIndexChanged(int)
OnUnchecked(SourcedEventArgs)

Responds to an uncheck item action by raising a Unchecked event.

Events

Name Description
Checked

Occurs when a C1RadialMenuItem is checked.

Click

Occurs when the C1RadialMenuItem is clicked.

IsPointerOverChanged

Event raised when the IsPointerOver property has changed.

Unchecked

Occurs when a C1RadialMenuItem is unchecked.

Extension Methods