Back to Devexpress

UniformStackPanel Class

wpf-devexpress-dot-xpf-dot-core-c48ccebd.md

latest2.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
[DXLicenseWpf]
public class UniformStackPanel :
    PanelBase
vb
<DXLicenseWpf>
Public Class UniformStackPanel
    Inherits 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:

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

Inheritance

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Panel DevExpress.Xpf.Core.PanelBase UniformStackPanel

See Also

UniformStackPanel Members

DevExpress.Xpf.Core Namespace