Class RadRating
Rating control is a flexible UI component that allows users to intuitively rate by selecting number of items [stars].
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
[TelerikToolboxCategory("Input")]
[Themable]
public class RadRating : ItemsControl, IThemable, 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 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()
OnCreateAutomationPeer()
Creates new ratingAutomationPeer when needed.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
|
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.RoutedEventArgs that contains the event data. |
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. |
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. |
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()
Events
ValueChanged
Occurs when value changed.
Declaration
public event RoutedPropertyChangedEventHandler<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
|