Back to Devexpress

LayoutControlBase.ItemSpace Property

wpf-devexpress-dot-xpf-dot-layoutcontrol-dot-layoutcontrolbase-28a40433.md

latest2.6 KB
Original Source

LayoutControlBase.ItemSpace Property

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

Declaration

csharp
public double ItemSpace { get; set; }
vb
Public Property ItemSpace As Double

Property Value

TypeDescription
Double

A Double value that specifies the distance between child items.

|

Remarks

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

xml
</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

DefaultItemSpace

LayoutControlBase Class

LayoutControlBase Members

DevExpress.Xpf.LayoutControl Namespace