AdaptiveImage Class
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.
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
Add |
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. |
Alternate |
Gets or sets a description of the image, for users of assistive technologies. |
Hint |
Gets or sets the horizontal alignment of the image. For Toast, this is only supported when inside an AdaptiveSubgroup. |
Hint |
Gets or sets the desired cropping of the image. Supported on Tiles since RTM. Supported on Toast since Anniversary Update. |
Hint |
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. |
To |
Returns the image's source string. |
Product | Versions |
---|---|
Windows Community Toolkit | 6.1.1, 7.0.0, 7.1.0 |