RadRating
Rating control is a flexible UI component that allows users to intuitively rate by selecting number of items [stars].
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
[TelerikToolboxCategory("Input")]
[Themable]
public class RadRating : ItemsControl, IUpdateVisualState
Inheritance: objectRadRating
Implements:
Constructors
Initializes a new instance of the RadRating class.
public RadRating()
Fields
IsReadOnlyProperty
DependencyProperty
Identifies the IsReadOnly dependency property.
public static readonly DependencyProperty IsReadOnlyProperty
NumberOfItemsToGenerateProperty
DependencyProperty
Identifies the NumberOfItemsToGenerateProperty dependency property.
public static readonly DependencyProperty NumberOfItemsToGenerateProperty
PrecisionProperty
DependencyProperty
Identifies the Precision dependency property.
public static readonly DependencyProperty PrecisionProperty
ValueProperty
DependencyProperty
Identifies the Value dependency property.
public static readonly DependencyProperty ValueProperty
Properties
Gets or sets a value indicating whether this instance is read only.
public bool IsReadOnly { get; set; }
Gets or sets the number of items to generate.
public int NumberOfItemsToGenerate { get; set; }
The number of items to generate.
Gets or sets the rating precision.
public RatingPrecision Precision { get; set; }
The precision.
Methods
Undoes the effects of the method.
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
The container element.
itemobjectThe item.
GetContainerForItemOverride()
DependencyObject
Creates or identifies the element that is used to display the given item.
protected override DependencyObject GetContainerForItemOverride()
DependencyObject
The element that is used to display the given item.
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Creates new ratingAutomationPeer when needed.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Called when the value of the property changes.
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
A NotifyCollectionChangedEventArgs that contains the event data.
Called when [rating item value selected].
protected void OnRatingItemValueSelected(RadRatingItem ratingItem, double newValue)
The rating item.
newValuedoubleThe new value.
Prepares the specified element to display the specified item.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Element used to display the specified item.
itemobjectSpecified item.
Resets the theme.
public void ResetTheme()
Events
ValueChanged
RoutedPropertyChangedEventHandler<double?>
Occurs when value changed.
public event RoutedPropertyChangedEventHandler<double?> ValueChanged