Skip to main content

LayoutControl.ItemInsertionPointIndicatorStyle Property

Gets or sets the style used to render areas where an item being dragged in Customization Mode can be potentially dropped. This is a dependency property.

Namespace: DevExpress.Xpf.LayoutControl

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

NuGet Package: DevExpress.Wpf.LayoutControl

Declaration

public Style ItemInsertionPointIndicatorStyle { get; set; }

Property Value

Type Description
Style

A Style object applied to areas where an item can be potentially dropped.

Remarks

Note

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

In Customization Mode, items can be moved via drag and drop. When dragging an item over other items, some areas are specifically highlighted, indicating the positions where the item may be dropped. In the following image, these areas are painted in red and pink:

ItemInsertionPointIndicatorStyle

Use the ItemInsertionPointIndicatorStyle property to customize the style of these regions:

<UserControl.Resources>
    <Style TargetType="lc:LayoutItemDragAndDropInsertionPointIndicator" x:Key="myInsertionPointIndicator">
        <Setter Property="Background" Value="Yellow"/>
        <Setter Property="BorderBrush" Value="Black"/>
    </Style>
</UserControl.Resources>
...
<lc:LayoutControl x:Name="myLayoutControl" ItemInsertionPointIndicatorStyle="{StaticResource myInsertionPointIndicator}">
See Also