Class ThumbRate
Allows to rate positively or negatively by clicking on one of the thumbs.
public class ThumbRate : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
- Inheritance
-
ThumbRate
- Implements
- Inherited Members
Constructors
ThumbRate()
Initializes a new instance of the ThumbRate class and attaches TemplateButtonCommand.
public ThumbRate()
Fields
StateChangedEvent
Identifies the StateChanged routed event.
public static readonly RoutedEvent StateChangedEvent
Field Value
StateProperty
Identifies the State dependency property.
public static readonly DependencyProperty StateProperty
Field Value
TemplateButtonCommandProperty
Identifies the TemplateButtonCommand dependency property.
public static readonly DependencyProperty TemplateButtonCommandProperty
Field Value
Properties
State
Gets or sets the value determining the current state of the control.
public ThumbRateState State { get; set; }
Property Value
TemplateButtonCommand
Gets the command triggered when clicking the button.
public IRelayCommand TemplateButtonCommand { get; }
Property Value
Methods
OnStateChanged(ThumbRateState, ThumbRateState)
This virtual method is called when State is changed.
protected virtual void OnStateChanged(ThumbRateState previousState, ThumbRateState currentState)
Parameters
previousState
ThumbRateStatecurrentState
ThumbRateState
OnTemplateButtonClick(ThumbRateState)
Triggered by clicking a button in the control template.
protected virtual void OnTemplateButtonClick(ThumbRateState parameter)
Parameters
parameter
ThumbRateState
Events
StateChanged
Occurs when State is changed.
public event TypedEventHandler<ThumbRate, RoutedEventArgs> StateChanged