Skip to main content
A newer version of this page is available. .

RatingContextButton.Rating Property

Gets or sets the rating specified by the current item.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v21.1.dll

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

Declaration

[DefaultValue(0)]
[DXCategory("Behavior")]
public decimal Rating { get; set; }

Property Value

Type Default Description
Decimal 0

A decimal value that specifies the content rating.

Remarks

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