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






Gets or sets the content template to be displayed in stack grid mode.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Stack Grid")>
Public Property StackGridTemplate As DataTemplate
Visual Basic (Usage)Copy Code
Dim instance As UXStackButton
Dim value As DataTemplate
 
instance.StackGridTemplate = value
 
value = instance.StackGridTemplate
C# 
[CategoryAttribute("Stack Grid")]
public DataTemplate StackGridTemplate {get; set;}
Delphi 
public read-write property StackGridTemplate: DataTemplate; 
JScript 
CategoryAttribute("Stack Grid")
public function get,set StackGridTemplate : DataTemplate
Managed Extensions for C++ 
[CategoryAttribute("Stack Grid")]
public: __property DataTemplate* get_StackGridTemplate();
public: __property void set_StackGridTemplate( 
   DataTemplate* value
);
C++/CLI 
[CategoryAttribute("Stack Grid")]
public:
property DataTemplate^ StackGridTemplate {
   DataTemplate^ get();
   void set (    DataTemplate^ value);
}

Remarks

The content of UXStackButton is not necessary collection of UXStackItem. Using GridStyle as StackMode of UXStackButton you can use StackGridTemplate instead specifying items for its stack content.

The following example shows how to use custom content for UXStackButton using StackGridTemplate.

XAML Copy Code
<Intersoft:UXStackButton Icon="Mail.png" Text="SendMail" Height="64" Width="64" StackMode="GridStyle">
    <Intersoft:UXStackButton.StackGridTemplate>
        <DataTemplate>
            <StackPanel Width="250">
                <Intersoft:FieldLabel HeaderForeground="White" Header="To :" Margin="4" HorizontalContentAlignment="Stretch">
                    <Intersoft:UXTextBox></Intersoft:UXTextBox>
                </Intersoft:FieldLabel>
                <RichTextBox Height="125" Margin="4"/>                            
                <Intersoft:GlassButton Content="Send" Margin="4"/>
            </StackPanel>
        </DataTemplate>
    </Intersoft:UXStackButton.StackGridTemplate>
</Intersoft:UXStackButton>

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.