PersonPicture.BadgeImageSource 屬性

定義

取得或設定要顯示在徽章上的影像來源。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.PersonPicture.BadgeImageSource (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

public:
 property ImageSource ^ BadgeImageSource { ImageSource ^ get(); void set(ImageSource ^ value); };
ImageSource BadgeImageSource();

void BadgeImageSource(ImageSource value);
public ImageSource BadgeImageSource { get; set; }
var imageSource = personPicture.badgeImageSource;
personPicture.badgeImageSource = imageSource;
Public Property BadgeImageSource As ImageSource
<PersonPicture BadgeImageSource="uri"/>

屬性值

物件,表示繪製影像的影像來源檔案。 一般而言,您會使用 BitmapImage 物件來設定此專案,此物件會使用統一資源識別項 (URI) 來建構,以描述有效影像來源檔案的路徑。 或者,您可以使用資料流程來初始化 BitmapSource ,可能是來自儲存體檔案的資料流程。

適用於