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.
|
NumberOfItemsToGenerateProperty
Identifies the NumberOfItemsToGenerateProperty dependency property.
Declaration
public static readonly DependencyProperty NumberOfItemsToGenerateProperty
Field Value
System.
|
PrecisionProperty
Identifies the Precision dependency property.
Declaration
public static readonly DependencyProperty PrecisionProperty
Field Value
System.
|
ValueProperty
Identifies the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
System.
|
Properties
IsReadOnly
Gets or sets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; set; }
Property Value
System.
|
NumberOfItemsToGenerate
Gets or sets the number of items to generate.
Declaration
public int NumberOfItemsToGenerate { get; set; }
Property Value
System. The number of items to generate. |
Precision
Gets or sets the rating precision.
Declaration
public RatingPrecision Precision { get; set; }
Property Value
Rating The precision. |
Value
Gets or sets the value.
Declaration
public Nullable<double> Value { get; set; }
Property Value
System. The value. |
Methods
ClearContainerForItemOverride(DependencyObject, Object)
Undoes the effects of the System.
Declaration
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
System. The container element. |
System. The item. |
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
System. 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.
|
Returns
System.
|
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application
code or internal processes (such as a rebuilding layout pass) call System.
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Creates new ratingAutomationPeer when needed.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.
|
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
OnItemsChanged(NotifyCollectionChangedEventArgs)
Called when the value of the System.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
System. A System. |
OnRatingItemValueSelected(RadRatingItem, Double)
Called when [rating item value selected].
Declaration
protected void OnRatingItemValueSelected(RadRatingItem ratingItem, double newValue)
Parameters
Rad The rating item. |
System. 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. Element used to display the specified item. |
System. Specified item. |
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()
Events
ValueChanged
Occurs when value changed.
Declaration
public event RoutedPropertyChangedEventHandler<Nullable<double>> ValueChanged
Event Type
System.
|
Explicit Interface Implementations
IUpdateVisualState.UpdateVisualState(Boolean)
Updates the state of the visual.
Declaration
void IUpdateVisualState.UpdateVisualState(bool useTransitions)
Parameters
System.
|