Skip to main content
A newer version of this page is available. .

UniformStackPanel Class

A stack panel where items (with the HorizontalAlignment set to Stretch) have the same width, matching the width of the item with the largest content.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v19.1.dll

Declaration

public class UniformStackPanel :
    PanelBase

Remarks

The UniformStackPanel.Orientation property specifies whether the items in the panel are horizontally or vertically arranged. The UniformStackPanel.ChildSpacing property allows you to set a distance between items.

The following code creates a UniformStackPanel with two items. The width of the items is set to the same value, matching the largest item:

UniformStackPanel

<dx:UniformStackPanel Margin="10" VerticalAlignment="Bottom" HorizontalAlignment="Right" ChildSpacing="10">
    <Button Content="Ok" />
    <Button Content="Cancel" />
</dx:UniformStackPanel>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UniformStackPanel class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

See Also