Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutControl.ItemCustomizationToolbarStyle Property

Gets or sets the style applied to an item’s Customization Toolbar. This is a dependency property.

Namespace: DevExpress.Xpf.LayoutControl

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

NuGet Package: DevExpress.Wpf.LayoutControl

#Declaration

public Style ItemCustomizationToolbarStyle { get; set; }

#Property Value

Type Description
Style

A Style that is applied to an item’s Customization Toolbar.

#Remarks

Note

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

In Customization Mode, selecting an item displays a Customization Toolbar, which allows an end-user to modify the item’s alignment:

ItemCustomizationToolbar

The Customization Toolbar provides buttons to:

  • Set the item’s horizontal alignment (left, center, right or stretched).
  • Set the item’s vertical alignment (top, center, bottom or stretched).
  • Select the item’s parent.

The following code shows how to change the Customization Toolbar’s background color:

<UserControl.Resources>
    <Style TargetType="lc:LayoutItemCustomizationToolbar" x:Key="myToolbarStyle">
        <Setter Property="Background" Value="Coral"/>
    </Style>
</UserControl.Resources>
...
<lc:LayoutControl x:Name="myLayoutControl" ItemCustomizationToolbarStyle="{StaticResource myToolbarStyle}">
See Also