Class SfRatingItem
Represent a selectable item inside the Syncfusion.UI.Xaml.Controls.Input.Rating control.
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls.Input
Assembly: Syncfusion.SfInput.Wpf.dll
Syntax
public class SfRatingItem : ContentControl, IDisposable
Remarks
The RatingItem is a Windows.UI.Xaml.Controls.ConentControl.
Constructors
SfRatingItem()
Initializes a new instance of the SfRatingItem class.
Declaration
public SfRatingItem()
Fields
PointerOverFillProperty
Using a DependencyProperty as the backing store for PointerOverFill. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PointerOverFillProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PointerOverStrokeProperty
Using a DependencyProperty as the backing store for PointerOverStroke. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PointerOverStrokeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PointerOverStrokeThicknessProperty
Using a DependencyProperty as the backing store for PointerOverStrokeThickness. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PointerOverStrokeThicknessProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RatedFillProperty
Using a DependencyProperty as the backing store for AccentBrushBrush. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty RatedFillProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RatedStrokeProperty
Using a DependencyProperty as the backing store for RatedFillBrush. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty RatedStrokeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RatedStrokeThicknessProperty
Using a DependencyProperty as the backing store for RatedStrokeThickness. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty RatedStrokeThicknessProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UnratedFillProperty
Using a DependencyProperty as the backing store for UnratedFill. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty UnratedFillProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UnratedStrokeProperty
Using a DependencyProperty as the backing store for UnratedStroke. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty UnratedStrokeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UnratedStrokeThicknessProperty
Using a DependencyProperty as the backing store for UnratedStrokeThickness. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty UnratedStrokeThicknessProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
PointerOverFill
Gets or sets the value that fills the pointer over area with the specified solid color.
Declaration
public Brush PointerOverFill { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The default value is null. |
See Also
PointerOverStroke
Gets or sets the brush that paints the pointer over area outline with a specified solid color.
Declaration
public Brush PointerOverStroke { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The default value is Windows.UI.Colors.Gray. |
See Also
PointerOverStrokeThickness
Gets or sets the value that specifies the outline thickness for the pointer over area.
Declaration
public double PointerOverStrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1. |
See Also
RatedFill
Gets or sets the value that fills the rated area with the specified solid color.
Declaration
public Brush RatedFill { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The default value is null. |
See Also
RatedStroke
Gets or sets the brush that paints the rated area outline with a specified solid color.
Declaration
public Brush RatedStroke { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The default value is null. |
See Also
RatedStrokeThickness
Gets or sets the value that specifies the outline thickness for the rated area.
Declaration
public double RatedStrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1. |
See Also
UnratedFill
Gets or sets the value that fills the unrated area with the specified solid color.
Declaration
public Brush UnratedFill { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The default value is Windows.UI.Colors.Transparent. |
See Also
UnratedStroke
Gets or sets the brush that paints the unrated area outline with a specified solid color.
Declaration
public Brush UnratedStroke { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The default value is Windows.UI.Colors.Gray. |
See Also
UnratedStrokeThickness
Gets or sets the value that specifies the outline thickness for the unrated area.
Declaration
public double UnratedStrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1. |
See Also
Methods
Dispose()
Dispose Method
Declaration
public void Dispose()
Dispose(Boolean)
Dispose method
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean type |
OnApplyTemplate()
Initializes all the child elements of Syncfusion.UI.Xaml.Controls.Input.RatingItem control.
Declaration
public override void OnApplyTemplate()
OnMouseLeave(MouseEventArgs)
Occurs when the pointer exited
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | Pointer Routed Event Args |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Occurs when the pointer is pressed
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | Pointer Routed EventArgs |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Occurs when the pointer is released
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | Pointer Routed Event Args |
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e |