Intersoft.Client.UI.Aqua.UXRibbon Namespace : UXRibbonButton Class |
<TemplateVisualStateAttribute(Name="KeyboardUnfocused", GroupName="KeyboardFocusStates")> <TemplateVisualStateAttribute(GroupName="SizeStates", Name="SmallState")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")> <TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")> <TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="Checked")> <TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")> <TemplatePartAttribute(Name="AnimationElement", Type=System.Windows.Controls.Border)> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")> <TemplatePartAttribute(Name="Glass", Type=System.Windows.Controls.Border)> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="Pressed")> <TemplateVisualStateAttribute(GroupName="SizeStates", Name="MediumState")> <TemplatePartAttribute(Name="LargeStylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)> <TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)> <TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)> <TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)> <TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")> <DescriptionAttribute("Represents a command button control with various display mode, keyboard support, ribbon size and routed command.")> <TemplateVisualStateAttribute(GroupName="SizeStates", Name="LargeState")> <TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)> <TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")> <TemplatePartAttribute(Name="StylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)> <TemplatePartAttribute(Name="OuterBorder", Type=System.Windows.Controls.Border)> Public Class UXRibbonButton Inherits Intersoft.Client.UI.Aqua.UXButton Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.Input.IKeyboardFocus, IRibbonControl, IRibbonKeyTipAction
Dim instance As UXRibbonButton
[TemplateVisualStateAttribute(Name="KeyboardUnfocused", GroupName="KeyboardFocusStates")] [TemplateVisualStateAttribute(GroupName="SizeStates", Name="SmallState")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")] [TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Checked")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")] [TemplatePartAttribute(Name="AnimationElement", Type=System.Windows.Controls.Border)] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")] [TemplatePartAttribute(Name="Glass", Type=System.Windows.Controls.Border)] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Pressed")] [TemplateVisualStateAttribute(GroupName="SizeStates", Name="MediumState")] [TemplatePartAttribute(Name="LargeStylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)] [TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)] [TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")] [DescriptionAttribute("Represents a command button control with various display mode, keyboard support, ribbon size and routed command.")] [TemplateVisualStateAttribute(GroupName="SizeStates", Name="LargeState")] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")] [TemplatePartAttribute(Name="StylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)] [TemplatePartAttribute(Name="OuterBorder", Type=System.Windows.Controls.Border)] public class UXRibbonButton : Intersoft.Client.UI.Aqua.UXButton, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.Input.IKeyboardFocus, IRibbonControl, IRibbonKeyTipAction
[TemplateVisualStateAttribute(Name="KeyboardUnfocused", GroupName="KeyboardFocusStates")] [TemplateVisualStateAttribute(GroupName="SizeStates", Name="SmallState")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")] [TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Checked")] [TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")] [TemplatePartAttribute(Name="AnimationElement", Type=System.Windows.Controls.Border)] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")] [TemplatePartAttribute(Name="Glass", Type=System.Windows.Controls.Border)] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Pressed")] [TemplateVisualStateAttribute(GroupName="SizeStates", Name="MediumState")] [TemplatePartAttribute(Name="LargeStylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)] [TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)] [TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")] [DescriptionAttribute("Represents a command button control with various display mode, keyboard support, ribbon size and routed command.")] [TemplateVisualStateAttribute(GroupName="SizeStates", Name="LargeState")] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")] [TemplatePartAttribute(Name="StylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)] [TemplatePartAttribute(Name="OuterBorder", Type=System.Windows.Controls.Border)] public ref class UXRibbonButton : public Intersoft.Client.UI.Aqua.UXButton, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.Input.IKeyboardFocus, IRibbonControl, IRibbonKeyTipAction
Derived from UXButton, UXRibbonButton is a command button which represents an action that will be executed when the button is clicked. To learn more about UXButton, see UXButton Overview.
XAML |
Copy Code
|
---|---|
<Intersoft:UXRibbonTabGroup Name="NewGroup" Header="New"> <Intersoft:UXRibbonButton Content="New E-mail" MinimumSize="Large" LargeIcon="/assets/icons/new_email.png" Icon="/assets/icons/new_email.png" /> <Intersoft:UXRibbonButton Content="New Items" MaximumSize="Medium" LargeIcon="/assets/icons/new_items.png" Icon="/assets/icons/new_items.png"> </Intersoft:UXRibbonButton> <Intersoft:UXRibbonButton Content="Junk" MaximumSize="Medium" LargeIcon="/assets/icons/junk.png" Icon="/assets/icons/junk.png" /> </Intersoft:UXRibbonTabGroup> |
The result looks like the following figure.
To learn more about ribbon controls, see Working with Ribbon Controls.
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ContentControl
System.Windows.Controls.Primitives.ButtonBase
System.Windows.Controls.Button
Intersoft.Client.Framework.ISButton
Intersoft.Client.UI.Aqua.UXButton
Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonButton
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