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.ItemParentIndicatorStyle Property

Gets or sets the style used to paint a rectangle, indicating an item’s parent in Customization Mode. This is a dependency property.

Namespace: DevExpress.Xpf.LayoutControl

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

NuGet Package: DevExpress.Wpf.LayoutControl

#Declaration

public Style ItemParentIndicatorStyle { get; set; }

#Property Value

Type Description
Style

A Style used to paint a rectangle, indicating an item’s parent in Customization Mode.

#Remarks

Note

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

In Customization Mode, an end-user can select an item by clicking it. This displays a Customization Toolbar with three groups of buttons (see the LayoutControl.IsCustomization topic, to learn more). Clicking the last button selects the current item’s parent. Just hovering over this button points to the item’s parent by painting a dotted rectangle around it, as shown in the following image:

ItemParentIndicatorStyle

The ItemParentIndicatorStyle property allows you to customize the style used to paint this dotted rectangle.

<UserControl.Resources>
    <Style TargetType="lc:LayoutItemParentIndicator" x:Key="myItemParentIndicator">
        <Setter Property="BorderBrush" Value="Blue"/>
    </Style>
</UserControl.Resources>
...
<lc:LayoutControl x:Name="myLayoutControl" ItemParentIndicatorStyle="{StaticResource myItemParentIndicator}">
See Also