Class RadRating
Rating control is a flexible UI component that allows users to intuitively rate by selecting number of items [stars].
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
[TelerikToolboxCategory("Input")]
public class RadRating : ItemsControl, IUpdateVisualState
Constructors
RadRating()
Fields
IsReadOnlyProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
System.Windows.DependencyProperty
|
NumberOfItemsToGenerateProperty
Identifies the NumberOfItemsToGenerateProperty dependency property.
Declaration
public static readonly DependencyProperty NumberOfItemsToGenerateProperty
Field Value
System.Windows.DependencyProperty
|
PrecisionProperty
Identifies the Precision dependency property.
Declaration
public static readonly DependencyProperty PrecisionProperty
Field Value
System.Windows.DependencyProperty
|
ValueProperty
Identifies the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
System.Windows.DependencyProperty
|
Properties
IsReadOnly
Gets or sets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; set; }
Property Value
System.Boolean
|
NumberOfItemsToGenerate
Gets or sets the number of items to generate.
Declaration
public int NumberOfItemsToGenerate { get; set; }
Property Value
System.Int32
The number of items to generate. |
Precision
Gets or sets the rating precision.
Declaration
public RatingPrecision Precision { get; set; }
Property Value
RatingPrecision
The precision. |
Value
Gets or sets the value.
Declaration
public Nullable<double> Value { get; set; }
Property Value
System.Nullable<System.Double>
The value. |
Methods
ClearContainerForItemOverride(DependencyObject, Object)
Undoes the effects of the System.Windows.Controls.ItemsControl.PrepareContainerForItemOverride(System.Windows.DependencyObject,System.Object) method.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
System.Windows.DependencyObject
element
The container element. |
System.Object
item
The item. |
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
System.Windows.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.
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
System.Object
item
|
Returns
System.Boolean
|
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Creates new ratingAutomationPeer when needed.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
|
OnItemsChanged(NotifyCollectionChangedEventArgs)
Called when the value of the System.Windows.Controls.ItemsControl.Items property changes.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
A System.Collections.Specialized.NotifyCollectionChangedEventArgs that contains the event data. |
Overrides
OnRatingItemValueSelected(RadRatingItem, Double)
Called when [rating item value selected].
Declaration
protected void OnRatingItemValueSelected(RadRatingItem ratingItem, double newValue)
Parameters
RadRatingItem
ratingItem
The rating item. |
System.Double
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
System.Windows.DependencyObject
element
Element used to display the specified item. |
System.Object
item
Specified item. |
Overrides
Events
ValueChanged
Occurs when value changed.
Declaration
public event RoutedPropertyChangedEventHandler<Nullable<double>> ValueChanged
Event Type
System.Windows.RoutedPropertyChangedEventHandler<System.Nullable<System.Double>>
|
Explicit Interface Implementations
IUpdateVisualState.UpdateVisualState(Boolean)
Updates the state of the visual.
Declaration
void IUpdateVisualState.UpdateVisualState(bool useTransitions)
Parameters
System.Boolean
useTransitions
|