次の方法で共有


IXRStackPanel (Windows Embedded CE 6.0)

1/6/2010

This class represents a surface that arranges child elements into a single line that can be oriented either horizontally or vertically.

Syntax

class IXRStackPanel : public IXRPanel

Methods

Method Description

IXRStackPanel::GetOrientation

Retrieves the dimension by which child elements are stacked on this panel.

IXRStackPanel::SetOrientation

Sets the dimension by which child elements are stacked on this panel.

Inheritance Hierarchy

IXRDependencyObject

    IXRUIElement

        IXRFrameworkElement

            IXRPanel

                IXRStackPanel

Remarks

A stack-panel object is useful if you want to arrange a set of child objects in a vertical list or a horizontal list. For example, you can create a stack panel to display a menu of items either horizontally or vertically on-screen.

To add the IXRUIElement child elements that you have created and want to arrange on this stack panel, you can call the inherited method IXRPanel::GetChildren to retrieve an IXRUIElementCollection object. Then, use the methods on that retrieved collection object to add those child elements.

You can also define a stack-panel object in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.

.NET Framework Equivalent

System.Windows.Controls.StackPanel

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Classes for UI Element Management