Intersoft ClientUI Documentation
Orientation Property (UXStackPanel)



Gets or sets the dimension by which child elements are stacked.
Syntax
<CategoryAttribute("Layout")>
Public Property Orientation As Orientation
Dim instance As UXStackPanel
Dim value As Orientation
 
instance.Orientation = value
 
value = instance.Orientation
[CategoryAttribute("Layout")]
public Orientation Orientation {get; set;}
[CategoryAttribute("Layout")]
public:
property Orientation Orientation {
   Orientation get();
   void set (    Orientation value);
}
Remarks
UXStackPanel enables you to stack elements in an assigned direction. The default stack direction is horizontal. The Orientation property can be used to control content flow.
Example

The following example demonstrates how to use a UXStackPanel to create a set of vertically-positioned buttons. For horizontal positioning, set the Orientation property to Horizontal.

XAML
Copy Code
<Intersoft:UXStackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
    <Button Content="Button1" Width="80"/>
    <Button Content="Button2" Width="80"/>
    <Button Content="Button3" Width="80"/>
</Intersoft:UXStackPanel>

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

UXStackPanel Class
UXStackPanel Members

Concepts

UXStackPanel
Interactive Panels Overview
Panels Overview

Send Feedback