WPF and Silverlight Edition Basic Library > HyperPanel > HyperPanel Features > Orientation |
The Orientation property determines how content is laid out within the C1HyperPanel panel. By default, Orientation is set to Vertical and content appears stacked from top to bottom vertically in the panel:
When Orientation is set to Horizontal content will appear stacked from left to right horizontally in the panel:
You can set the Orientation property in a few different ways:
To set the Orientation so that content appears stacked horizontally in XAML add Orientation="Horizontal" to the <c1:C1HyperPanel> tag so that it appears similar to the following:
XAML |
Copy Code
|
---|---|
<c1:C1HyperPanel Name="C1HyperPanel1" Orientation="Horizontal"> |
To set the Orientation so that content appears stacked horizontally in code, add the following code to your project:
To write the code in Visual Basic:
Visual Basic |
Copy Code
|
---|---|
Me.C1HyperPanel1.Orientation = Orientation.Horizontal |
To write the code in C#:
C# |
Copy Code
|
---|---|
this.c1HyperPanel1.Orientation = Orientation.Horizontal;
|
To set the Orientation so that content appears stacked horizontally at design time, complete the following: