# DragUIOverrideDragUIOverrideDragUIOverrideDragUIOverride Class

## Definition

Provides the visual representation of the data being dragged during a drag-and-drop operation, including feedback from the drop target.

``public : sealed class DragUIOverride``
``struct winrt::Windows::UI::Xaml::DragUIOverride``
``public sealed class DragUIOverride``
``Public NotInheritable Class DragUIOverride``
Attributes

#### Windows 10 requirements

 Device family Windows 10 (introduced v10.0.10240.0) API contract Windows.Foundation.UniversalApiContract (introduced v1)

## Remarks

An instance of this class is passed to the DragEventHandler delegate in the DragEventArgs.DragUIOverride property.

## Properties

 Caption Caption Caption Caption Gets or sets the caption text that overlays the drag visual. The text typically describes the drag-and-drop action. IsCaptionVisible IsCaptionVisible IsCaptionVisible IsCaptionVisible Gets or sets a value that indicates whether the caption text is shown. IsContentVisible IsContentVisible IsContentVisible IsContentVisible Gets or sets a value that indicates whether the content of the drag visual is shown. IsGlyphVisible IsGlyphVisible IsGlyphVisible IsGlyphVisible Gets or sets a value that indicates whether the glyph is shown.

## Methods

 Clear() Clear() Clear() Clear() Clears the content, caption, and glyph of the drag visual. SetContentFromBitmapImage(BitmapImage) SetContentFromBitmapImage(BitmapImage) SetContentFromBitmapImage(BitmapImage) SetContentFromBitmapImage(BitmapImage) Creates a visual element from a provided BitmapImage to represent the dragged data in a drag-and-drop operation. SetContentFromBitmapImage(BitmapImage, Point) SetContentFromBitmapImage(BitmapImage, Point) SetContentFromBitmapImage(BitmapImage, Point) SetContentFromBitmapImage(BitmapImage, Point) Creates a visual element from a provided BitmapImage to represent the dragged data in a drag-and-drop operation, and sets the relative position of the visual from the pointer. SetContentFromSoftwareBitmap(SoftwareBitmap) SetContentFromSoftwareBitmap(SoftwareBitmap) SetContentFromSoftwareBitmap(SoftwareBitmap) SetContentFromSoftwareBitmap(SoftwareBitmap) Creates a visual element from a provided SoftwareBitmap to represent the dragged data in a drag-and-drop operation. SetContentFromSoftwareBitmap(SoftwareBitmap, Point) SetContentFromSoftwareBitmap(SoftwareBitmap, Point) SetContentFromSoftwareBitmap(SoftwareBitmap, Point) SetContentFromSoftwareBitmap(SoftwareBitmap, Point) Creates a visual element from a provided SoftwareBitmap to represent the dragged data in a drag-and-drop operation, and sets the relative position of the visual from the pointer.