cs
public class UniformSpacingPanel : PanelAttributes
| Property | Description | Default Value | Remarks |
|---|---|---|---|
| Orientation | Horizontal | ||
| Spacing | 0 | ||
| ItemWidth | NaN | ||
| ItemHeight | NaN | ||
| ItemHorizontalAlignment | Stretch | ||
| ItemVerticalAlignment | Stretch | ||
| HorizontalSpacing | NaN | ||
| VerticalSpacing | NaN | ||
| ChildWrapping |
xml
<hc:SimpleStackPanel Margin="32">
<hc:UniformSpacingPanel Spacing="10">
<Button Content="This is the content"/>
<Button Content="This is the content"/>
<Button Content="This is the content"/>
<Button Content="This is the content"/>
</hc:UniformSpacingPanel>
<hc:Divider LineStrokeDashArray="2,2"/>
<hc:UniformSpacingPanel Spacing="10" Orientation="Vertical">
<Button Content="This is the content"/>
<Button Content="This is the content"/>
<Button Content="This is the content"/>
<Button Content="This is the content"/>
</hc:UniformSpacingPanel>
<hc:Divider LineStrokeDashArray="2,2"/>
<hc:UniformSpacingPanel Spacing="10" Width="300" ChildWrapping="Wrap" HorizontalAlignment="Left">
<Button Content="This is the content"/>
<Button Content="This is the content"/>
<Button Content="This is the content"/>
<Button Content="This is the content"/>
</hc:UniformSpacingPanel>
<hc:Divider LineStrokeDashArray="2,2"/>
<hc:UniformSpacingPanel Spacing="10" Orientation="Vertical" Height="70" ChildWrapping="Wrap" HorizontalAlignment="Left">
<Button Content="This is the content"/>
<Button Content="This is the content"/>
<Button Content="This is the content"/>
<Button Content="This is the content"/>
</hc:UniformSpacingPanel>
</hc:SimpleStackPanel>