Class RatingItem
An item used in a rating control.
Inheritance
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Input.Toolkit.dll
Syntax
public class RatingItem : ButtonBase, IControl, IFrameworkElement, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourceRatingItem()
Initializes a new instance of the RatingItem class.
Declaration
public RatingItem()
Fields
| Improve this Doc View SourceDisplayValueProperty
Identifies the DisplayValue dependency property.
Declaration
public static readonly DependencyProperty DisplayValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsReadOnlyProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceDisplayValue
Gets the actual value.
Declaration
public double DisplayValue { get; }
Property Value
Type | Description |
---|---|
System.Double |
IsReadOnly
Gets a value indicating whether the control is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceOnClick()
Sets the value to 1.0 when clicked.
Declaration
protected override void OnClick()
Overrides
| Improve this Doc View SourceOnCreateAutomationPeer()
Returns a AccordionItemAutomationPeer for use by the Silverlight automation infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type | Description |
---|---|
AutomationPeer | A AccordionItemAutomationPeer object for the AccordionItem. |
Overrides
| Improve this Doc View SourceOnIsReadOnlyChanged(Boolean, Boolean)
IsReadOnlyProperty property changed handler.
Declaration
protected virtual void OnIsReadOnlyChanged(bool oldValue, bool newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | oldValue | Old value. |
System.Boolean | newValue | New value. |
OnMouseEnter(MouseEventArgs)
This method is invoked when the mouse enters the rating item.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | e | Information about the event. |
Overrides
| Improve this Doc View SourceOnMouseLeave(MouseEventArgs)
This method is invoked when the mouse leaves the rating item.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | e | Information about the event. |
Overrides
| Improve this Doc View SourceOnMouseLeftButtonDown(MouseButtonEventArgs)
Provides handling for the RatingItem's MouseLeftButtonDown event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseButtonEventArgs | e | Event arguments. |
Overrides
| Improve this Doc View SourceOnMouseLeftButtonUp(MouseButtonEventArgs)
Provides handling for the RatingItem's MouseLeftButtonUp event.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseButtonEventArgs | e | Event arguments. |