Skip to content

MarkupStackPanel Object

See Also

MarkupStackPanel Members

See Also

Markup ActiveX Control v24.0

Description

Arranges child elements into a single line that can be oriented horizontally or vertically.

For a list of all members defined in this module, see MarkupStackPanel Members.

Object Model

Object Model
Render Transform
Margin
Background
Mouse Leave Event
Mouse Enter Event
Mouse Left Button Up Event
Mouse Left Button Down Event
Mouse Right Button Up Event
Mouse Right Button Down Event
Mouse Move Event
Lost Mouse Capture Event
Find Name
Visual Parent
Children
Markup UI Element

Remarks

Elements are able to be "stacked" in a specified direction using a Stack Panel.

The Stack Panel Control is used to arrange child elements into a single line. You have the option to display the elements horizontally or vertically; the default is horizontally. By default, both the HorizontalAlignment and VerticalAlignment properties are set to stretch.

The Stack Panel uses logical scrolling to scroll to the next element that was added to the stack panel. Wrap the host Stack Panel in a ScrollViewer with the CanContentScroll property set to false to use physical scrolling instead of logical scrolling.

Example

Below is a very simple sample of how to use a stack panel to view a list of radio buttons vertically:

<StackPanel xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
    <!-- Add your radio buttons here -->
</StackPanel>

See Also

MarkupStackPanel Members


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.