DragUIOverride Class
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.
Provides the visual representation of the data being dragged during a drag-and-drop operation, including feedback from the drop target.
public ref class DragUIOverride sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DragUIOverride final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DragUIOverride
Public NotInheritable Class DragUIOverride
- Inheritance
- Attributes
Remarks
An instance of this class is passed to the DragEventHandler delegate in the DragEventArgs.DragUIOverride property.
Properties
Caption |
Gets or sets the caption text that overlays the drag visual. The text typically describes the drag-and-drop action. |
IsCaptionVisible |
Gets or sets a value that indicates whether the caption text is shown. |
IsContentVisible |
Gets or sets a value that indicates whether the content of the drag visual is shown. |
IsGlyphVisible |
Gets or sets a value that indicates whether the glyph is shown. |
Methods
Clear() |
Clears the content, caption, and glyph of the drag visual. |
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. |
SetContentFromBitmapImage(BitmapImage) |
Creates a visual element from a provided BitmapImage to represent the dragged data in a drag-and-drop operation. |
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. |
SetContentFromSoftwareBitmap(SoftwareBitmap) |
Creates a visual element from a provided SoftwareBitmap to represent the dragged data in a drag-and-drop operation. |