Skip to main content

RatingContextButton Class

A context item that allows an end-user to rate the content using the grading scale.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v23.2.dll

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

Declaration

public class RatingContextButton :
    ContextItem

Remarks

The RatingContextButton is a context item that displays a set of identical glyphs, which by clicking, an end-user can rate the content displayed in the owner control. In the figure below, you can see the RatingContextButton displayed in the ImageSlider control.

RatingContextButtons

By default, the grading scale consists of five points. You can set the number of grading scale points using the RatingContextButton.ItemCount property. Read the RatingContextButton.Rating property to get the rating specified by the current item. 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.

The glyphs displayed by the RatingContextButton represent rating points that can be checked or unchecked. You can specify glyphs for the normal, hovered and checked points using the RatingContextButton.ImageOptions property.

For a list of controls that support displaying context items, see the ContextItem base class.

Inheritance

Object
ContextItem
RatingContextButton
See Also