Export (0) Print
Expand All
Expand Minimize

DataGrid::DragIndicatorStyle Property

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

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public:
property Style^ DragIndicatorStyle {
	Style^ get ();
	void set (Style^ value);
}
<object>
  <object.DragIndicatorStyle>
    <Style .../>
  </object.DragIndicatorStyle>
</object>

Property Value

Type: System.Windows::Style
The style applied to a column header when dragging. The registered default is nullptr. For more information about what can influence the value, see DependencyProperty.

To define a Style for the drag indicator, specify a TargetType of Control.

You can set properties in the style to change the appearance of certain elements of the drag indicator, such as the border around the column header. However, the default template for the drag indicator uses a VisualBrush to paint a Canvas with an image of the original column header that is being dragged. As a result, if you set some properties in your style, such as Background or Foreground, they will appear to not be applied. To change the appearance of the column header while it is being dragged, apply a new template that does not use the default VisualBrush.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft