Intersoft ClientUI Documentation
UXStackButton Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXStackMenu Namespace : UXStackButton Class






Provides a button control with stack menu functionality.

Object Model

UXStackButton Class

Syntax

Visual Basic (Declaration) 
<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")>
<TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")>
<StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXStackMenu.UXStackItem)>
<TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")>
<TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)>
<TemplatePartAttribute(Name="StackIndicatorImageElement", Type=Intersoft.Client.UI.Controls.ImageLoader)>
<TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)>
<TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")>
<DescriptionAttribute("Provides a button control with stack menu functionality.")>
<ContentPropertyAttribute("Items")>
<TemplatePartAttribute(Name="ContentReflector", Type=Intersoft.Client.UI.Controls.ContentReflector)>
Public Class UXStackButton 
   Inherits Intersoft.Client.UI.Aqua.UXButtonItems
   Implements IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocusITransformInfo 
Visual Basic (Usage)Copy Code
Dim instance As UXStackButton
C# 
[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")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXStackMenu.UXStackItem)]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="StackIndicatorImageElement", Type=Intersoft.Client.UI.Controls.ImageLoader)]
[TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")]
[DescriptionAttribute("Provides a button control with stack menu functionality.")]
[ContentPropertyAttribute("Items")]
[TemplatePartAttribute(Name="ContentReflector", Type=Intersoft.Client.UI.Controls.ContentReflector)]
public class UXStackButton : Intersoft.Client.UI.Aqua.UXButtonItems, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocusITransformInfo  
JScript 
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")
TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")
StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXStackMenu.UXStackItem)
TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")
TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)
TemplatePartAttribute(Name="StackIndicatorImageElement", Type=Intersoft.Client.UI.Controls.ImageLoader)
TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)
TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")
DescriptionAttribute("Provides a button control with stack menu functionality.")
ContentPropertyAttribute("Items")
TemplatePartAttribute(Name="ContentReflector", Type=Intersoft.Client.UI.Controls.ContentReflector)
public class UXStackButton extends Intersoft.Client.UI.Aqua.UXButtonItems implements IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocusITransformInfo 
Managed Extensions for C++ 
[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")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXStackMenu.UXStackItem)]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="StackIndicatorImageElement", Type=Intersoft.Client.UI.Controls.ImageLoader)]
[TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")]
[DescriptionAttribute("Provides a button control with stack menu functionality.")]
[ContentPropertyAttribute("Items")]
[TemplatePartAttribute(Name="ContentReflector", Type=Intersoft.Client.UI.Controls.ContentReflector)]
public __gc class UXStackButton : public Intersoft.Client.UI.Aqua.UXButtonItems, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocusITransformInfo  
C++/CLI 
[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")]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Focused")]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXStackMenu.UXStackItem)]
[TemplateVisualStateAttribute(GroupName="FocusStates", Name="Unfocused")]
[TemplatePartAttribute(Name="InnerBorder", Type=System.Windows.Controls.Border)]
[TemplatePartAttribute(Name="StackIndicatorImageElement", Type=Intersoft.Client.UI.Controls.ImageLoader)]
[TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="CommonStates", Name="HighlightFocused")]
[DescriptionAttribute("Provides a button control with stack menu functionality.")]
[ContentPropertyAttribute("Items")]
[TemplatePartAttribute(Name="ContentReflector", Type=Intersoft.Client.UI.Controls.ContentReflector)]
public ref class UXStackButton : public Intersoft.Client.UI.Aqua.UXButtonItems, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocusITransformInfo  

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>

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.

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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.