DataGrid.DragIndicatorStyle Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the style that is used when rendering the drag indicator that is displayed while dragging a column header.
public:
property System::Windows::Style ^ DragIndicatorStyle { System::Windows::Style ^ get(); void set(System::Windows::Style ^ value); };
public System.Windows.Style DragIndicatorStyle { get; set; }
member this.DragIndicatorStyle : System.Windows.Style with get, set
Public Property DragIndicatorStyle As Style
Property Value
The style applied to a column header when dragging. The registered default is null
. For more information about what can influence the value, see DependencyProperty.
Remarks
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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기