Delen via


RatingItemImageInfo.PlaceholderImage Property

Definition

Gets or sets an image that represents a rating element that is showing a placeholder value.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.RatingItemImageInfo.PlaceholderImage (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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

void PlaceholderImage(ImageSource value);
public ImageSource PlaceholderImage { get; set; }
var imageSource = ratingItemImageInfo.placeholderImage;
ratingItemImageInfo.placeholderImage = imageSource;
Public Property PlaceholderImage As ImageSource
<RatingItemImageInfo PlaceholderImage="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