Edit

Share via


AdaptiveImage Class

Definition

An inline image.

public sealed class AdaptiveImage : Microsoft.Toolkit.Uwp.Notifications.IAdaptiveChild, Microsoft.Toolkit.Uwp.Notifications.IAdaptiveSubgroupChild, Microsoft.Toolkit.Uwp.Notifications.IBaseImage, Microsoft.Toolkit.Uwp.Notifications.ITileBindingContentAdaptiveChild, Microsoft.Toolkit.Uwp.Notifications.IToastBindingGenericChild
type AdaptiveImage = class
    interface IBaseImage
    interface IToastBindingGenericChild
    interface ITileBindingContentAdaptiveChild
    interface IAdaptiveChild
    interface IAdaptiveSubgroupChild
Public NotInheritable Class AdaptiveImage
Implements IAdaptiveChild, IAdaptiveSubgroupChild, IBaseImage, ITileBindingContentAdaptiveChild, IToastBindingGenericChild
Inheritance
AdaptiveImage
Implements

Constructors

AdaptiveImage()

Properties

AddImageQuery

Gets or sets set to true to allow Windows to append a query string to the image URI supplied in the Tile notification. Use this attribute if your server hosts images and can handle query strings, either by retrieving an image variant based on the query strings or by ignoring the query string and returning the image as specified without the query string. This query string specifies scale, contrast setting, and language.

AlternateText

Gets or sets a description of the image, for users of assistive technologies.

HintAlign

Gets or sets the horizontal alignment of the image. For Toast, this is only supported when inside an AdaptiveSubgroup.

HintCrop

Gets or sets the desired cropping of the image. Supported on Tiles since RTM. Supported on Toast since Anniversary Update.

HintRemoveMargin

Gets or sets a value whether a margin is removed. images have an 8px margin around them. You can remove this margin by setting this property to true. Supported on Tiles since RTM. Supported on Toast since Anniversary Update.

Source

Gets or sets the URI of the image (Required). Can be from your application package, application data, or the internet. Internet images must be less than 200 KB in size.

Methods

ToString()

Returns the image's source string.

Applies to