Back to Devexpress

LayoutControl.ItemSizerStyle Property

wpf-devexpress-dot-xpf-dot-layoutcontrol-dot-layoutcontrol-9c45403a.md

latest2.8 KB
Original Source

LayoutControl.ItemSizerStyle Property

Gets or sets the style applied to visual elements used to re-size the LayoutControl’s items vertically or horizontally. This is a dependency property.

Namespace : DevExpress.Xpf.LayoutControl

Assembly : DevExpress.Xpf.LayoutControl.v25.2.dll

NuGet Package : DevExpress.Wpf.LayoutControl

Declaration

csharp
public Style ItemSizerStyle { get; set; }
vb
Public Property ItemSizerStyle As Style

Property Value

TypeDescription
Style

A Style that is applied to visual elements used to re-size the LayoutControl’s items.

|

Remarks

Note

This style is intended for the DevExpress.Xpf.LayoutControl.ElementSizer type.

Sizers for items in a LayoutControl are enabled via the LayoutControl.AllowHorizontalSizing and LayoutControl.AllowVerticalSizing properties.

The following code shows how to change the background color of sizers:

xaml
<UserControl.Resources>
    <Style TargetType="lc:ElementSizer" x:Key="myItemSizer">
        <Setter Property="Background" Value="Red"/>
    </Style>
</UserControl.Resources>
...
<lc:LayoutControl Orientation="Vertical" x:Name="myLayoutControl" ItemSizerStyle="{StaticResource myItemSizer}" >
...

See Also

ItemCustomizationToolbarStyle

ItemInsertionPointIndicatorStyle

ItemParentIndicatorStyle

ItemSelectionIndicatorStyle

AllowHorizontalSizing

AllowVerticalSizing

AllowItemSizing

LayoutControl Class

LayoutControl Members

DevExpress.Xpf.LayoutControl Namespace