Intersoft.Client.UI.Aqua Namespace : UXMenuItem Class |
<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.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.ISelection, Intersoft.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.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.ISelection, Intersoft.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.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.ISelection, Intersoft.Client.Framework.ISelectionItem
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.
XAML |
Copy Code
|
---|---|
<Intersoft:UXMenuItem Header="Contact Us" Command="{Binding ContactCommand}"/> <Intersoft:UXMenuItem Header="About Us" NavigateUri="www.mywebsite.com/contactus" TargetName="_blank"/> |
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
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