This project is read-only.

Spacer

Inherits StackPanel.


A StackPanel that applies spacing to each of it's items.

Preview

Usage

<Controls.Common:Spacer Spacing="5,0,0,0" TrimLast="True">

        <Button Content="First"/>

        <Button Content="Second"/>

        <Button Content="Third"/>

        <Button Content="Fourth"/>       

        <Button Content="Fifth"/>

</Controls.Common:Spacer>

Properties

Name Type Description
Spacing Thickness Gets or sets the margin to apply to children.
TrimFirst bool Gets or sets flag that ignores spacing application to first item when true.
TrimLast bool Gets or sets flag that ignores spacing application to last item when true.

Last edited Sep 6, 2016 at 9:06 PM by imagin, version 10