ClassRadRating
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
RadRating()
Initializes a new instance of the RadRating class.
Declaration
public RadRating()
Fields
IsReadOnlyProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
DependencyProperty
NumberOfItemsToGenerateProperty
Identifies the NumberOfItemsToGenerateProperty dependency property.
Declaration
public static readonly DependencyProperty NumberOfItemsToGenerateProperty
Field Value
DependencyProperty
PrecisionProperty
Identifies the Precision dependency property.
Declaration
public static readonly DependencyProperty PrecisionProperty
Field Value
DependencyProperty
ValueProperty
Identifies the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
DependencyProperty
Properties
IsReadOnly
Gets or sets a value indicating whether this instance is read only.
NumberOfItemsToGenerate
Gets or sets the number of items to generate.
Declaration
public int NumberOfItemsToGenerate { get; set; }
Property Value
The number of items to generate.
Precision
Gets or sets the rating precision.
Declaration
public RatingPrecision Precision { get; set; }
Property Value
The precision.
Methods
ClearContainerForItemOverride(DependencyObject, object)
Undoes the effects of the method.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
The container element.
item
The item.
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
DependencyObject
The element that is used to display the given item.
IsItemItsOwnContainerOverride(object)
Determines if the specified item is (or is eligible to be) its own container.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Creates new ratingAutomationPeer when needed.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnItemsChanged(NotifyCollectionChangedEventArgs)
Called when the value of the property changes.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
NotifyCollectionChangedEventArgs
A NotifyCollectionChangedEventArgs that contains the event data.
OnRatingItemValueSelected(RadRatingItem, double)
Called when [rating item value selected].
Declaration
protected void OnRatingItemValueSelected(RadRatingItem ratingItem, double newValue)
Parameters
ratingItem
The rating item.
newValue
The new value.
PrepareContainerForItemOverride(DependencyObject, object)
Prepares the specified element to display the specified item.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
Element used to display the specified item.
item
Specified item.
Events
ValueChanged
Occurs when value changed.
Declaration
public event RoutedPropertyChangedEventHandler<double?> ValueChanged
Event Value
RoutedPropertyChangedEventHandler<double?>