Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RatingContextButton.Rating Property

Gets or sets the rating specified by the current item.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, 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.ImageOptionsCollection property.

See Also