Intersoft ClientUI Documentation
UXStackButton Class
Members 



Provides a button control with stack menu functionality.
Object Model
UXStackButton ClassContentReflector ClassISFramework ClassStyleSelector ClassDataTemplateSelector ClassUXStackMenu ClassStylishLabel ClassTransformInfo Class
Syntax
<TemplatePartAttribute(Name="StackIndicatorElement", Type=Intersoft.Client.UI.Controls.ContentReflector)>
<TemplatePartAttribute(Name="StylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)>
<TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="ImageElement", Type=Intersoft.Client.UI.Controls.ImageLoader)>
<TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="Glass", Type=System.Windows.Controls.Border)>
<TemplateVisualStateAttribute(Name="Pressed", GroupName="CommonStates")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Checked")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")>
<TemplatePartAttribute(Name="OuterBorder", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")>
<TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardUnfocused")>
<TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)>
<StyleTypedPropertyAttribute(Property="StackMenuStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXStackMenu.UXStackMenu)>
<TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")>
<StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXStackMenu.UXStackItem)>
<TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")>
<TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")>
<TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")>
<TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="StackIndicatorImageElement", Type=Intersoft.Client.UI.Controls.ImageLoader)>
<ContentPropertyAttribute("Items")>
<DescriptionAttribute("Provides a button control with stack menu functionality.")>
<TemplatePartAttribute(Name="ContentReflector", Type=Intersoft.Client.UI.Controls.ContentReflector)>
Public Class UXStackButton 
   Inherits Intersoft.Client.UI.Aqua.UXButtonItems
   Implements Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.Input.IKeyboardFocusIntersoft.Client.Framework.ITransformInfo 
Dim instance As UXStackButton
[TemplatePartAttribute(Name="StackIndicatorElement", Type=Intersoft.Client.UI.Controls.ContentReflector)]
[TemplatePartAttribute(Name="StylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ImageElement", Type=Intersoft.Client.UI.Controls.ImageLoader)]
[TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="Glass", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(Name="Pressed", GroupName="CommonStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Checked")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[TemplatePartAttribute(Name="OuterBorder", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardUnfocused")]
[TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[StyleTypedPropertyAttribute(Property="StackMenuStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXStackMenu.UXStackMenu)]
[TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXStackMenu.UXStackItem)]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")]
[TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="StackIndicatorImageElement", Type=Intersoft.Client.UI.Controls.ImageLoader)]
[ContentPropertyAttribute("Items")]
[DescriptionAttribute("Provides a button control with stack menu functionality.")]
[TemplatePartAttribute(Name="ContentReflector", Type=Intersoft.Client.UI.Controls.ContentReflector)]
public class UXStackButton : Intersoft.Client.UI.Aqua.UXButtonItems, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.Input.IKeyboardFocusIntersoft.Client.Framework.ITransformInfo  
[TemplatePartAttribute(Name="StackIndicatorElement", Type=Intersoft.Client.UI.Controls.ContentReflector)]
[TemplatePartAttribute(Name="StylishLabel", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[TemplatePartAttribute(Name="DisabledVisualElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="ImageElement", Type=Intersoft.Client.UI.Controls.ImageLoader)]
[TemplatePartAttribute(Name="FocusVisualElement", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="Glass", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(Name="Pressed", GroupName="CommonStates")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Checked")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Disabled")]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="Normal")]
[TemplatePartAttribute(Name="OuterBorder", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="KeyboardFocus", Type=System.Windows.Shapes.Rectangle)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="MouseOver")]
[TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardUnfocused")]
[TemplatePartAttribute(Name="ContentPresenter", Type=Intersoft.Client.UI.Controls.StylishLabel)]
[StyleTypedPropertyAttribute(Property="StackMenuStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXStackMenu.UXStackMenu)]
[TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardFocused")]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXStackMenu.UXStackItem)]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")]
[TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="StackIndicatorImageElement", Type=Intersoft.Client.UI.Controls.ImageLoader)]
[ContentPropertyAttribute("Items")]
[DescriptionAttribute("Provides a button control with stack menu functionality.")]
[TemplatePartAttribute(Name="ContentReflector", Type=Intersoft.Client.UI.Controls.ContentReflector)]
public ref class UXStackButton : public Intersoft.Client.UI.Aqua.UXButtonItems, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.Input.IKeyboardFocusIntersoft.Client.Framework.ITransformInfo  
Remarks

UXStackButton is an advanced button control that represents one or more items in the form of stack layout. This stack layout is created using UXPopup as its fundamental architecture.

Because of this, the dropdown menu of UXStackButton has the same features that UXPopup provides such as positioning, hide and display animation, etc.

Example
XAML
Copy Code
<Intersoft:UXStackButton Icon="Document.png" HorizontalAlignment="Center" VerticalAlignment="Center" Height="64" Width="64" StackMode="GridStyle">
    <Intersoft:UXStackItem Text="Video" Icon="Video.png"/>
    <Intersoft:UXStackItem Text="Picture" Icon="Picture.png"/>
    <Intersoft:UXStackItem Text="Music" Icon="mp3.png"/>
    <Intersoft:UXStackItem Text="Text" Icon="Text.png"/>
</Intersoft:UXStackButton>

Inheritance Hierarchy

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.UXButtonItems
                                 Intersoft.Client.UI.Aqua.UXStackMenu.UXStackButton
                                    Intersoft.Client.UI.Aqua.UXDock.UXDockButton

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

UXStackButton Members
Intersoft.Client.UI.Aqua.UXStackMenu Namespace

Concepts

UXStackButton

Send Feedback