Intersoft ClientUI Documentation
UXMenuItem Class
Members 



Represents menu item control.
Object Model
UXMenuItem ClassISFramework ClassStyleSelector ClassDataTemplateSelector ClassUXMenu ClassISelection Interface
Syntax
<TemplateVisualStateAttribute(Name="Disabled", GroupName="CommonStates")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")>
<TemplatePartAttribute(Name="TextCommandElement", Type=System.Windows.Controls.TextBlock)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Checked")>
<DescriptionAttribute("Represents menu item control.")>
<StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXMenuItem)>
<TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Unselected")>
<TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")>
<TemplatePartAttribute(Name="MenuElement", Type=Intersoft.Client.UI.Aqua.UXMenu)>
<TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)>
<TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="AnimationElement", Type=System.Windows.Controls.Border)>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")>
<DoNotObfuscateTypeAttribute()>
<TemplatePartAttribute(Name="IndicatorTemplateElement", Type=System.Windows.Controls.ContentControl)>
<TemplatePartAttribute(Name="PointerElement", Type=System.Windows.Shapes.Path)>
<TemplatePartAttribute(Name="IndicatorImageElement", Type=System.Windows.Controls.Image)>
<TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)>
<TemplatePartAttribute(Name="IndicatorElement", Type=System.Windows.Controls.Border)>
Public Class UXMenuItem 
   Inherits Intersoft.Client.Framework.ISHeaderedSelectionControl
   Implements Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFrameworkIntersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.ISelectionIntersoft.Client.Framework.ISelectionItem 
Dim instance As UXMenuItem
[TemplateVisualStateAttribute(Name="Disabled", GroupName="CommonStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[TemplatePartAttribute(Name="TextCommandElement", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Checked")]
[DescriptionAttribute("Represents menu item control.")]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXMenuItem)]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Unselected")]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")]
[TemplatePartAttribute(Name="MenuElement", Type=Intersoft.Client.UI.Aqua.UXMenu)]
[TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="AnimationElement", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[DoNotObfuscateTypeAttribute()]
[TemplatePartAttribute(Name="IndicatorTemplateElement", Type=System.Windows.Controls.ContentControl)]
[TemplatePartAttribute(Name="PointerElement", Type=System.Windows.Shapes.Path)]
[TemplatePartAttribute(Name="IndicatorImageElement", Type=System.Windows.Controls.Image)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="IndicatorElement", Type=System.Windows.Controls.Border)]
public class UXMenuItem : Intersoft.Client.Framework.ISHeaderedSelectionControl, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFrameworkIntersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.ISelectionIntersoft.Client.Framework.ISelectionItem  
[TemplateVisualStateAttribute(Name="Disabled", GroupName="CommonStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[TemplatePartAttribute(Name="TextCommandElement", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Checked")]
[DescriptionAttribute("Represents menu item control.")]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXMenuItem)]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Unselected")]
[TemplateVisualStateAttribute(GroupName="SelectionStates", Name="Selected")]
[TemplatePartAttribute(Name="MenuElement", Type=Intersoft.Client.UI.Aqua.UXMenu)]
[TemplatePartAttribute(Name="ItemsPresenter", Type=System.Windows.Controls.ItemsPresenter)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="AnimationElement", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[DoNotObfuscateTypeAttribute()]
[TemplatePartAttribute(Name="IndicatorTemplateElement", Type=System.Windows.Controls.ContentControl)]
[TemplatePartAttribute(Name="PointerElement", Type=System.Windows.Shapes.Path)]
[TemplatePartAttribute(Name="IndicatorImageElement", Type=System.Windows.Controls.Image)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="IndicatorElement", Type=System.Windows.Controls.Border)]
public ref class UXMenuItem : public Intersoft.Client.Framework.ISHeaderedSelectionControl, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFrameworkIntersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.ISelectionIntersoft.Client.Framework.ISelectionItem  
Remarks

UXMenuItem implements both ICommandSource and INavigationSource that allows both commanding and navigation using UXMenuItem. 

You can do commanding through Command, CommandTarget and CommandParameter properties, and navigation using NavigateUri and TargetName properties. To learn more about commanding, see Commanding Overview. To learn about navigation, see Navigation Overview.

Example
XAML
Copy Code
<Intersoft:UXMenuItem Header="Contact Us" Command="{Binding ContactCommand}"/>
<Intersoft:UXMenuItem Header="About Us" NavigateUri="www.mywebsite.com/contactus" TargetName="_blank"/>            
Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ItemsControl
                  Intersoft.Client.Framework.HeaderedItemsControl
                     Intersoft.Client.Framework.ISHeaderedItemsControl
                        Intersoft.Client.Framework.ISHeaderedSelectionControl
                           Intersoft.Client.UI.Aqua.UXMenuItem
                              Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonMenuItem
                              Intersoft.Client.UI.Aqua.UXStackMenu.UXStackItem

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXMenuItem Members
Intersoft.Client.UI.Aqua Namespace

Concepts

Commanding Overview
Navigation Overview
UXContextMenu
UXMenuBar
UXDropDownButton
UXSplitButton

Send Feedback