Menu for WPF | ComponentOne
C1.WPF.Menu Namespace / C1MenuItem Class
Members

In This Topic
    C1MenuItem Class
    In This Topic
    Represents a selectable item inside a C1Menu control.
    Object Model
    C1MenuItem Class
    Syntax
    'Declaration
     
    
    <C1ControlAttribute(True)>
    <C1TemplatePartAttribute(Name="MenuList", Type=C1.WPF.Menu.C1MenuList)>
    <C1VisualStateAttribute(Name="Opened", 
       GroupName="Opened", 
       Condition="IsSubmenuOpenVisual")>
    <StyleTypedPropertyAttribute(Property="OpenIconStyle", StyleTargetType=System.Windows.Controls.ContentControl)>
    <TemplatePartAttribute(Name="MenuList", Type=C1.WPF.Menu.C1MenuList)>
    <TemplateVisualStateAttribute(Name="Opened", GroupName="OpenedStates")>
    <DefaultEventAttribute("OnItemsChanged")>
    <DefaultPropertyAttribute("Items")>
    <ContentPropertyAttribute("Items")>
    <LocalizabilityAttribute(LocalizationCategory.None, Readability=Readability.Unreadable)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class C1MenuItem 
       Inherits C1.WPF.Core.C1HierarchicalPresenter
    [C1Control(true)]
    [C1TemplatePart(Name="MenuList", Type=C1.WPF.Menu.C1MenuList)]
    [C1VisualState(Name="Opened", 
       GroupName="Opened", 
       Condition="IsSubmenuOpenVisual")]
    [StyleTypedProperty(Property="OpenIconStyle", StyleTargetType=System.Windows.Controls.ContentControl)]
    [TemplatePart(Name="MenuList", Type=C1.WPF.Menu.C1MenuList)]
    [TemplateVisualState(Name="Opened", GroupName="OpenedStates")]
    [DefaultEvent("OnItemsChanged")]
    [DefaultProperty("Items")]
    [ContentProperty("Items")]
    [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class C1MenuItem : C1.WPF.Core.C1HierarchicalPresenter 
    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Media.Visual
                System.Windows.UIElement
                   System.Windows.FrameworkElement
                      System.Windows.Controls.Control
                         System.Windows.Controls.ItemsControl
                            C1.WPF.Core.C1ItemsControl
                               C1.WPF.Core.C1HierarchicalPresenter
                                  C1.WPF.Menu.C1MenuItem

    See Also