RatingControl.ItemInfo Property

Definition

Gets or sets info about the visual states of the items that represent a rating.

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

RatingItemInfo ItemInfo();

void ItemInfo(RatingItemInfo value);
public RatingItemInfo ItemInfo { get; set; }
var ratingItemInfo = ratingControl.itemInfo;
ratingControl.itemInfo = ratingItemInfo;
Public Property ItemInfo As RatingItemInfo
<RatingControl ItemInfo="resourceReferenceToRatingItemInfo"/>
- or -
<RatingControl>
  <RatingControl.ItemInfo>
    ratingItemInfo
  </RatingControl.ItemInfo>
</RatingControl>

Property Value

A RatingItemInfo-derived object that contains details about the visual states of the items that represent a rating.

Remarks

You can set the ItemInfo property to replace the default stars with other glyphs or images that represent a rating.

Applies to