RatingControl class¶
Attributes: [ToolboxItem(true)] [ToolboxBitmap] [TemplatePart] [TemplatePart] [TemplatePart] [TemplatePart] [TemplatePart]
Defined in
Namespace: CrissCross.WPF.UI.Controls
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Controls.RatingControl
Modifiers: public
Summary¶
Displays the rating scale with interactions.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Class hierarchy
classDiagram
class RatingControl
class ContentControl
ContentControl <|-- RatingControl
Inherits from: ContentControl
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| Value | Gets or sets the rating value. |
| MaxRating | Gets or sets the maximum allowed rating value. |
| HalfStarEnabled | Gets or sets a value indicating whether gets or sets the value deciding whether half of the star can be selected. |
Fields¶
| Name | Summary |
|---|---|
| static ValueProperty | Property for [Value](# |
| static MaxRatingProperty | Property for [MaxRating](# |
| static HalfStarEnabledProperty | Property for [HalfStarEnabled](# |
| static ValueChangedEvent | Routed event for [ValueChanged](# |
Methods¶
| Name | Summary |
|---|---|
| OnApplyTemplate | Is called when Template is changed. |
| OnValueChanged | Is called when [Value](# changes. |
| OnMouseLeave | Is called when mouse is moved away from the control. |
| OnMouseMove | Is called when mouse is moved around the control. |
| OnMouseDown | Is called when mouse is cliked down. |
| OnKeyUp | Is called after lifting a keyboard key. |
Events¶
| Name | Summary |
|---|---|
| ValueChanged | Occurs after the user selects the rating. |