Прочетете на английски

Споделяне чрез


PersonPicture.BadgeImageSource Property

Definition

Gets or sets the source of an image to display on the badge.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

C#
public ImageSource BadgeImageSource { get; set; }
XAML
<PersonPicture BadgeImageSource="uri"/>

Property Value

An object that represents the image source file for the drawn image. Typically you set this with a BitmapImage object, constructed with the Uniform Resource Identifier (URI) that describes the path to a valid image source file. Or, you can initialize a BitmapSource with a stream, perhaps a stream from a storage file.

Applies to

Продукт Версии
WinUI 2 2.0, 2.1, 2.2, 2.3, 2.4, 2.5-prerelease, 2.5, 2.6-prerelease, 2.6, 2.7-prerelease, 2.7, 2.8-prerelease, 2.8