wpf-devexpress-dot-xpf-dot-layoutcontrol-dot-layoutcontrolbase-28a40433.md
Gets or sets the distance between child items. This is a dependency property.
Namespace : DevExpress.Xpf.LayoutControl
Assembly : DevExpress.Xpf.LayoutControl.v25.2.dll
NuGet Package : DevExpress.Wpf.LayoutControl
public double ItemSpace { get; set; }
Public Property ItemSpace As Double
| Type | Description |
|---|---|
| Double |
A Double value that specifies the distance between child items.
|
The default value for the ItemSpace property is specified by the LayoutControlBase.DefaultItemSpace field.
The ItemSpace property is not supported by the ScrollBox class.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ItemSpace property.
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.
wpf-data-grid-create-filter-ui/CS/WpfApplication27/MainWindow.xaml#L58
</dxg:GridControl>
<dxlc:DataLayoutControl x:Name="myDataLayoutControl" CurrentItem="{Binding Path=FilteringViewModel, ElementName=filteringBehavior}" GroupBoxDisplayMode="Light" ItemSpace="10" AutoGenerateItems="False" AllowBringChildIntoView="False">
<Button Width="150" Height="30" Content="Reset all filters" Command="{Binding FilteringViewModel.City.ResetAllCommand, ElementName=filteringBehavior}" />
See Also