Partager via


DataGrid.DragIndicatorStyle Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the style that is used when rendering the drag indicator that is displayed while dragging column headers.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

Syntax

'Declaration
Public Property DragIndicatorStyle As Style
public Style DragIndicatorStyle { get; set; }
<sdk:DataGrid>
  <sdk:DataGrid.DragIndicatorStyle>
    inlineStyle
  </sdk:DataGrid.DragIndicatorStyle>
</sdk:DataGrid>
<sdk:DataGrid DragIndicatorStyle="styleReference"/>

XAML Values

Property Value

Type: System.Windows.Style
The style applied to column headers.

Remarks

Dependency property identifier field: DragIndicatorStyleProperty

Whether defined as an inline style or as a resource, the Style defines the appearance of the column header in the data grid, and should specify a TargetType of DataGridColumnHeader. You typically specify setters for individual properties, and might also use a setter for the Template property if you wanted to change the composition of elements. For information that can help you decide whether to define styles inline or as resources, see Inline Styles and Templates.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.