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 Class

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

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.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.

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.ImageOptionsCollection property.

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

#Inheritance

Object
ContextItem
RatingContextButton
See Also