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
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:
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}">