Share via


PersonPicture.BadgeImageSource 屬性

定義

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

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 ,可能是來自記憶體檔案的數據流。

適用於