Intersoft ClientUI Documentation
Orientation Property
See Also  Send Feedback
Intersoft.Client.UI.Controls.Interactivity Namespace > UXStackPanel Class : Orientation Property






Gets or sets the dimension by which child elements are stacked.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Layout")>
Public Property Orientation As Orientation
Visual Basic (Usage)Copy Code
Dim instance As UXStackPanel
Dim value As Orientation
 
instance.Orientation = value
 
value = instance.Orientation
C# 
[CategoryAttribute("Layout")]
public Orientation Orientation {get; set;}
Delphi 
public read-write property Orientation: Orientation; 
JScript 
CategoryAttribute("Layout")
public function get,set Orientation : Orientation
Managed Extensions for C++ 
[CategoryAttribute("Layout")]
public: __property Orientation get_Orientation();
public: __property void set_Orientation( 
   Orientation value
);
C++/CLI 
[CategoryAttribute("Layout")]
public:
property Orientation Orientation {
   Orientation get();
   void set (    Orientation value);
}

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>

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.

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.