Skip to main content

RatingContextButton.Rating Property

Gets or sets the rating specified by the current item.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v22.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core


public decimal Rating { get; set; }

Property Value

Type Default Description
Decimal 0

A decimal value that specifies the content rating.


Using the RatingContextButton control, an end-user can rate the content displayed by the owner control (e.g., ImageSlider, PictureEdit) using the grading scale. Read the Rating property to get the content rating specified by the current item. By default, the grading scale consists of five points. You can set the number of grading scale points using the RatingContextButton.ItemCount property.

By default, the rating can only be set to an integer value, but it is also possible to use half-integer and decimal values. See the RatingContextButton.FillPrecision property.

To specify glyphs that represent points in the normal, hovered and checked states, use the RatingContextButton.ImageOptions property.

See Also