Class SfRating
Rating is a Windows.UI.Xaml.Controls.ItemsControl which allows the user to rate the items from the available predefined number of items.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Controls.Input
Assembly: Syncfusion.SfInput.UWP.dll
Syntax
public class SfRating : ItemsControl, IDisposable
Constructors
SfRating()
Initializes a new instance of the SfRating class.
Declaration
public SfRating()
Fields
AutoToolTipPrecisionProperty
Using a DependencyProperty as the backing store for AutoToolTipPrecision. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AutoToolTipPrecisionProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
CornerRadiusProperty
Using a DependencyProperty as the backing store for CornerRadius. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty CornerRadiusProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
EnableAutoSizeProperty
Using a DependencyProperty as the backing store for EnableAutoSize. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty EnableAutoSizeProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
IsCustomViewProperty
Using a DependencyProperty as the backing store for IsCustomView. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IsCustomViewProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
IsReadOnlyProperty
Using a DependencyProperty as the backing store for IsReadOnly. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ItemsCountProperty
Using a DependencyProperty as the backing store for ItemsCount. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ItemsCountProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ItemSizeProperty
Using a DependencyProperty as the backing store for ItemSize. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ItemSizeProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ItemsSpacingProperty
Using a DependencyProperty as the backing store for ItemsSpacing. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ItemsSpacingProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
MouseOverItemTemplateProperty
Using a DependencyProperty as the backing store for MouseOverItemTemplate. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty MouseOverItemTemplateProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
PrecisionProperty
Using a DependencyProperty as the backing store for Precision. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PrecisionProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
PreviewValueProperty
Using a DependencyProperty as the backing store for PreviewValue. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PreviewValueProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
SelectedItemTemplateProperty
Using a DependencyProperty as the backing store for SelectedItemTemplate. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty SelectedItemTemplateProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ShowToolTipProperty
Using a DependencyProperty as the backing store for ShowToolTip. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ShowToolTipProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
TooltipBackgroundProperty
Using a DependencyProperty as the backing store for TooltipBackground. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty TooltipBackgroundProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
UnSelectedItemTemplateProperty
Using a DependencyProperty as the backing store for UnSelectedItemTemplate. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty UnSelectedItemTemplateProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ValueProperty
Using a DependencyProperty as the backing store for Value. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
AutoToolTipPrecision
Gets or sets the value that determine number of decimal shown in the tool tip Syncfusion.UI.Xaml.Controls.Input.Rating.
Declaration
public int AutoToolTipPrecision { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The default value is 1. |
See Also
CornerRadius
Gets or sets a Windows.UI.Xaml.CornerRadius that represents the degree to which the corners of a Syncfusion.UI.Xaml.Controls.Input.RatingItem are rounded.
Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.CornerRadius | The corner radius. |
See Also
EnableAutoSize
Gets or sets a value indicating whether true or false.
Declaration
public bool EnableAutoSize { get; set; }
Property Value
Type |
---|
System.Boolean |
IsCustomView
Gets or sets a value indicating whether true or false.
Declaration
public bool IsCustomView { get; set; }
Property Value
Type |
---|
System.Boolean |
IsReadOnly
Gets or sets a value indicating whether Syncfusion.UI.Xaml.Controls.Input.Rating is read only.
Declaration
public bool IsReadOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
See Also
ItemsCount
Gets or sets value that determines the count of Syncfusion.UI.Xaml.Controls.Input.RatingItem with Syncfusion.UI.Xaml.Controls.Input.Rating control.
Declaration
public int ItemsCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The default value is zero. |
ItemSize
Gets or sets the value for the size of Rating Item
Declaration
public int ItemSize { get; set; }
Property Value
Type |
---|
System.Int32 |
ItemsSpacing
Gets or sets a value indicating whether true or false.
Declaration
public int ItemsSpacing { get; set; }
Property Value
Type |
---|
System.Int32 |
MouseOverItemTemplate
Gets or sets the value of mouse over item template
Declaration
public DataTemplate MouseOverItemTemplate { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.DataTemplate |
Precision
Gets or sets the value of Precision
Declaration
public Precision Precision { get; set; }
Property Value
Type |
---|
Precision |
PreviewValue
Gets or sets the value associated with the popup.
Declaration
public double PreviewValue { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is zero. |
See Also
SelectedItemTemplate
Gets or sets the value of selected item template
Declaration
public DataTemplate SelectedItemTemplate { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.DataTemplate |
ShowToolTip
Gets or sets a value indicating whether show or hide the tool tip.
Declaration
public bool ShowToolTip { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
See Also
TooltipBackground
Gets or sets the Background for the Tooltip of the Rating control
Declaration
public Brush TooltipBackground { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Media.Brush |
UnSelectedItemTemplate
Gets or sets the value of unselected item template.
Declaration
public DataTemplate UnSelectedItemTemplate { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.DataTemplate |
Value
Gets or sets the current value with Syncfusion.UI.Xaml.Controls.Input.Rating.
Declaration
public double Value { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is zero. |
See Also
Methods
add_ValueChanged(ValueChangedEventHandler)
Declaration
public void add_ValueChanged(ValueChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventHandler | value |
Dispose()
The dispose method.
Declaration
public void Dispose()
GetContainerForItemOverride()
Checks if the item is a Syncfusion.UI.Xaml.Controls.Navigation.SfRatingItem
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
Type | Description |
---|---|
Windows.UI.Xaml.DependencyObject | Dependency Object |
IsItemItsOwnContainerOverride(Object)
Checks if the item is a Syncfusion.UI.Xaml.Controls.Navigation.SfRatingItem
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | object type |
Returns
Type | Description |
---|---|
System.Boolean |
|
OnApplyTemplate()
Initializes all the child elements of Syncfusion.UI.Xaml.Controls.Input.Rating control.
Declaration
protected override void OnApplyTemplate()
OnManipulationDelta(ManipulationDeltaRoutedEventArgs)
Occurs when the manipulation started
Declaration
protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.ManipulationDeltaRoutedEventArgs | e | Pointer Routed Event Args |
OnPointerEntered(PointerRoutedEventArgs)
Occurs when the pointer entered
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer Routed Event Args |
OnPointerExited(PointerRoutedEventArgs)
Occurs when the pointer exited
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer Routed Event Args |
OnPointerPressed(PointerRoutedEventArgs)
Occurs when the pointer is pressed
Declaration
protected override void OnPointerPressed(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer Routed Event Args |
OnPointerReleased(PointerRoutedEventArgs)
Occurs when the pointer is released
Declaration
protected override void OnPointerReleased(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer Routed Event Args |
PrepareContainerForItemOverride(DependencyObject, Object)
Arranges the container for over ride items
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | element | Dependency object type |
System.Object | item | object type |
remove_ValueChanged(ValueChangedEventHandler)
Declaration
public void remove_ValueChanged(ValueChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventHandler | value |
UpdateValue()
Update value method
Declaration
public void UpdateValue()
Events
ValueChanged
Occurs when the value changed with Syncfusion.UI.Xaml.Controls.Input.Rating control.
Declaration
public event ValueChangedEventHandler ValueChanged
Event Type
Type |
---|
ValueChangedEventHandler |