Adds distance between elements in the stacking direction.

You can use the ItemSpacing property to make some space between elements. It differs from setting Margin on each child, in that it only adjusts the space directly between the elements, not the space around each of them.

Example

The following example shows three Panels in a StackPanel, spaced using the ItemSpacing property:

<StackPanel ItemSpacing="20">
    <Panel Height="100" Background="Red"/>
    <Panel Height="100" Background="Green"/>
    <Panel Height="100" Background="Blue"/>
</StackPanel>

Location

Namespace
Fuse.Controls
Package
Fuse.Controls.Panels 2.9.1

Returns

float