void IDragUIOverrideResolver.SetContentFromSoftwareBitmap(DragUIOverride dragUIOverride, SoftwareBitmap softwareBitmap, Point anchorPoint) => dragUIOverride.SetContentFromSoftwareBitmap(softwareBitmap, anchorPoint);
/// <summary> /// Gets the caption text that overlays the drag visual. The text typically describes the drag-and-drop action. /// </summary> /// <param name="dragUIOverride">The requested <see cref="DragUIOverride"/>.</param> /// <returns>The caption text that overlays the drag visual.</returns> public static string Caption(this DragUIOverride dragUIOverride) => Resolver.Caption(dragUIOverride);
string IDragUIOverrideResolver.Caption(DragUIOverride dragUIOverride) => dragUIOverride.Caption;
void IDragUIOverrideResolver.SetContentFromSoftwareBitmap(DragUIOverride dragUIOverride, SoftwareBitmap softwareBitmap) => dragUIOverride.SetContentFromSoftwareBitmap(softwareBitmap);
/// <summary> /// Gets a value that indicates whether the glyph is shown. /// </summary> /// <param name="dragUIOverride">The requested <see cref="DragUIOverride"/>.</param> /// <returns><c>true</c> if the glyph is shown; otherwise, <c>false</c>.</returns> public static bool IsGlyphVisible(this DragUIOverride dragUIOverride) => Resolver.IsGlyphVisible(dragUIOverride);
/// <summary> /// Clears the content, caption, and glyph of the drag visual. /// </summary> /// <param name="dragUIOverride">The requested <see cref="DragUIOverride"/>.</param> public static void ClearWrapped(this DragUIOverride dragUIOverride) => Resolver.Clear(dragUIOverride);
bool IDragUIOverrideResolver.IsGlyphVisible(DragUIOverride dragUIOverride) => dragUIOverride.IsGlyphVisible;
/// <summary> /// Gets a value that indicates whether the caption text is shown. /// </summary> /// <param name="dragUIOverride">The requested <see cref="DragUIOverride"/>.</param> /// <returns><c>true</c> if the caption text is shown; otherwise, <c>false</c>.</returns> public static bool IsCaptionVisible(this DragUIOverride dragUIOverride) => Resolver.IsCaptionVisible(dragUIOverride);
bool IDragUIOverrideResolver.IsCaptionVisible(DragUIOverride dragUIOverride) => dragUIOverride.IsCaptionVisible;
void IDragUIOverrideResolver.IsCaptionVisible(DragUIOverride dragUIOverride, bool isCaptionVisible) => dragUIOverride.IsCaptionVisible = isCaptionVisible;
void IDragUIOverrideResolver.IsContentVisible(DragUIOverride dragUIOverride, bool isContentVisible) => dragUIOverride.IsContentVisible = isContentVisible;
bool IDragUIOverrideResolver.IsContentVisible(DragUIOverride dragUIOverride) => dragUIOverride.IsContentVisible;
void IDragUIOverrideResolver.Caption(DragUIOverride dragUIOverride, string caption) => dragUIOverride.Caption = caption;
/// <summary> /// Sets the caption text that overlays the drag visual. The text typically describes the drag-and-drop action. /// </summary> /// <param name="dragUIOverride">The requested <see cref="DragUIOverride"/>.</param> /// <param name="caption">The caption text that overlays the drag visual.</param> public static void Caption(this DragUIOverride dragUIOverride, string caption) => Resolver.Caption(dragUIOverride, caption);
void IDragUIOverrideResolver.IsGlyphVisible(DragUIOverride dragUIOverride, bool isGlyphVisible) => dragUIOverride.IsGlyphVisible = isGlyphVisible;
/// <summary> /// Gets a value that indicates whether the content of the drag visual is shown. /// </summary> /// <param name="dragUIOverride">The requested <see cref="DragUIOverride"/>.</param> /// <returns><c>true</c> if the content is shown; otherwise, <c>false</c>.</returns> public static bool IsContentVisible(this DragUIOverride dragUIOverride) => Resolver.IsContentVisible(dragUIOverride);
void IDragUIOverrideResolver.Clear(DragUIOverride dragUIOverride) => dragUIOverride.Clear();
/// <summary> /// Sets a value that indicates whether the caption text is shown. /// </summary> /// <param name="dragUIOverride">The requested <see cref="DragUIOverride"/>.</param> /// <param name="isCaptionVisible"><c>true</c> if the caption text is shown; otherwise, <c>false</c>.</param> public static void IsCaptionVisible(this DragUIOverride dragUIOverride, bool isCaptionVisible) => Resolver.IsCaptionVisible(dragUIOverride, isCaptionVisible);
void IDragUIOverrideResolver.SetContentFromBitmapImage(DragUIOverride dragUIOverride, BitmapImage bitmapImage) => dragUIOverride.SetContentFromBitmapImage(bitmapImage);
/// <summary> /// Sets a value that indicates whether the glyph is shown. /// </summary> /// <param name="dragUIOverride">The requested <see cref="DragUIOverride"/>.</param> /// <param name="isGlyphVisible"><c>true</c> if the glyph is shown; otherwise, <c>false</c>.</param> public static void IsGlyphVisible(this DragUIOverride dragUIOverride, bool isGlyphVisible) => Resolver.IsGlyphVisible(dragUIOverride, isGlyphVisible);
void IDragUIOverrideResolver.SetContentFromBitmapImage(DragUIOverride dragUIOverride, BitmapImage bitmapImage, Point anchorPoint) => dragUIOverride.SetContentFromBitmapImage(bitmapImage, anchorPoint);
/// <summary> /// Creates a visual element from a provided BitmapImage to represent the dragged data in a drag-and-drop operation. /// </summary> /// <param name="dragUIOverride">The requested <see cref="DragUIOverride"/>.</param> /// <param name="bitmapImage">The source image used to create the drag visual.</param> public static void SetContentFromBitmapImageWrapped(this DragUIOverride dragUIOverride, BitmapImage bitmapImage) => Resolver.SetContentFromBitmapImage(dragUIOverride, bitmapImage);
/// <summary> /// 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. /// </summary> /// <param name="dragUIOverride">The requested <see cref="DragUIOverride"/>.</param> /// <param name="softwareBitmap">The source image used to create the drag visual.</param> /// <param name="anchorPoint">The relative position of the drag visual from the pointer.</param> public static void SetContentFromSoftwareBitmapWrapped(this DragUIOverride dragUIOverride, SoftwareBitmap softwareBitmap, Point anchorPoint) => Resolver.SetContentFromSoftwareBitmap(dragUIOverride, softwareBitmap, anchorPoint);