Represents a selectable item inside a C1Menu control.

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

Syntax

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

Inheritance Hierarchy

System..::..Object
  System.Windows..::..DependencyObject
    System.Windows..::..UIElement
      System.Windows..::..FrameworkElement
        System.Windows.Controls..::..Control
          System.Windows.Controls..::..ItemsControl
            C1.Silverlight..::..C1HierarchicalPresenter
              C1.Silverlight..::..C1MenuItem

See Also