示例#1
0
 void IDragUIOverrideResolver.SetContentFromSoftwareBitmap(DragUIOverride dragUIOverride, SoftwareBitmap softwareBitmap, Point anchorPoint) => dragUIOverride.SetContentFromSoftwareBitmap(softwareBitmap, anchorPoint);
示例#2
0
 /// <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);
示例#3
0
 string IDragUIOverrideResolver.Caption(DragUIOverride dragUIOverride) => dragUIOverride.Caption;
示例#4
0
 void IDragUIOverrideResolver.SetContentFromSoftwareBitmap(DragUIOverride dragUIOverride, SoftwareBitmap softwareBitmap) => dragUIOverride.SetContentFromSoftwareBitmap(softwareBitmap);
示例#5
0
 /// <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);
示例#6
0
 /// <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);
示例#7
0
 bool IDragUIOverrideResolver.IsGlyphVisible(DragUIOverride dragUIOverride) => dragUIOverride.IsGlyphVisible;
示例#8
0
 /// <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);
示例#9
0
 bool IDragUIOverrideResolver.IsCaptionVisible(DragUIOverride dragUIOverride) => dragUIOverride.IsCaptionVisible;
示例#10
0
 void IDragUIOverrideResolver.IsCaptionVisible(DragUIOverride dragUIOverride, bool isCaptionVisible) => dragUIOverride.IsCaptionVisible = isCaptionVisible;
示例#11
0
 void IDragUIOverrideResolver.IsContentVisible(DragUIOverride dragUIOverride, bool isContentVisible) => dragUIOverride.IsContentVisible = isContentVisible;
示例#12
0
 bool IDragUIOverrideResolver.IsContentVisible(DragUIOverride dragUIOverride) => dragUIOverride.IsContentVisible;
示例#13
0
 void IDragUIOverrideResolver.Caption(DragUIOverride dragUIOverride, string caption) => dragUIOverride.Caption = caption;
示例#14
0
 /// <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);
示例#15
0
 void IDragUIOverrideResolver.IsGlyphVisible(DragUIOverride dragUIOverride, bool isGlyphVisible) => dragUIOverride.IsGlyphVisible = isGlyphVisible;
示例#16
0
 /// <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);
示例#17
0
 void IDragUIOverrideResolver.Clear(DragUIOverride dragUIOverride) => dragUIOverride.Clear();
示例#18
0
 /// <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);
示例#19
0
 void IDragUIOverrideResolver.SetContentFromBitmapImage(DragUIOverride dragUIOverride, BitmapImage bitmapImage) => dragUIOverride.SetContentFromBitmapImage(bitmapImage);
示例#20
0
 /// <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);
示例#21
0
 void IDragUIOverrideResolver.SetContentFromBitmapImage(DragUIOverride dragUIOverride, BitmapImage bitmapImage, Point anchorPoint) => dragUIOverride.SetContentFromBitmapImage(bitmapImage, anchorPoint);
示例#22
0
 /// <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);
示例#23
0
 /// <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);