skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadRating

Rating control is a flexible UI component that allows users to intuitively rate by selecting number of items [stars].

Inheritance
System.Object
ItemsControl
RadRating
Inherited Members
ItemsControl.ItemContainerStyleProperty
ItemsControl.IsTextSearchEnabledProperty
ItemsControl.ItemContainerStyleSelectorProperty
ItemsControl.ItemTemplateSelectorProperty
ItemsControl.IsFocusedProperty
ItemsControl.HasItemsProperty
ItemsControl.ItemsControlFromItemContainer(DependencyObject)
ItemsControl.ChangeVisualState()
ItemsControl.ChangeVisualState(Boolean)
ItemsControl.OnIsEnabledChanged(DependencyPropertyChangedEventArgs)
ItemsControl.OnGotFocus(RoutedEventArgs)
ItemsControl.OnLostFocus(RoutedEventArgs)
ItemsControl.OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)
ItemsControl.OnIsFocusedChanged(DependencyPropertyChangedEventArgs)
ItemsControl.IsTextSearchEnabled
ItemsControl.HasItems
ItemsControl.IsFocused
ItemsControl.ItemContainerStyle
ItemsControl.ItemContainerStyleSelector
ItemsControl.ItemTemplateSelector
ItemsControl.OverrideStyles
ItemsControl.ItemContainerGenerator
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Input.dll

Syntax

[TelerikToolboxCategory("Input")]
public class RadRating : ItemsControl, IUpdateVisualState

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
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
ItemsControl.OnApplyTemplate()

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
ItemsControl.OnItemsChanged(NotifyCollectionChangedEventArgs)

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
ItemsControl.PrepareContainerForItemOverride(DependencyObject, Object)

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

Implements
IUpdateVisualState.UpdateVisualState(Boolean)

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.