skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadRatingElement

Represents the core rating element that provides the visual and interactive functionality for rating controls. This element manages a collection of rating visual items (typically stars), handles user interactions for value selection, supports different selection modes and orientations, and provides comprehensive tooltip and hover feedback systems. It serves as the main implementation behind the RadRating control wrapper.

Inheritance
System.Object
DisposableObject
RadObject
RadElement
VisualElement
RadComponentElement
RadItem
UIItemBase
LightVisualElement
StackLayoutElement
RadRatingElement
Inherited Members
StackLayoutElement.OrientationProperty
StackLayoutElement.ElementSpacingProperty
StackLayoutElement.RightToLeftModeProperty
StackLayoutElement.ArrangeOverride(SizeF)
StackLayoutElement.ArrangeHorizontally(SizeF)
StackLayoutElement.ArrangeItemsHorizontaly(RectangleF, SizeF, Single, Single)
StackLayoutElement.ArrangeVertically(SizeF)
StackLayoutElement.ArrangeElement(RadElement, RectangleF, RectangleF, SizeF)
StackLayoutElement.AlignRect(RadElement, RectangleF)
StackLayoutElement.Orientation
StackLayoutElement.ElementSpacing
StackLayoutElement.RightToLeftMode
StackLayoutElement.FitInAvailableSize
StackLayoutElement.Comparer
LightVisualElement.BackgroundImageProperty
LightVisualElement.BackgroundImageLayoutProperty
LightVisualElement.BackColor2Property
LightVisualElement.BackColor3Property
LightVisualElement.BackColor4Property
LightVisualElement.BorderBottomColorProperty
LightVisualElement.BorderBottomShadowColorProperty
LightVisualElement.BorderBottomWidthProperty
LightVisualElement.BorderBoxStyleProperty
LightVisualElement.BorderColorProperty
LightVisualElement.BorderColor2Property
LightVisualElement.BorderColor3Property
LightVisualElement.BorderColor4Property
LightVisualElement.BorderDashStyleProperty
LightVisualElement.BorderDashPatternProperty
LightVisualElement.BorderDrawModeProperty
LightVisualElement.BorderGradientAngleProperty
LightVisualElement.BorderGradientStyleProperty
LightVisualElement.BorderInnerColorProperty
LightVisualElement.BorderInnerColor2Property
LightVisualElement.BorderInnerColor3Property
LightVisualElement.BorderInnerColor4Property
LightVisualElement.BorderLeftColorProperty
LightVisualElement.BorderLeftShadowColorProperty
LightVisualElement.BorderLeftWidthProperty
LightVisualElement.BorderRightColorProperty
LightVisualElement.BorderRightShadowColorProperty
LightVisualElement.BorderRightWidthProperty
LightVisualElement.BorderTopColorProperty
LightVisualElement.BorderTopShadowColorProperty
LightVisualElement.BorderTopWidthProperty
LightVisualElement.BorderWidthProperty
LightVisualElement.ClipTextProperty
LightVisualElement.DisabledTextRenderingHintProperty
LightVisualElement.DrawBorderProperty
LightVisualElement.DrawFillProperty
LightVisualElement.DrawTextProperty
LightVisualElement.DrawBackgroundImageProperty
LightVisualElement.DrawImageProperty
LightVisualElement.EnableImageTransparencyProperty
LightVisualElement.GradientAngleProperty
LightVisualElement.GradientPercentageProperty
LightVisualElement.GradientPercentage2Property
LightVisualElement.GradientStyleProperty
LightVisualElement.HorizontalLineColorProperty
LightVisualElement.HorizontalLineWidthProperty
LightVisualElement.ImageAlignmentProperty
LightVisualElement.ImageIndexProperty
LightVisualElement.ImageKeyProperty
LightVisualElement.ImageLayoutProperty
LightVisualElement.ImageOpacityProperty
LightVisualElement.ImageProperty
LightVisualElement.ImageTransparentColorProperty
LightVisualElement.NumberOfColorsProperty
LightVisualElement.ShowHorizontalLineProperty
LightVisualElement.SvgImageProperty
LightVisualElement.TextAlignmentProperty
LightVisualElement.TextImageRelationProperty
LightVisualElement.TextWrapProperty
LightVisualElement.TextRenderingHintProperty
LightVisualElement.GetBorderThickness(LightVisualElement, Boolean)
LightVisualElement.ShouldSerializeProperty(PropertyDescriptor)
LightVisualElement.GetImageDrawTypeLocalValue()
LightVisualElement.MapStyleProperty(RadProperty, String)
LightVisualElement.GetStylablePropertiesFilter()
LightVisualElement.GetPaintingBorderWidth()
LightVisualElement.OnBitStateChanged(Int64, Boolean, Boolean)
LightVisualElement.DisposeManagedResources()
LightVisualElement.GetAsBitmapEx(Color, Single, SizeF)
LightVisualElement.GetClipRect()
LightVisualElement.PaintElement(IGraphics, Single, SizeF)
LightVisualElement.PaintText(IGraphics)
LightVisualElement.PaintTextCore(IGraphics)
LightVisualElement.DrawHorizontalLineWithoutText(IGraphics)
LightVisualElement.DrawHorizontalLine(IGraphics)
LightVisualElement.PaintImage(IGraphics)
LightVisualElement.PaintSvgImage(IGraphics)
LightVisualElement.PaintBackgroundImage(IGraphics)
LightVisualElement.PaintContent(IGraphics)
LightVisualElement.AnimateImage(Image, Boolean)
LightVisualElement.ClipImage(Image, Rectangle, Size)
LightVisualElement.CalculateDesiredSize(SizeF, SizeF, SizeF)
LightVisualElement.MeasureElements(SizeF, SizeF, Padding)
LightVisualElement.ArrangeElement(RadElement, SizeF)
LightVisualElement.GetClientOffset(Boolean)
LightVisualElement.GetBorderThickness(Boolean)
LightVisualElement.GetClientRectangle(Boolean, SizeF)
LightVisualElement.GetClientRectangle(SizeF)
LightVisualElement.GetTextAlignment(ContentAlignment)
LightVisualElement.GetTextAlignment()
LightVisualElement.OnLoaded()
LightVisualElement.OnTunnelEvent(RadElement, RoutedEventArgs)
LightVisualElement.ToggleTextPrimitive(RadProperty)
LightVisualElement.OnAnimatedImageFrameChanged()
LightVisualElement.GetFaceRectangle()
LightVisualElement.CreateTextParams()
LightVisualElement.PaintPrimitive(IGraphics, Single, SizeF, TextParams)
LightVisualElement.PaintPrimitive(IGraphics, TextParams)
LightVisualElement.MeasureOverride(SizeF, TextParams)
LightVisualElement.OnMouseMove(Object, MouseEventArgs)
LightVisualElement.GetTextSize(SizeF, TextParams)
LightVisualElement.GetTextSize(TextParams)
LightVisualElement.TextRenderingHint
LightVisualElement.DisabledTextRenderingHint
LightVisualElement.ShouldPaint
LightVisualElement.CanFocus
LightVisualElement.DrawText
LightVisualElement.DrawFill
LightVisualElement.DrawBorder
LightVisualElement.CheckDrawBorderOnMeasure
LightVisualElement.DrawBackgroundImage
LightVisualElement.DrawImage
LightVisualElement.BorderBoxStyle
LightVisualElement.BorderDrawMode
LightVisualElement.BorderWidth
LightVisualElement.BorderLeftWidth
LightVisualElement.BorderTopWidth
LightVisualElement.BorderRightWidth
LightVisualElement.BorderBottomWidth
LightVisualElement.BorderGradientAngle
LightVisualElement.BorderGradientStyle
LightVisualElement.BorderColor
LightVisualElement.BorderColor2
LightVisualElement.BorderColor3
LightVisualElement.BorderColor4
LightVisualElement.BorderInnerColor
LightVisualElement.BorderInnerColor2
LightVisualElement.BorderInnerColor3
LightVisualElement.BorderInnerColor4
LightVisualElement.BackColor2
LightVisualElement.BackColor3
LightVisualElement.BackColor4
LightVisualElement.NumberOfColors
LightVisualElement.GradientStyle
LightVisualElement.GradientAngle
LightVisualElement.GradientPercentage
LightVisualElement.GradientPercentage2
LightVisualElement.BackgroundImage
LightVisualElement.Image
LightVisualElement.ImageIndex
LightVisualElement.ImageKey
LightVisualElement.ImageLayout
LightVisualElement.BackgroundImageLayout
LightVisualElement.ImageOpacity
LightVisualElement.TextAlignment
LightVisualElement.ImageAlignment
LightVisualElement.TextImageRelation
LightVisualElement.ShowHorizontalLine
LightVisualElement.HorizontalLineColor
LightVisualElement.HorizontalLineWidth
LightVisualElement.DisableHTMLRendering
LightVisualElement.TextBlock
LightVisualElement.BorderLeftColor
LightVisualElement.BorderTopColor
LightVisualElement.BorderRightColor
LightVisualElement.BorderBottomColor
LightVisualElement.BorderLeftShadowColor
LightVisualElement.BorderTopShadowColor
LightVisualElement.BorderRightShadowColor
LightVisualElement.BorderBottomShadowColor
LightVisualElement.ClipText
LightVisualElement.Layout
LightVisualElement.ImageTransparentColor
LightVisualElement.BorderDashStyle
LightVisualElement.BorderDashPattern
LightVisualElement.EnableImageTransparency
LightVisualElement.SvgImage
LightVisualElement.SvgImageXml
LightVisualElement.ImageDrawType
LightVisualElement.Shadow
LightVisualElement.AutoEllipsis
LightVisualElement.UseMnemonic
LightVisualElement.TextWrap
LightVisualElement.ShowKeyboardCues
LightVisualElement.MeasureTrailingSpaces
LightVisualElement.TextParams
UIItemBase.PaintFill(IGraphics, Single, SizeF)
UIItemBase.GetFillPaintRect(Single, SizeF)
UIItemBase.PaintFill(IGraphics, Single, SizeF, RectangleF)
UIItemBase.PaintBorder(IGraphics, Single, SizeF)
UIItemBase.PaintBorder(IGraphics, Single, SizeF, RectangleF)
UIItemBase.OnBoundsChanged(RadPropertyChangedEventArgs)
UIItemBase.GetBorderPaintRect(Single, SizeF)
UIItemBase.ShouldUsePaintBuffer()
UIItemBase.IPrimitiveElement.ShouldUsePaintBuffer()
UIItemBase.IPrimitiveElement.GetPaintRectangle(Single, Single, SizeF)
UIItemBase.IPrimitiveElement.GetExactPaintingRectangle(Single, SizeF)
UIItemBase.IShapedElement.GetCurrentShape()
UIItemBase.IPrimitiveElement.IsDesignMode
UIItemBase.IPrimitiveElement.BorderThickness
UIItemBase.IBorderElement.ForeColor
UIItemBase.IBorderElement.ForeColor2
UIItemBase.IBorderElement.ForeColor3
UIItemBase.IBorderElement.ForeColor4
UIItemBase.IBorderElement.InnerColor
UIItemBase.IBorderElement.InnerColor2
UIItemBase.IBorderElement.InnerColor3
UIItemBase.IBorderElement.InnerColor4
UIItemBase.IBorderElement.BoxStyle
UIItemBase.IBorderElement.GradientStyle
UIItemBase.IBorderElement.GradientAngle
UIItemBase.IBoxStyle.LeftColor
UIItemBase.IBoxStyle.LeftShadowColor
UIItemBase.IBoxStyle.TopColor
UIItemBase.IBoxStyle.TopShadowColor
UIItemBase.IBoxStyle.RightColor
UIItemBase.IBoxStyle.RightShadowColor
UIItemBase.IBoxStyle.BottomColor
UIItemBase.IBoxStyle.BottomShadowColor
UIItemBase.IBoxElement.Width
UIItemBase.IBoxElement.LeftWidth
UIItemBase.IBoxElement.TopWidth
UIItemBase.IBoxElement.RightWidth
UIItemBase.IBoxElement.BottomWidth
UIItemBase.IBoxElement.Offset
UIItemBase.IBoxElement.BorderSize
UIItemBase.IBoxElement.HorizontalWidth
UIItemBase.IBoxElement.VerticalWidth
RadItem.KeyDownEvent
RadItem.KeyPressEvent
RadItem.KeyUpEvent
RadItem.FocusCommand
RadItem.ActionCommand
RadItem.RadItemLastStateKey
RadItem.UseDefaultDisabledPaintProperty
RadItem.TextProperty
RadItem.TextOrientationProperty
RadItem.FlipTextProperty
RadItem.StringAlignmentProperty
RadItem.IsAddNewItemProperty
RadItem.ToolTipTextProperty
RadItem.EnableElementShadowProperty
RadItem.ShadowDepthProperty
RadItem.ShadowColorProperty
RadItem.IsPaintingRipple
RadItem.EnableRippleAnimationProperty
RadItem.RippleAnimationColorProperty
RadItem.EnableFocusBorderProperty
RadItem.FocusBorderColorProperty
RadItem.FocusBorderWidthProperty
RadItem.EnableFocusBorderAnimationProperty
RadItem.EnableHighlightProperty
RadItem.HighlightColorProperty
RadItem.EnableBorderHighlightProperty
RadItem.BorderHighlightColorProperty
RadItem.BorderHighlightThicknessProperty
RadItem.VisualStateProperty
RadItem.SetOwnerCollection(RadItemOwnerCollection)
RadItem.Select()
RadItem.OnSelect()
RadItem.Deselect()
RadItem.OnDeselect()
RadItem.DoKeyDown(KeyEventArgs)
RadItem.DoKeyPress(KeyPressEventArgs)
RadItem.DoKeyUp(KeyEventArgs)
RadItem.OnKeyDown(KeyEventArgs)
RadItem.OnKeyPress(KeyPressEventArgs)
RadItem.OnKeyUp(KeyEventArgs)
RadItem.RaiseBubbleEvent(RadElement, RoutedEventArgs)
RadItem.OnPropertyChanging(RadPropertyChangingEventArgs)
RadItem.OnEnabledChanged(RadPropertyChangedEventArgs)
RadItem.OnTextChanging(TextChangingEventArgs)
RadItem.OnTextChanged(EventArgs)
RadItem.OnTextOrientationChanged(EventArgs)
RadItem.OnFlipTextChanged(EventArgs)
RadItem.PaintOverride(IGraphics, Rectangle, Single, SizeF, Boolean)
RadItem.StartRippleAnimation(MouseEventArgs)
RadItem.UpdateFocusBorder(Boolean)
RadItem.ContainsText()
RadItem.ProcessDialogKey(Keys)
RadItem.ProcessCmdKey(Message, Keys)
RadItem.ProcessMnemonic(Char)
RadItem.CallRaiseKeyDown(KeyEventArgs)
RadItem.RaiseKeyDown(KeyEventArgs)
RadItem.CallRaiseKeyPress(KeyPressEventArgs)
RadItem.RaiseKeyPress(KeyPressEventArgs)
RadItem.CallRaiseKeyUp(KeyEventArgs)
RadItem.RaiseKeyUp(KeyEventArgs)
RadItem.ReplaceDefaultDescriptors(PropertyDescriptorCollection)
RadItem.CallOnGesture(GestureEventArgs)
RadItem.OnGesture(GestureEventArgs)
RadItem.OnTwoFingerTapGesture(GestureEventArgs)
RadItem.OnPressAndTapGesture(PressAndTapGestureEventArgs)
RadItem.OnPanGesture(PanGestureEventArgs)
RadItem.OnRotateGesture(RotateGestureEventArgs)
RadItem.OnZoomGesture(ZoomGestureEventArgs)
RadItem.ISupportDrag.CanDrag(Point)
RadItem.CanDragCore(Point)
RadItem.ISupportDrag.GetDataContext()
RadItem.GetDragContextCore()
RadItem.ISupportDrag.GetDragHint()
RadItem.GetDragHintCore()
RadItem.ISupportDrop.DragDrop(Point, ISupportDrag)
RadItem.ProcessDragDrop(Point, ISupportDrag)
RadItem.ISupportDrop.DragOver(Point, ISupportDrag)
RadItem.ProcessDragOver(Point, ISupportDrag)
RadItem.ISupportDrop.DragEnter(Point, ISupportDrag)
RadItem.ProcessDragEnter(Point, ISupportDrag)
RadItem.ISupportDrop.DragLeave(Point, ISupportDrag)
RadItem.ProcessDragLeave(Point, ISupportDrag)
RadItem.IShortcutProvider.OnShortcut(ShortcutEventArgs)
RadItem.IShortcutProvider.OnPartialShortcut(PartialShortcutEventArgs)
RadItem.IShortcutProvider.OnShortcutsChanged()
RadItem.UpdateOnShortcutsChanged()
RadItem.CanHandleShortcut(ShortcutEventArgs)
RadItem.IsOnActiveForm(Control, Boolean)
RadItem.SetThemeValueOverride(RadProperty, Object, String)
RadItem.SetThemeValueOverride(RadProperty, Object, String, String)
RadItem.SetThemeValueOverride(RadProperty, Object, String, Type)
RadItem.ResetThemeValueOverride(RadProperty)
RadItem.ResetThemeValueOverride(RadProperty, String)
RadItem.ResetThemeValueOverrides()
RadItem.SuspendApplyOfThemeSettings()
RadItem.ResumeApplyOfThemeSettings()
RadItem.GetAvailableVisualStates()
RadItem.ShouldFallbackToDefaultTheme()
RadItem.UseDefaultDisabledPaint
RadItem.TextOrientation
RadItem.FlipText
RadItem.CanHaveOwnStyle
RadItem.Text
RadItem.Selectable
RadItem.DesignTimeAllowDrop
RadItem.DesignTimeAllowDrag
RadItem.DefaultAutoToolTip
RadItem.ShouldHandleMouseInput
RadItem.KeyTip
RadItem.ParentItem
RadItem.CommandBinding
RadItem.ShortcutsHandler
RadItem.EnableElementShadow
RadItem.ShadowDepth
RadItem.ShadowColor
RadItem.EnableRippleAnimation
RadItem.RippleAnimationColor
RadItem.EnableFocusBorder
RadItem.FocusBorderColor
RadItem.FocusBorderWidth
RadItem.EnableFocusBorderAnimation
RadItem.EnableHighlight
RadItem.HighlightColor
RadItem.EnableBorderHighlight
RadItem.BorderHighlightColor
RadItem.BorderHighlightThickness
RadItem.MnemonicText
RadItem.SerializeProperties
RadItem.ToolTipText
RadItem.ThemeRole
RadItem.VisualState
RadItem.StateManager
RadItem.AllowDrag
RadItem.AllowDrop
RadItem.Shortcuts
RadItem.AccessibleDescription
RadItem.AccessibleName
RadItem.AccessibleRole
RadItem.IStylableElement.VisualState
RadItem.IStylableElement.ThemeRole
RadItem.IStylableElement.FallbackToDefaultTheme
RadItem.ContainsMnemonic
RadItem.EnableAnalytics
RadItem.TextChanging
RadItem.TextChanged
RadItem.TextOrientationChanged
RadItem.FlipTextChanged
RadItem.QueryAccessibilityHelp
RadItem.KeyDown
RadItem.KeyPress
RadItem.KeyUp
RadItem.ZoomGesture
RadItem.RotateGesture
RadItem.PanGesture
RadItem.TwoFingerTapGesture
RadItem.PressAndTapGesture
RadComponentElement.ComponentElementLastStateKey
RadComponentElement.ToString()
RadComponentElement.GetService(Type)
RadComponentElement.CanRaiseEvents
RadComponentElement.Container
RadComponentElement.DesignMode
RadComponentElement.IsDesignMode
RadComponentElement.Site
RadComponentElement.DataBindings
VisualElement.DefaultSizeProperty
VisualElement.ForeColorProperty
VisualElement.BackColorProperty
VisualElement.FontProperty
VisualElement.SmoothingModeProperty
VisualElement.OpacityProperty
VisualElement.CustomFontProperty
VisualElement.CustomFontSizeProperty
VisualElement.CustomFontStyleProperty
VisualElement.OnFontChanged(EventArgs)
VisualElement.PaintChildren(IGraphics, Rectangle, Single, SizeF, Boolean)
VisualElement.PrePaintElement(IGraphics)
VisualElement.PostPaintElement(IGraphics)
VisualElement.GetScaledFont(Single)
VisualElement.GetScaledFont(Single, Font)
VisualElement.DefaultSize
VisualElement.ForeColor
VisualElement.BackColor
VisualElement.Font
VisualElement.CustomFont
VisualElement.CustomFontSize
VisualElement.CustomFontStyle
VisualElement.SmoothingMode
VisualElement.Opacity
VisualElement.FontChanged
RadElement.BoundsProperty
RadElement.BorderThicknessProperty
RadElement.PaddingProperty
RadElement.MarginProperty
RadElement.AlignmentProperty
RadElement.AutoSizeModeProperty
RadElement.FitToSizeModeProperty
RadElement.MinSizeProperty
RadElement.EnabledProperty
RadElement.CanFocusProperty
RadElement.IsItemFocusedProperty
RadElement.IsFocusedProperty
RadElement.IsMouseOverProperty
RadElement.IsMouseOverElementProperty
RadElement.IsMouseDownProperty
RadElement.ShouldPaintProperty
RadElement.VisibilityProperty
RadElement.NameProperty
RadElement.ClassProperty
RadElement.ClipDrawingProperty
RadElement.ShapeProperty
RadElement.MouseClickedEvent
RadElement.MouseDoubleClickedEvent
RadElement.MouseDownEvent
RadElement.MouseUpEvent
RadElement.MouseWheelEvent
RadElement.ChildElementAddedEvent
RadElement.ParentChangedEvent
RadElement.BoundsChangedEvent
RadElement.VisibilityChangingEvent
RadElement.EnabledChangedEvent
RadElement.ControlChangedEvent
RadElement.BackgroundShapeProperty
RadElement.BackgroundShapePaintModeProperty
RadElement.ContainsFocusProperty
RadElement.ContainsMouseProperty
RadElement.IsEditedInSpyProperty
RadElement.MaxSizeProperty
RadElement.RightToLeftProperty
RadElement.AutoSizeProperty
RadElement.ZIndexProperty
RadElement.AngleTransformProperty
RadElement.ScaleTransformProperty
RadElement.PositionOffsetProperty
RadElement.TagProperty
RadElement.StretchHorizontallyProperty
RadElement.StretchVerticallyProperty
RadElement.UseCompatibleTextRenderingProperty
RadElement.ClickModeProperty
RadElement.styleVersion
RadElement.paintSystemSkin
RadElement.TraceInvalidation
RadElement.SetPropertyValueCommand
RadElement.GetPropertyValueCommand
RadElement.RadElementLastStateKey
RadElement.StyleProperty
RadElement.CallCreateChildElements()
RadElement.SuspendReferenceUpdate()
RadElement.ResumeReferenceUpdate()
RadElement.OnLoad(Boolean)
RadElement.CallOnLoad(Boolean)
RadElement.LoadCore()
RadElement.OnUnload(ComponentThemableElementTree, Boolean)
RadElement.UnloadCore(ComponentThemableElementTree)
RadElement.OnUnloaded(ComponentThemableElementTree)
RadElement.OnElementTreeChanged(ComponentThemableElementTree)
RadElement.OnBeginDispose()
RadElement.SetParent(RadElement)
RadElement.OnParentChanged(RadElement)
RadElement.UpdateReferences(ComponentThemableElementTree, Boolean, Boolean)
RadElement.SetIsDesignMode(Boolean, Boolean)
RadElement.ChangeCollection(RadElement, ItemsChangeOperation)
RadElement.ResetLayout(Boolean)
RadElement.HasInvisibleAncestor()
RadElement.ResetLayoutCore()
RadElement.SetAllLocalValuesAsDefault(Boolean)
RadElement.InvalidateArrange()
RadElement.InvalidateArrange(Boolean)
RadElement.InvalidateMeasure()
RadElement.InvalidateMeasure(Boolean)
RadElement.UpdateLayout()
RadElement.SuspendLayout()
RadElement.SuspendLayout(Boolean)
RadElement.ResumeLayout(Boolean)
RadElement.ResumeLayout(Boolean, Boolean)
RadElement.Arrange(RectangleF)
RadElement.Measure(SizeF)
RadElement.SetBounds(Rectangle)
RadElement.SetBounds(Int32, Int32, Int32, Int32)
RadElement.GetBoundingRectangle(Size)
RadElement.GetBoundingRectangle(Rectangle)
RadElement.GetDesiredSize(Boolean)
RadElement.PointToScreen(Point)
RadElement.PointFromScreen(Point)
RadElement.PointToControl(Point)
RadElement.PointFromControl(Point)
RadElement.LocationToControl()
RadElement.RectangleToScreen(Rectangle)
RadElement.HitTest(Point)
RadElement.CallOnRenderSizeChanged(SizeChangedInfo)
RadElement.OnRenderSizeChanged(SizeChangedInfo)
RadElement.OnChildDesiredSizeChanged(RadElement)
RadElement.OnLayoutPropertyChanged(RadPropertyChangedEventArgs)
RadElement.ArrangeCore(RectangleF)
RadElement.MeasureCore(SizeF)
RadElement.ShouldArrangeChild(RadElement)
RadElement.ShouldMeasureChild(RadElement)
RadElement.MeasureChildren(SizeF)
RadElement.GetArrangeRect(RectangleF)
RadElement.CanExecuteLayoutOperation()
RadElement.CalcLayoutOffset(PointF)
RadElement.LockBounds()
RadElement.UnlockBounds()
RadElement.SetBoundsCore(Rectangle)
RadElement.IsInValidState(Boolean)
RadElement.GetScrollingOffset()
RadElement.Invalidate()
RadElement.Invalidate(Boolean)
RadElement.GetInvalidateBounds()
RadElement.NotifyInvalidate(RadElement)
RadElement.OnTransformationInvalidated()
RadElement.InvalidateTransformations()
RadElement.PerformLayoutTransformation(RadMatrix)
RadElement.PerformPaintTransformation(RadMatrix)
RadElement.IsInGetAsBitmap()
RadElement.PaintElementSkin(IGraphics)
RadElement.Paint(IGraphics, Rectangle, Single, SizeF, Boolean)
RadElement.PaintBackgroundShape(IGraphics)
RadElement.PostPaintChildren(IGraphics, Rectangle, Single, SizeF)
RadElement.PaintChild(RadElement, IGraphics, Rectangle, Single, SizeF, Boolean)
RadElement.PaintShadow(RadElement, IGraphics)
RadElement.PaintShadowCore(Graphics, Rectangle, RadItem)
RadElement.GetShadowRect(Rectangle, Int32)
RadElement.PaintFocusCues(IGraphics, Rectangle)
RadElement.GetAsBitmap(IGraphics, Brush, Single, SizeF)
RadElement.GetAsTransformedBitmap(IGraphics, Brush, Single, SizeF)
RadElement.GetAsTransformedBitmap(Brush, Single, SizeF)
RadElement.GetAsTransformedBitmap(Rectangle, Brush, Single, SizeF)
RadElement.GetAsBitmapEx(Brush, Single, SizeF)
RadElement.GetAsBitmap(Brush, Single, SizeF)
RadElement.IsInVisibleClipBounds(Rectangle)
RadElement.SetClipping(Graphics)
RadElement.ShouldPaintChild(RadElement)
RadElement.GetFocusRect()
RadElement.GetCurrentShape()
RadElement.GetPaintRectangle(Single, Single, SizeF)
RadElement.GetPatchedRect(RectangleF, Single, SizeF)
RadElement.GetXPVisualStyle()
RadElement.GetVistaVisualStyle()
RadElement.InitializeSystemSkinPaint()
RadElement.UnitializeSystemSkinPaint()
RadElement.GetSystemSkinPaintBounds()
RadElement.OnUseSystemSkinChanged(EventArgs)
RadElement.ShouldPaintSystemSkin()
RadElement.ComposeShouldPaintSystemSkin()
RadElement.ResetStyleSettings(Boolean)
RadElement.ResetStyleSettings(Boolean, RadProperty)
RadElement.ProcessBehaviors(RadPropertyChangedEventArgs)
RadElement.AddBehavior(PropertyChangeBehavior)
RadElement.GetBehaviors()
RadElement.RemoveBehavior(PropertyChangeBehavior)
RadElement.ClearBehaviors()
RadElement.AddRangeBehavior(PropertyChangeBehaviorCollection)
RadElement.SetThemeApplied(Boolean)
RadElement.OnStyleChanged(RadPropertyChangedEventArgs)
RadElement.SuspendThemeRefresh()
RadElement.ResumeThemeRefresh()
RadElement.UnapplyStyle()
RadElement.RemoveRangeBehaviors(PropertyChangeBehaviorCollection)
RadElement.RemoveBehaviors(PropertyChangeBehavior)
RadElement.RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection)
RadElement.GetThemeEffectiveType()
RadElement.GetChildrenByType(Type)
RadElement.GetChildrenByBaseType(Type)
RadElement.FindAncestorByThemeEffectiveType(Type)
RadElement.FindAncestor<T>()
RadElement.IsAncestorOf(RadElement)
RadElement.FindDescendant<T>()
RadElement.FindDescendant(Predicate<RadElement>)
RadElement.FindDescendant(Type)
RadElement.EnumDescendants(TreeTraversalMode)
RadElement.EnumDescendants(Predicate<RadElement>, TreeTraversalMode)
RadElement.EnumDescendants(Filter, TreeTraversalMode)
RadElement.GetDescendants(Predicate<RadElement>, TreeTraversalMode)
RadElement.GetDescendants(Filter, TreeTraversalMode)
RadElement.GetAncestors(Filter)
RadElement.GetAncestors(Predicate<RadElement>)
RadElement.RaiseRoutedEvent(RadElement, RoutedEventArgs)
RadElement.RaiseTunnelEvent(RadElement, RoutedEventArgs)
RadElement.OnBubbleEvent(RadElement, RoutedEventArgs)
RadElement.IsEventInProcess(RaisedRoutedEvent)
RadElement.RegisterRoutedEvent(String, Type)
RadElement.GetRegisterRoutedEvent(String, Type)
RadElement.GetRegisterRoutedEvent(String, String)
RadElement.GetRegisterRoutedEvent(String)
RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation)
RadElement.GetChildren(ChildrenListOptions)
RadElement.SendToBack()
RadElement.BringToFront()
RadElement.GetChildAt(Int32)
RadElement.IsChildOf(RadElement)
RadElement.Focus()
RadElement.Focus(Boolean)
RadElement.SetFocusPropertySafe(Boolean)
RadElement.SetElementFocused(Boolean)
RadElement.KillFocus()
RadElement.SetFocus()
RadElement.OnCLREventsRise(RoutedEventArgs)
RadElement.OnMouseHover(EventArgs)
RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)
RadElement.OnLostMouseCapture(MouseEventArgs)
RadElement.OnDoubleClick(EventArgs)
RadElement.OnMouseEnter(EventArgs)
RadElement.PerformClick()
RadElement.OnMouseWheel(MouseEventArgs)
RadElement.DoMouseWheel(MouseEventArgs)
RadElement.DoClick(EventArgs)
RadElement.DoDoubleClick(EventArgs)
RadElement.CallDoMouseWheel(MouseEventArgs)
RadElement.IsInputKey(InputKeyEventArgs)
RadElement.MouseEventArgsFromControl(MouseEventArgs)
RadElement.DoMouseDown(MouseEventArgs)
RadElement.DoMouseUp(MouseEventArgs)
RadElement.DoMouseMove(MouseEventArgs)
RadElement.ShowScreenTip(ScreenTipNeededEventArgs)
RadElement.HideScreenTip()
RadElement.DoMouseHover(EventArgs)
RadElement.OnShowScreenTip(ComponentInputBehavior)
RadElement.RaiseClick(EventArgs)
RadElement.RaiseDoubleClick(EventArgs)
RadElement.RaiseMouseWheel(MouseEventArgs)
RadElement.UpdateContainsMouse()
RadElement.UpdateContainsFocus(Boolean)
RadElement.DoMouseEnter(EventArgs)
RadElement.DoMouseLeave(EventArgs)
RadElement.CallDoMouseDown(MouseEventArgs)
RadElement.CallDoMouseUp(MouseEventArgs)
RadElement.CallDoMouseMove(MouseEventArgs)
RadElement.CallDoMouseHover(EventArgs)
RadElement.CallDoMouseEnter(EventArgs)
RadElement.CallDoMouseLeave(EventArgs)
RadElement.CallDoClick(EventArgs)
RadElement.CallDoDoubleClick(EventArgs)
RadElement.GetValue(RadProperty)
RadElement.AddStylePropertySetting(IPropertySetting)
RadElement.SetValueCore(RadPropertyValue, Object, Object, ValueSource)
RadElement.NotifyChildren(RadPropertyChangedEventArgs)
RadElement.OnLocationChanged(RadPropertyChangedEventArgs)
RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)
RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)
RadElement.IsPropertyCancelable(RadPropertyMetadata)
RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)
RadElement.PerformDispose(Boolean)
RadElement.DisposeChildren()
RadElement.ResetUseCompatibleTextRendering()
RadElement.ShouldSerializeUseCompatibleTextRendering()
RadElement.IStylableNode.GetThemeEffectiveType()
RadElement.IStylableNode.ApplySettings(PropertySettingGroup)
RadElement.GetStylableChildrenHierarchy()
RadElement.GetStylableChildren()
RadElement.ResetStyleVersion()
RadElement.GetBorderThickness(BorderPrimitive)
RadElement.DpiScaleChanged(SizeF)
RadElement.ElementState
RadElement.LayoutManager
RadElement.DesiredSize
RadElement.IsLayoutSuspended
RadElement.BoundingRectangle
RadElement.ControlBoundingRectangle
RadElement.BypassLayoutPolicies
RadElement.IsArrangeValid
RadElement.IsMeasureValid
RadElement.PreviousArrangeRect
RadElement.PreviousConstraint
RadElement.TreeLevel
RadElement.Transform
RadElement.TotalTransform
RadElement.ShouldPaintUsingParentShape
RadElement.UseSystemSkin
RadElement.VsbVisible
RadElement.PropagateStyleToChildren
RadElement.ThemeEffectiveType
RadElement.ElementTree
RadElement.Children
RadElement.ChildrenHierarchy
RadElement.Parent
RadElement.RoutedEventBehaviors
RadElement.LayoutableChildrenCount
RadElement.ContainsFocus
RadElement.NotifyParentOnMouseInput
RadElement.IsAbleToRespondToMouseEvents
RadElement.AutoSize
RadElement.Bounds
RadElement.Location
RadElement.Size
RadElement.BorderThickness
RadElement.Padding
RadElement.Margin
RadElement.Alignment
RadElement.AutoSizeMode
RadElement.FitToSizeMode
RadElement.Enabled
RadElement.IsFocused
RadElement.IsMouseOver
RadElement.IsMouseOverElement
RadElement.IsMouseDown
RadElement.InvalidateChildrenOnChildChanged
RadElement.Visibility
RadElement.IsElementVisible
RadElement.Name
RadElement.Class
RadElement.ClipDrawing
RadElement.Shape
RadElement.MinSize
RadElement.MaxSize
RadElement.ZIndex
RadElement.RightToLeft
RadElement.UseCompatibleTextRendering
RadElement.BackgroundShape
RadElement.BackgroundShapePaintMode
RadElement.ContainsMouse
RadElement.Capture
RadElement.ScaleTransform
RadElement.AngleTransform
RadElement.PositionOffset
RadElement.SerializeElement
RadElement.SerializeChildren
RadElement.RenderingMaxFramerate
RadElement.IsThemeApplied
RadElement.ShouldApplyTheme
RadElement.UseCenteredAngleTransform
RadElement.Tag
RadElement.StretchHorizontally
RadElement.StretchVertically
RadElement.ClickMode
RadElement.DoubleClickEnabled
RadElement.CaptureOnMouseDown
RadElement.IsFocusable
RadElement.IsItemHovered
RadElement.IStylableNode.Parent
RadElement.IStylableNode.ChildrenHierarchy
RadElement.IStylableNode.Children
RadElement.IStylableNode.Class
RadElement.Style
RadElement.AutoToolTip
RadElement.ScreenTip
RadElement.AutoNumberKeyTip
RadElement.MeasureIsDirty
RadElement.ArrangeIsDirty
RadElement.NeverMeasured
RadElement.NeverArranged
RadElement.ArrangeInProgress
RadElement.MeasureInProgress
RadElement.ShouldPaintChildren
RadElement.InvalidateMeasureOnRemove
RadElement.HideFromElementHierarchyEditor
RadElement.DpiScaleFactor
RadElement.LayoutUpdated
RadElement.ElementPainted
RadElement.MouseHover
RadElement.MouseMove
RadElement.MouseDown
RadElement.MouseUp
RadElement.Click
RadElement.DoubleClick
RadElement.MouseEnter
RadElement.MouseWheel
RadElement.EnabledChanged
RadElement.MouseLeave
RadElement.ChildrenChanged
RadElement.LostMouseCapture
RadObject.BindingContextProperty
RadObject.RadType
RadObject.ClearPropertyStore()
RadObject.SuspendPropertyNotifications()
RadObject.ResumePropertyNotifications()
RadObject.GetPropertyValue(RadProperty)
RadObject.SetDefaultValueOverride(RadProperty, Object)
RadObject.SetValueAtDesignTime(RadProperty, Object)
RadObject.SetValue(RadProperty, Object)
RadObject.ResetValue(RadProperty)
RadObject.ResetLocalValue(RadProperty)
RadObject.ResetValue(RadProperty, ValueResetFlags)
RadObject.UpdateValue(RadProperty)
RadObject.GetValueSource(RadProperty)
RadObject.GetRegisteredRadProperty(String)
RadObject.UpdateValueCore(RadPropertyValue)
RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)
RadObject.GetDefaultValue(RadPropertyValue, Object)
RadObject.CoerceValue(RadPropertyValue, Object)
RadObject.ShouldSerializeProperty(RadProperty)
RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)
RadObject.UnbindProperty(RadProperty)
RadObject.RemoveStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(RadProperty)
RadObject.GetInheritedValue(RadProperty)
RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)
RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)
RadObject.PropertyValues
RadObject.PropertyFilter
RadObject.RadObjectType
RadObject.BindingContext
RadObject.PropertyChanged
RadObject.RadPropertyChanged
RadObject.RadPropertyChanging
RadObject.ShouldSerializePropertyHandler
DisposableObject.GetBitState(Int64)
DisposableObject.SetBitState(Int64, Boolean)
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.DisposeUnmanagedResources()
DisposableObject.BitState
DisposableObject.Events
DisposableObject.IsDisposing
DisposableObject.IsDisposed
DisposableObject.Disposed
DisposableObject.Disposing
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

public class RadRatingElement : StackLayoutElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider

Constructors

RadRatingElement()

Declaration
public RadRatingElement()

Fields

ValueProperty

Identifies the Value dependency property. This property defines the current rating value with support for null values to indicate no rating. Changes to this property trigger layout updates and visual refresh operations.

Declaration
public static RadProperty ValueProperty
Field Value
RadProperty

Properties

Caption

Gets or sets the text displayed in the caption label positioned above the rating items. This text typically serves as a title or primary label for the rating interface, providing context about what is being rated.

Declaration
public string Caption { get; set; }
Property Value
System.String

A string representing the caption text. The default value is an empty string.

CaptionElement

Gets the visual element that displays the caption text. This provides direct access to the caption element for advanced styling, theming, or layout customization.

Declaration
public LightVisualElement CaptionElement { get; }
Property Value
LightVisualElement

A LightVisualElement representing the caption display element.

Description

Gets or sets the text displayed in the description label positioned below the rating items. This text typically provides additional information, instructions, or context about the rating, such as explaining what different rating values represent or providing usage guidelines.

Declaration
public string Description { get; set; }
Property Value
System.String

A string representing the description text. The default value is an empty string.

DescriptionElement

Gets the visual element that displays the description text. This provides direct access to the description element for advanced styling, theming, or layout customization.

Declaration
public LightVisualElement DescriptionElement { get; }
Property Value
LightVisualElement

A LightVisualElement representing the description display element.

Direction

Gets or sets the direction in which rating items are painted and evaluated. This determines whether the rating starts from the beginning (Standard) or from the end (Reversed) of the item collection, affecting both visual appearance and value calculation during user interactions.

Declaration
public RatingDirection Direction { get; set; }
Property Value
RatingDirection

A RatingDirection value that specifies the painting direction. The default is Standard.

ElementOrientation

Gets or sets the orientation of the rating control, determining whether rating items are arranged horizontally or vertically. Changing the orientation affects both the visual layout and the interaction behavior of rating items, automatically updating the vertical properties of individual rating elements.

Declaration
public Orientation ElementOrientation { get; set; }
Property Value
System.Windows.Forms.Orientation

An System.Windows.Forms.Orientation value that specifies the layout orientation. The default is System.Windows.Forms.Orientation.Horizontal.

ElementsLayout

Gets the stack layout element that contains and arranges the rating visual items. This provides direct access to the layout container for advanced customization of item arrangement, spacing, and orientation behavior.

Declaration
public StackLayoutElement ElementsLayout { get; }
Property Value
StackLayoutElement

A StackLayoutElement that manages the layout of rating items.

HoverValue

Gets or sets the hover value that represents the rating value under the current mouse position. This value is used to provide visual feedback during mouse hover operations, allowing users to preview what their rating selection would be before clicking to confirm.

Declaration
public double HoverValue { get; set; }
Property Value
System.Double

A double representing the hover value for visual feedback.

IsInRadGridView

Gets or sets a value indicating whether this rating element is hosted within a RadGridView control. This property enables special handling and optimizations when the rating element is used as a grid cell editor, automatically propagating this state to all contained rating visual elements for consistent behavior.

Declaration
public bool IsInRadGridView { get; set; }
Property Value
System.Boolean

true if the element is hosted in a RadGridView; otherwise, false.

Items

Gets the collection of rating visual items that represent the individual rating elements. This collection contains the visual elements (such as stars, diamonds, or hearts) that users interact with to provide their rating. Items can be added, removed, or customized to create different rating interfaces.

Declaration
public RadItemOwnerCollection Items { get; }
Property Value
RadItemOwnerCollection

A RadItemOwnerCollection containing the rating visual elements.

Maximum

Gets or sets the maximum value that can be assigned to the rating element. This property defines the upper bound of the rating range and affects how rating items are interpreted. The maximum value must be greater than the minimum value to maintain a valid range.

Declaration
public double Maximum { get; set; }
Property Value
System.Double

A double value representing the maximum rating. The default value is 100.0.

Exceptions
System.ArgumentException

Thrown when the maximum value is set to be less than or equal to the minimum value.

Minimum

Gets or sets the minimum value that can be assigned to the rating element. This property defines the lower bound of the rating range and affects how rating items are interpreted. The minimum value must be less than the maximum value to maintain a valid range.

Declaration
public double Minimum { get; set; }
Property Value
System.Double

A double value representing the minimum rating. The default value is 0.0.

Exceptions
System.ArgumentException

Thrown when the minimum value is set to be greater than or equal to the maximum value.

PercentageRounding

Gets or sets the percentage threshold used for automatic value rounding near the minimum and maximum bounds. When user selections are within this percentage of the range extremes, the value automatically snaps to the minimum or maximum value for improved usability and to prevent accidental near-miss selections.

Declaration
public double PercentageRounding { get; set; }
Property Value
System.Double

A double representing the percentage rounding threshold as a value between 0 and 100. The default value is 0.5.

ReadOnly

Gets or sets a value indicating whether the rating element is in read-only mode. When read-only, users cannot interact with the rating items to change the value, but the value can still be set programmatically. This mode is useful for displaying ratings without allowing user modification, such as showing existing reviews or scores.

Declaration
public bool ReadOnly { get; set; }
Property Value
System.Boolean

true if the rating element is read-only; otherwise, false. The default value is false.

SelectedValue

Gets or sets the internal selected value that represents the user's current selection before it's committed. This value is used during interaction scenarios to track what the user has selected but may not yet be reflected in the final Value property. It supports percentage-based rounding for user-friendly value snapping near minimum and maximum bounds.

Declaration
public virtual double SelectedValue { get; set; }
Property Value
System.Double

A double representing the selected value within the element's range.

SelectionMode

Gets or sets the selection mode that determines how rating values are calculated and quantized during user interaction. This property controls the precision and behavior of value selection, supporting precise decimal values, half-item increments, or full-item selections based on user interaction patterns.

Declaration
public RatingSelectionMode SelectionMode { get; set; }
Property Value
RatingSelectionMode

A RatingSelectionMode value that specifies the selection behavior. The default is Precise.

ShouldPaintHover

Gets or sets a value indicating whether hover visual feedback should be displayed when users move their mouse over rating items. When enabled, rating items will show visual preview of the potential selection as the mouse moves across them. This enhances user experience by providing immediate visual feedback during interaction.

Declaration
public bool ShouldPaintHover { get; set; }
Property Value
System.Boolean

true to display hover effects; false to disable hover visual feedback. The default value is true.

SubCaption

Gets or sets the text displayed in the sub-caption label positioned between the caption and rating items. This text provides additional context or instructions for the rating interface, typically offering more detailed information than the main caption.

Declaration
public string SubCaption { get; set; }
Property Value
System.String

A string representing the sub-caption text. The default value is an empty string.

SubCaptionElement

Gets the visual element that displays the sub-caption text. This provides direct access to the sub-caption element for advanced styling, theming, or layout customization.

Declaration
public LightVisualElement SubCaptionElement { get; }
Property Value
LightVisualElement

A LightVisualElement representing the sub-caption display element.

ToolTipDuration

Gets or sets the duration in milliseconds that tooltips remain visible during user interaction. This property controls how long tooltips stay displayed when users hover over rating items, balancing information availability with interface cleanliness.

Declaration
public int ToolTipDuration { get; set; }
Property Value
System.Int32

An integer representing the tooltip duration in milliseconds. The default value is 2000 (2 seconds).

ToolTipFormatString

Gets or sets the format string used for displaying tooltip values during user interaction. This string uses standard .NET string formatting syntax to control how rating values are presented in tooltips when users hover over rating items.

Declaration
public string ToolTipFormatString { get; set; }
Property Value
System.String

A format string for tooltip display. The default value is "{0:0.0}" to show one decimal place.

ToolTipOffset

Gets or sets the offset position for tooltip display relative to the mouse cursor. This property controls where tooltips appear in relation to the current mouse position, allowing customization of tooltip placement to avoid cursor obstruction and improve readability.

Declaration
public Point ToolTipOffset { get; set; }
Property Value
System.Drawing.Point

A System.Drawing.Point representing the tooltip offset in pixels. The default value is (10, 15).

ToolTipPrecision

Gets or sets the precision threshold for tooltip value updates during mouse interaction. This value determines how much the current rating value must change before the tooltip content is updated, preventing excessive tooltip flickering during smooth mouse movements.

Declaration
public double ToolTipPrecision { get; set; }
Property Value
System.Double

A double representing the precision threshold for tooltip updates. The default value is 0.1.

Value

Gets or sets the current rating value as a nullable double. This is the primary property that represents the user's rating selection within the range defined by Minimum and Maximum properties. A null value indicates that no rating has been selected. Value changes trigger validation, range checking, and cancelable change events.

Declaration
public double? Value { get; set; }
Property Value
System.Nullable<System.Double>

A nullable double representing the current rating value, or null if no rating is selected.

Methods

CreateChildElements()

Creates and configures the child elements that comprise the rating interface. This method establishes the visual hierarchy including caption, sub-caption, description labels, and the main elements layout container. It also initializes the rating items collection with default item types and configures the overall layout properties.

Declaration
protected override void CreateChildElements()
Overrides
RadElement.CreateChildElements()

GetElementIndex(Nullable<Double>)

Calculates and returns the zero-based index of the rating item that corresponds to the specified value. This method performs value-to-index mapping considering the current range, direction, and orientation settings to determine which rating item should be highlighted or selected.

Declaration
protected virtual int GetElementIndex(double? value)
Parameters
System.Nullable<System.Double> value

The rating value to convert to an item index.

Returns
System.Int32

An integer representing the zero-based index of the corresponding rating item.

GetNormalizedValue(Nullable<Double>)

Normalizes a rating value by subtracting the minimum value to create a zero-based range. This method converts absolute rating values to relative values within the rating range, handling null values appropriately for consistent calculations.

Declaration
protected virtual double GetNormalizedValue(double? value)
Parameters
System.Nullable<System.Double> value

The rating value to normalize, or null if no value is set.

Returns
System.Double

A double representing the normalized value relative to the minimum bound.

GetRelativePoint(Int32, RatingBaseVisualElement, Nullable<Double>)

Calculates the relative point within a rating visual element that corresponds to the specified value. This method determines the precise position within an individual rating item where the visual representation should be clipped or highlighted based on the partial value it represents.

Declaration
protected virtual Point GetRelativePoint(int elementIndex, RatingBaseVisualElement currentVisualElement, double? value)
Parameters
System.Int32 elementIndex

The index of the rating element being calculated.

RatingBaseVisualElement currentVisualElement

The visual element for which to calculate the relative point.

System.Nullable<System.Double> value

The rating value to convert to a relative position.

Returns
System.Drawing.Point

A System.Drawing.Point representing the relative position within the visual element.

InitializeFields()

Initializes the fields and default values for the rating element. This method sets up default tooltip configuration, rounding behavior, and visual settings to provide a consistent baseline experience for rating interactions.

Declaration
protected override void InitializeFields()
Overrides
StackLayoutElement.InitializeFields()

MeasureOverride(SizeF)

Measures the desired size of the rating element based on its child elements and available space. This method calculates the optimal size by measuring all child elements (caption, sub-caption, rating items layout, and description) and determining the required width and height.

Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF availableSize

The available size that this element can use to arrange its children.

Returns
System.Drawing.SizeF

A System.Drawing.SizeF representing the desired size of the rating element.

Overrides
StackLayoutElement.MeasureOverride(SizeF)

OnClick(EventArgs)

Handles the click event to commit the current selected value as the rating value. This method validates that the click occurred within the rating items area and that the element is not in read-only mode before applying the selected value.

Declaration
protected override void OnClick(EventArgs e)
Parameters
System.EventArgs e

An System.EventArgs that contains the event data.

Overrides
RadElement.OnClick(EventArgs)

OnMouseDown(MouseEventArgs)

Handles the mouse down event to update the selected value and apply visual feedback. This method calculates the rating value based on the mouse position, updates the selected value, and triggers visual painting for the selected value layer.

Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

A System.Windows.Forms.MouseEventArgs that contains the event data.

Overrides
RadItem.OnMouseDown(MouseEventArgs)

OnMouseLeave(EventArgs)

Handles the mouse leave event by resetting all interactive visual states and hiding tooltips. This method ensures that hover effects and visual feedback are properly cleared when the mouse exits the rating element boundaries.

Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
System.EventArgs e

An System.EventArgs that contains the event data.

Overrides
RadItem.OnMouseLeave(EventArgs)

OnMouseMove(MouseEventArgs)

Handles mouse movement over the rating element, providing interactive feedback and tooltip display. This method processes mouse position to determine hover values, updates visual feedback, and manages tooltip display with precision-based updates. It respects read-only mode and handles both standard and right-to-left layout orientations.

Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

A System.Windows.Forms.MouseEventArgs that contains the event data.

Overrides
LightVisualElement.OnMouseMove(MouseEventArgs)

OnMouseUp(MouseEventArgs)

Handles the mouse up event by resetting the selected value visual layer. This method clears the temporary selected value visual feedback, returning the rating items to their standard display state after the mouse button is released.

Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs e

A System.Windows.Forms.MouseEventArgs that contains the event data.

Overrides
RadItem.OnMouseUp(MouseEventArgs)

OnNotifyPropertyChanged(String)

Handles property change notifications and triggers appropriate visual updates. This method responds to key property changes that affect visual appearance, layout, or value representation, ensuring that the rating display remains synchronized with property values.

Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String propertyName

The name of the property that changed.

Overrides
RadObject.OnNotifyPropertyChanged(String)

OnPropertyChanged(RadPropertyChangedEventArgs)

Handles property change notifications for the rating element. This method responds to specific property changes such as RightToLeft and Bounds, ensuring that visual updates and layout recalculations occur when necessary.

Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs e

A RadPropertyChangedEventArgs that contains the event data.

Overrides
LightVisualElement.OnPropertyChanged(RadPropertyChangedEventArgs)

OnValueChanged(EventArgs)

Raises the ValueChanged event with the specified event arguments. This method is called when the rating value has been successfully changed to notify any registered event handlers.

Declaration
protected virtual void OnValueChanged(EventArgs e)
Parameters
System.EventArgs e

An System.EventArgs that contains the event data.

OnValueChanging(ValueChangingEventArgs)

Raises the ValueChanging event with the specified event arguments. This method is called before a value change occurs, allowing handlers to validate or cancel the change.

Declaration
protected virtual void OnValueChanging(ValueChangingEventArgs e)
Parameters
ValueChangingEventArgs e

A ValueChangingEventArgs that contains the event data and allows cancellation of the change.

PaintValueLevel()

Updates the visual representation of the rating value by painting the appropriate visual layers. This method is called when the rating value changes to ensure that the visual display accurately reflects the current value state across all rating items.

Declaration
protected virtual void PaintValueLevel()

ResetValues()

Resets all interactive visual states including hover effects, selected value feedback, and tooltip display. This method clears temporary visual states and hides tooltips, typically called when interaction ends or when the mouse leaves the rating element area.

Declaration
protected void ResetValues()

UpdateCurrentValue(Int32, RatingVisualElement, MouseEventArgs)

Calculates and returns the rating value based on the current mouse position within a specific rating visual element. This method performs complex calculations considering the current selection mode, direction, orientation, and relative mouse position to determine the appropriate rating value for user feedback and selection.

Declaration
protected virtual double UpdateCurrentValue(int currentIndex, RatingVisualElement element, MouseEventArgs e)
Parameters
System.Int32 currentIndex

The index of the current rating item being interacted with.

RatingVisualElement element

The specific RatingVisualElement under the mouse cursor.

System.Windows.Forms.MouseEventArgs e

The System.Windows.Forms.MouseEventArgs containing the current mouse position.

Returns
System.Double

A double representing the calculated rating value based on the mouse interaction.

VisualElementsBounds()

Calculates and returns the bounding rectangle that encompasses all rating visual elements. This method determines the overall area occupied by the rating items, which is used for hit testing, layout calculations, and interaction boundary detection.

Declaration
protected Rectangle VisualElementsBounds()
Returns
System.Drawing.Rectangle

A System.Drawing.Rectangle representing the bounds of all rating visual elements.

Events

ValueChanged

Occurs after the value of the rating element has been changed through user interaction or programmatic assignment. This event is fired after the value change is complete and all related processing has been finished.

Declaration
public event EventHandler ValueChanged
Event Type
System.EventHandler

ValueChanging

Occurs before the value of the rating element is changed, providing an opportunity to cancel the change. This cancelable event allows validation or conditional approval of value changes before they are applied, enabling custom business logic or user confirmation scenarios.

Declaration
public event ValueChangingEventHandler ValueChanging
Event Type
ValueChangingEventHandler

Extension Methods

CommonExtensions.ClearIfNoBindingAndSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
SerializationExtensions.DeserializePrimitives(RadItem, SerializationInfo)
CommonExtensions.SetIfDifferent(RadObject, RadProperty, Object)
CommonExtensions.ClearIfSet(RadObject, RadProperty)
CommonExtensions.IsLocalValueSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • 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.