Represents a selectable item inside a C1Menu control.

Namespace:  C1.WPF
Assembly:  C1.WPF (in C1.WPF.dll)

Syntax

C#
[TemplatePartAttribute(Name = "HeaderPanel", Type = typeof(Grid))]
[TemplatePartAttribute(Name = "ExpandIcon", Type = typeof(Path))]
[TemplateVisualStateAttribute(Name = "Opened", GroupName = "OpenedStates")]
[TemplatePartAttribute(Name = "MenuIcon", Type = typeof(ContentControl))]
[TemplatePartAttribute(Name = "CheckIcon", Type = typeof(FrameworkElement))]
[TemplatePartAttribute(Name = "SubItemsPopup", Type = typeof(Popup))]
[TemplatePartAttribute(Name = "SubItemsPresenter", Type = typeof(ItemsPresenter))]
[TemplateVisualStateAttribute(Name = "Highlighted", GroupName = "HighlightedStates")]
[TemplateVisualStateAttribute(Name = "Closed", GroupName = "OpenedStates")]
[TemplateVisualStateAttribute(Name = "NonHighlighted", GroupName = "HighlightedStates")]
public class C1MenuItem : C1HierarchicalPresenter
Visual Basic
<TemplatePartAttribute(Name := "HeaderPanel", Type := GetType(Grid))> _
<TemplatePartAttribute(Name := "ExpandIcon", Type := GetType(Path))> _
<TemplateVisualStateAttribute(Name := "Opened", GroupName := "OpenedStates")> _
<TemplatePartAttribute(Name := "MenuIcon", Type := GetType(ContentControl))> _
<TemplatePartAttribute(Name := "CheckIcon", Type := GetType(FrameworkElement))> _
<TemplatePartAttribute(Name := "SubItemsPopup", Type := GetType(Popup))> _
<TemplatePartAttribute(Name := "SubItemsPresenter", Type := GetType(ItemsPresenter))> _
<TemplateVisualStateAttribute(Name := "Highlighted", GroupName := "HighlightedStates")> _
<TemplateVisualStateAttribute(Name := "Closed", GroupName := "OpenedStates")> _
<TemplateVisualStateAttribute(Name := "NonHighlighted", GroupName := "HighlightedStates")> _
Public Class C1MenuItem _
	Inherits C1HierarchicalPresenter

Inheritance Hierarchy

See Also