Ejemplo n.º 1
0
 /// <summary>
 /// Add a hero image to the toast. <seealso cref="IUwpExtension.AddHeroImage(Uri, string?, bool?)"/>
 /// <seealso cref="IToastImageSourceFactory"/>
 /// </summary>
 /// <param name="extension">Target extension.</param>
 /// <param name="imageSource">Image to add.</param>
 /// <param name="alternateText">A description of the image, for users of assistive technologies.</param>
 /// <param name="addImageQuery">A value whether Windows is allowed to append a query string to the image URI supplied in the Tile notification.</param>
 /// <returns></returns>
 public static IUwpExtension AddHeroImage(this IUwpExtension extension, ToastImageSource imageSource, string?alternateText = null, bool?addImageQuery = null)
 => PlatformAddHeroImage(extension, imageSource, alternateText, addImageQuery);
Ejemplo n.º 2
0
 /// <summary>
 /// Add an image inline with other toast content. <seealso cref="IUwpExtension.AddInlineImage(Uri, string?, bool?, AdaptiveImageCrop?, bool?)"/>
 /// <seealso cref="IToastImageSourceFactory"/>
 /// </summary>
 /// <param name="extension">Target extension.</param>
 /// <param name="imageSource">Image to add.</param>
 /// <param name="alternateText">A description of the image, for users of assistive technologies.</param>
 /// <param name="addImageQuery">A value whether Windows is allowed to append a query string to the image URI supplied in the Tile notification.</param>
 /// <param name="hintCrop">A value whether a margin is removed. images have an 8px margin around them.</param>
 /// <param name="hintRemoveMargin">the horizontal alignment of the image.This is only supported when inside an <see cref="AdaptiveSubgroup"/>.</param>
 public static IUwpExtension AddInlineImage(this IUwpExtension extension, ToastImageSource imageSource, string?alternateText = null, bool?addImageQuery = null, AdaptiveImageCrop?hintCrop = null, bool?hintRemoveMargin = null)
 => PlatformAddInlineImage(extension, imageSource, alternateText, addImageQuery, hintCrop, hintRemoveMargin);
Ejemplo n.º 3
0
 static IUwpExtension PlatformAddInlineImage(this IUwpExtension extension, ToastImageSource imageSource, string?alternateText, bool?addImageQuery, AdaptiveImageCrop?hintCrop, bool?hintRemoveMargin)
 => extension.AddInlineImage(imageSource.ImageUri, alternateText, addImageQuery, hintCrop, hintRemoveMargin);
Ejemplo n.º 4
0
 /// <summary>
 /// Override the app logo with custom image of choice that will be displayed on the toast.
 /// <seealso cref="IUwpExtension.AddAppLogoOverride(Uri, ToastGenericAppLogoCrop?, string?, bool?)"/>
 /// <seealso cref="IToastImageSourceFactory"/>
 /// </summary>
 /// <param name="extension">Target extension.</param>
 /// <param name="imageSource">Image to add.</param>
 /// <param name="hintCrop">Specify how the image should be cropped.</param>
 /// <param name="alternateText">A description of the image, for users of assistive technologies.</param>
 /// <param name="addImageQuery">A value whether Windows is allowed to append a query string to the image URI supplied in the Tile notification.</param>
 public static IUwpExtension AddAppLogoOverride(this IUwpExtension extension, ToastImageSource imageSource, ToastGenericAppLogoCrop?hintCrop = null, string?alternateText = null, bool?addImageQuery = null)
 => PlatformAddAppLogoOverride(extension, imageSource, hintCrop, alternateText, addImageQuery);
Ejemplo n.º 5
0
 static IUwpExtension PlatformAddHeroImage(this IUwpExtension extension, ToastImageSource imageSource, string?alternateText, bool?addImageQuery)
 => extension.AddHeroImage(imageSource.ImageUri, alternateText, addImageQuery);
Ejemplo n.º 6
0
 static IUwpExtension PlatformAddAppLogoOverride(this IUwpExtension extension, ToastImageSource imageSource, ToastGenericAppLogoCrop?hintCrop, string?alternateText, bool?addImageQuery)
 => extension.AddAppLogoOverride(imageSource.ImageUri, hintCrop, alternateText, addImageQuery);
Ejemplo n.º 7
0
 static IUwpExtension PlatformAddInlineImage(this IUwpExtension extension, ToastImageSource imageSource, string?alternateText, bool?addImageQuery, AdaptiveImageCrop?hintCrop, bool?hintRemoveMargin)
 => throw ExceptionUtils.NotSupportedOrImplementedException;
Ejemplo n.º 8
0
 static IUwpExtension PlatformAddHeroImage(this IUwpExtension extension, ToastImageSource imageSource, string?alternateText, bool?addImageQuery)
 => throw ExceptionUtils.NotSupportedOrImplementedException;
Ejemplo n.º 9
0
 static IUwpExtension PlatformAddAppLogoOverride(this IUwpExtension extension, ToastImageSource imageSource, ToastGenericAppLogoCrop?hintCrop, string?alternateText, bool?addImageQuery)
 => throw ExceptionUtils.NotSupportedOrImplementedException;