Share via


RatingItemImageInfo.PlaceholderImage 屬性

定義

取得或設定影像,表示顯示預留位置值的評等專案。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

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

void PlaceholderImage(ImageSource value);
public ImageSource PlaceholderImage { get; set; }
Public Property PlaceholderImage As ImageSource
<RatingItemImageInfo PlaceholderImage="uri"/>

屬性值

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

適用於