Class
RadRating

Represents a control that allows for giving a rating by tapping on a RatingItem.

Definition

Namespace:Telerik.UI.Xaml.Controls.Input

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RadRating : RadControl, IWeakEventListener

Inheritance: objectRadControlRadRating

Implements: IWeakEventListener

Inherited Members RadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.ComposeVisualStateName()RadControl.MeasureOverride(Size)RadControl.ArrangeOverride(Size)RadControl.OnApplyTemplate()RadControl.UnapplyTemplateCore()RadControl.OnIsEnabledChanged(bool, bool)RadControl.OnTemplateApplied()RadControl.LoadCore()RadControl.OnLoaded()RadControl.UnloadCore()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

RadRating()

Initializes a new instance of the RadRating class.

Declaration

cs-api-definition
public RadRating()

Fields

AutoGeneratedItemsCountProperty

Identifies the AutoGeneratedItemsCount dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AutoGeneratedItemsCountProperty

Field Value

DependencyProperty

CommandParameterProperty

Identifies the CommandParameter dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandParameterProperty

Field Value

DependencyProperty

CommandProperty

Identifies the Command dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandProperty

Field Value

DependencyProperty

EmptyIconContentProperty

Identifies the EmptyIconContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EmptyIconContentProperty

Field Value

DependencyProperty

EmptyIconContentTemplateProperty

Identifies the EmptyIconContentTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EmptyIconContentTemplateProperty

Field Value

DependencyProperty

EmptyIconStyleProperty

Identifies the EmptyIconStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EmptyIconStyleProperty

Field Value

DependencyProperty

FilledIconContentProperty

Identifies the FilledIconContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilledIconContentProperty

Field Value

DependencyProperty

FilledIconContentTemplateProperty

Identifies the FilledIconContentTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilledIconContentTemplateProperty

Field Value

DependencyProperty

FilledIconStyleProperty

Identifies the FilledIconStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilledIconStyleProperty

Field Value

DependencyProperty

HighlightedIconStyleProperty

Identifies the HighlightedIconStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HighlightedIconStyleProperty

Field Value

DependencyProperty

IsPanEnabledProperty

Identifies the IsPanEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsPanEnabledProperty

Field Value

DependencyProperty

IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsReadOnlyProperty

Field Value

DependencyProperty

OrientationProperty

Identifies the Orientation dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty OrientationProperty

Field Value

DependencyProperty

PrecisionProperty

Identifies the Precision dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PrecisionProperty

Field Value

DependencyProperty

SelectionModeProperty

Identifies the SelectionMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectionModeProperty

Field Value

DependencyProperty

ValueProperty

Identifies the Value dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ValueProperty

Field Value

DependencyProperty

Properties

AutoGeneratedItemsCount

Gets or sets the count of visual items that are automatically created. Can not be used when rating items are added manually.

Declaration

cs-api-definition
public int AutoGeneratedItemsCount { get; set; }

Property Value

int

Command

Gets or sets the command executed when the Value is changed.

Declaration

cs-api-definition
public ICommand Command { get; set; }

Property Value

ICommand

CommandParameter

Gets or sets the command parameter for the Command.

Declaration

cs-api-definition
public object CommandParameter { get; set; }

Property Value

object

EmptyIconContent

Gets or sets the content of the RadRatingItem icon when the item is not selected.

Declaration

cs-api-definition
public object EmptyIconContent { get; set; }

Property Value

object

EmptyIconContentTemplate

Gets or sets the content template of the RadRatingItem when the item is not selected.

Declaration

cs-api-definition
public object EmptyIconContentTemplate { get; set; }

Property Value

object

EmptyIconStyle

Gets or sets the style of the RadRatingItem icon content when the item is not selected.

Declaration

cs-api-definition
public Style EmptyIconStyle { get; set; }

Property Value

Style

FilledIconContent

Gets or sets the content of the RadRatingItem icon when the item is selected.

Declaration

cs-api-definition
public object FilledIconContent { get; set; }

Property Value

object

FilledIconContentTemplate

Gets or sets the content template of the RadRatingItem when the item is selected.

Declaration

cs-api-definition
public object FilledIconContentTemplate { get; set; }

Property Value

object

FilledIconStyle

Gets or sets the style of the RadRatingItem icon content when the item is selected.

Declaration

cs-api-definition
public Style FilledIconStyle { get; set; }

Property Value

Style

HighlightedIconStyle

Gets or sets the style of the RadRatingItem icon content in highlighted state.

Declaration

cs-api-definition
public Style HighlightedIconStyle { get; set; }

Property Value

Style

IsPanEnabled

Gets or sets a value indicating whether the rating control responds to pan gesture.

Declaration

cs-api-definition
public bool IsPanEnabled { get; set; }

Property Value

bool

IsReadOnly

Gets or sets a value indicating whether the rating can be changed or is read only.

Declaration

cs-api-definition
public bool IsReadOnly { get; set; }

Property Value

bool

Items

Gets the rating items.

Declaration

cs-api-definition
public ObservableCollection<RadRatingItem> Items { get; }

Property Value

ObservableCollection<RadRatingItem>

Orientation

Gets or sets the rating orientation.

Declaration

cs-api-definition
public Orientation Orientation { get; set; }

Property Value

Orientation

Precision

Gets or sets the rating precision.

Declaration

cs-api-definition
public RatingPrecision Precision { get; set; }

Property Value

RatingPrecision

SelectionMode

Gets or sets the rating selection mode.

Declaration

cs-api-definition
public RatingSelectionMode SelectionMode { get; set; }

Property Value

RatingSelectionMode

Value

Gets or sets the rating value.

Declaration

cs-api-definition
public double Value { get; set; }

Property Value

double

Methods

ApplyTemplateCore()

Called when the Framework is called. Inheritors should override this method should they have some custom template-related logic. This is done to ensure that the property is properly initialized.

Declaration

cs-api-definition
protected override bool ApplyTemplateCore()

Returns

bool

Overrides RadControl.ApplyTemplateCore()

Finalize()

Finalizes an instance of the RadRating class.

Declaration

cs-api-definition
protected override void Finalize()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides RadControl.OnCreateAutomationPeer()

OnKeyDown(KeyRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnKeyDown(KeyRoutedEventArgs e)

Parameters

e

KeyRoutedEventArgs

OnManipulationCompleted(ManipulationCompletedRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnManipulationCompleted(ManipulationCompletedRoutedEventArgs args)

Parameters

args

ManipulationCompletedRoutedEventArgs

OnManipulationDelta(ManipulationDeltaRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs args)

Parameters

args

ManipulationDeltaRoutedEventArgs

OnManipulationStarted(ManipulationStartedRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnManipulationStarted(ManipulationStartedRoutedEventArgs args)

Parameters

args

ManipulationStartedRoutedEventArgs

OnValueChanged(ValueChangedEventArgs<object>)

Declaration

cs-api-definition
protected virtual void OnValueChanged(ValueChangedEventArgs<object> args)

Parameters

args

ValueChangedEventArgs<object>

OnValueChanging(ValueChangingEventArgs<object>)

Declaration

cs-api-definition
protected virtual void OnValueChanging(ValueChangingEventArgs<object> args)

Parameters

args

ValueChangingEventArgs<object>

Events

ValueChanged

Occurs when the Value property is changed.

Declaration

cs-api-definition
public event EventHandler<ValueChangedEventArgs<object>> ValueChanged

Event Value

EventHandler<ValueChangedEventArgs<object>>

ValueChanging

Occurs when Value property is changing.

Declaration

cs-api-definition
public event EventHandler<ValueChangingEventArgs<object>> ValueChanging

Event Value

EventHandler<ValueChangingEventArgs<object>>