Back to Devexpress

DataViewBase.SelectionRectangleStyle Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-3fe88688.md

latest1.8 KB
Original Source

DataViewBase.SelectionRectangleStyle Property

Gets or sets a style of the marquee selection rectangle. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
Style

A Style object that represents a style to be applied to the marquee selection rectangle.

|

Remarks

Target type: System.Windows.Controls.Border

To learn more, see Styles and Templates.

See the example below.

xaml
<dxg:TableView.SelectionRectangleStyle>
    <Style TargetType="Border">
        <Setter Property="Opacity" Value="0.1" />
        <Setter Property="Background" Value="Yellow" />
        <Setter Property="BorderBrush" Value="Red" />
        <Setter Property="BorderThickness" Value="2" />
    </Style>
</dxg:TableView.SelectionRectangleStyle>

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace