Skip to main content

RatingContextButton.FillPrecision Property

Gets or sets whether the rating can be specified with precision up to integers, integers and half-integers, or decimals.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v23.2.dll

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

Declaration

[DefaultValue(RatingItemFillPrecision.Full)]
[DXCategory("Appearance")]
public RatingItemFillPrecision FillPrecision { get; set; }

Property Value

Type Default Description
DevExpress.XtraEditors.RatingItemFillPrecision Full

A DevExpress.XtraEditors.RatingItemFillPrecision enumeration value that specifies the rating precision.

Remarks

The FillPrecision property specifies how precisely an end-user can set the rating (see RatingContextButton.Rating) using the mouse pointer. This property also affects how the grading scale glyphs (see ContextItem.Glyph, ContextItem.HoverGlyph and RatingContextButton.CheckedGlyph) are rendered. The DevExpress.XtraEditors.RatingItemFillPrecision enumeration provides the following values:

  • Full—the default mode. The rating can only be set an integer value. When a grading scale point is hovered over with the mouse cursor, its glyph is fully changed to the hover state glyph, regardless of the exact mouse position over the scale point. The checked and unchecked points are also rendered by the solid glyphs of the corresponding states.

    ContextButton_FillPrecision_Full

  • Half—this mode, in addition to integers, allows the rating to also be set to half-integer values. The grading scale points can be rendered by half by the corresponding glyphs in this mode.

    ContextButton_FillPrecision_Half

  • Exact—the rating can be set to a decimal value based on the exact position of the mouse cursor over the scale point. The grading scale points can be rendered by the corresponding glyphs in any proportion.

    ContextButton_FillPrecision_Exact

See Also