Table of Contents

Class ThumbRate

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

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

RoutedEvent

StateProperty

Identifies the State dependency property.

public static readonly DependencyProperty StateProperty

Field Value

DependencyProperty

TemplateButtonCommandProperty

Identifies the TemplateButtonCommand dependency property.

public static readonly DependencyProperty TemplateButtonCommandProperty

Field Value

DependencyProperty

Properties

State

Gets or sets the value determining the current state of the control.

public ThumbRateState State { get; set; }

Property Value

ThumbRateState

TemplateButtonCommand

Gets the command triggered when clicking the button.

public IRelayCommand TemplateButtonCommand { get; }

Property Value

IRelayCommand

Methods

OnStateChanged(ThumbRateState, ThumbRateState)

This virtual method is called when State is changed.

protected virtual void OnStateChanged(ThumbRateState previousState, ThumbRateState currentState)

Parameters

previousState ThumbRateState
currentState 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

Event Type

TypedEventHandler<ThumbRate, RoutedEventArgs>