/syncfusion-winui:syncfusion-winui-ratingfrom Syncfusion WinUI Controls
Guide for implementing the Syncfusion WinUI Rating (SfRating) control to collect user ratings and feedback on a numeric scale. Use this when implementing star ratings, user reviews, or feedback collection in WinUI 3. This skill covers precision modes (full, half, exact), custom templates, tooltips, and read-only rating display.
Ships in Syncfusion WinUI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Syncfusion WinUI Rating control (SfRating) provides an intuitive interface for users to provide or view ratings on a numeric scale. Perfect for reviews, feedback systems, and rating displays, it supports various precision modes, custom templates, and extensive styling options.
Use the Rating control when you need to:
Trigger keywords: rating, stars, star rating, SfRating, review, feedback, score, user rating, half star, precision, emoji rating, satisfaction, product rating
Control: SfRating
Namespace: Syncfusion.UI.Xaml.Editors
NuGet Package: Syncfusion.Editors.WinUI
Platform: WinUI 3 Desktop (.NET 5+)
📄 Read: references/getting-started.md
📄 Read: references/precision.md
📄 Read: references/customization.md references/customization-advanced.md
📄 Read: references/templates.md
📄 Read: references/tooltip-features.md references/tooltip-customization.md
XAML:
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="using:Syncfusion.UI.Xaml.Editors">
<Grid>
<syncfusion:SfRating Value="3" ItemsCount="5"/>
</Grid>
</Page>
C#:
using Syncfusion.UI.Xaml.Editors;
// Create rating control
SfRating rating = new SfRating();
rating.Value = 3;
rating.ItemsCount = 5;
<syncfusion:SfRating Value="4" ItemsCount="5"/>
<syncfusion:SfRating
Value="3.5"
ItemsCount="5"
Precision="Half"/>
<StackPanel>
<TextBlock Text="Average Rating:"/>
<syncfusion:SfRating
Value="4.2"
ItemsCount="5"
Precision="Exact"
IsReadOnly="True"/>
</StackPanel>
<syncfusion:SfRating
Value="3"
ItemsCount="5"
EnableToolTip="True"
ToolTipFormat="0.0"/>
<syncfusion:SfRating
Value="4"
ItemsCount="5"
ItemSize="40"/>
<syncfusion:SfRating
Value="3"
ItemsCount="5"
Orientation="Vertical"/>
<syncfusion:SfRating
ItemsCount="5"
PlaceholderValue="3.5"/>
<syncfusion:SfRating
Value="4"
ItemsCount="5"
IsClearEnabled="True"/>
| Property | Type | Default | Description |
|---|---|---|---|
Value | double | 0 | Current rating value |
ItemsCount | int | 5 | Number of rating items to display |
Precision | RatingPrecision | Full | Rating accuracy (Full/Half/Exact) |
ItemSize | double | 24 | Size of each rating item |
Orientation | Orientation | Horizontal | Layout direction (Horizontal/Vertical) |
IsReadOnly | bool | false | Prevents user interaction |
IsClearEnabled | bool | true | Allows clearing the rating |
PlaceholderValue | double | 0 | Initial display value before user rating |
EnableToolTip | bool | false | Show value on hover |
ToolTipFormat | string | null | Format string for tooltip content |
RatedItemStyle | Style | null | Style for filled/selected items |
UnratedItemStyle | Style | null | Style for empty/unselected items |
ItemTemplateSelector | DataTemplateSelector | null | Custom visual templates |
Value vs PlaceholderValue:
Value: User's actual ratingPlaceholderValue: Shows average/suggested rating before user interactionPrecision Modes:
IsReadOnly:
true for displaying ratings (product listings, reviews summary)false for collecting ratings (review forms, feedback)IsClearEnabled:
true: User can remove their rating by clicking first star againfalse: Once set, rating cannot be cleared (only changed)<StackPanel>
<TextBlock Text="Rate this product:" FontWeight="Bold"/>
<syncfusion:SfRating
x:Name="ProductRating"
Value="0"
ItemsCount="5"
Precision="Half"
EnableToolTip="True"
ToolTipFormat="0.0"
ValueChanged="ProductRating_ValueChanged"/>
</StackPanel>
private void ProductRating_ValueChanged(object sender, ValueChangedEventArgs e)
{
// Save rating to database
SaveProductRating(e.NewValue);
}
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<syncfusion:SfRating
Grid.Column="0"
Value="{Binding AverageRating}"
ItemsCount="5"
Precision="Exact"
IsReadOnly="True"
ItemSize="20"/>
<TextBlock
Grid.Column="1"
Text="{Binding AverageRating, StringFormat='({0:0.0})'}"
VerticalAlignment="Center"
Margin="10,0,0,0"/>
</Grid>
<StackPanel Spacing="15">
<TextBlock Text="How satisfied are you with our service?"/>
<syncfusion:SfRating
Value="3"
ItemsCount="5"
ItemSize="50"
EnableToolTip="True"/>
</StackPanel>
<StackPanel>
<TextBlock Text="Rate this movie:" FontSize="16"/>
<syncfusion:SfRating
Value="0"
ItemsCount="5"
Precision="Half"
ItemSize="35"
EnableToolTip="True"
ToolTipFormat="0.0 stars"/>
</StackPanel>
IsClearEnabled unless rating is mandatoryIsReadOnly="True" for display ratingsRating value not updating:
IsReadOnly is falseValue is bound correctly (TwoWay binding)Stars not displaying:
xmlns:syncfusion="using:Syncfusion.UI.Xaml.Editors"Half-star not showing:
Precision="Half"Custom template not appearing:
Tooltip not visible:
EnableToolTip="True"ValueChanged:
private void Rating_ValueChanged(object sender, ValueChangedEventArgs e)
{
double oldValue = e.OldValue;
double newValue = e.NewValue;
// Handle rating change
Debug.WriteLine($"Rating changed from {oldValue} to {newValue}");
}
Need more details? Read the reference files linked in the Navigation Guide above for comprehensive documentation and examples.
references/customization-advanced.md (opens in a new tab)references/customization.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/precision.md (opens in a new tab)references/templates.md (opens in a new tab)references/tooltip-customization.md (opens in a new tab)references/tooltip-features.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winui39 skills in this plugin
/syncfusion-winui-ai-assistviewGuide for implementing the Syncfusion WinUI AI AssistView control for creating AI chat interfaces and conversational UI. Use this skill when implementing AI chat interfaces, AI assistants, conversational UI, or chatbots in WinUI applications. Essential for creating AI-powered chat experiences, integrating AI services, displaying AI responses, showing typing indicators, providing AI suggestions, managing conversation history with a navigation view, customizing empty states with EmptyView/EmptyViewTemplate, or setting input placeholder text in conversational interfaces with AI services in WinUI./syncfusion-winui-autocompleteGuide implementation of the Syncfusion WinUI AutoComplete control (SfAutoComplete) for creating searchable dropdowns with single or multiple selection, filtering suggestions, and customizable token display. Use this skill when implementing search-as-you-type functionality, autocomplete dropdowns with multi-select, tagging systems with token/chip display, or filtered suggestion boxes in WinUI applications./syncfusion-winui-avatar-viewGuide for implementing the Syncfusion WinUI AvatarView control to display user avatars and profile pictures. Use this when implementing user profiles, contact lists, or chat interfaces requiring visual user representation in WinUI applications. This skill covers initials display, image avatars, group avatars, and pre-defined avatar characters./syncfusion-winui-badgeGuide implementation of the Syncfusion WinUI Badge control (SfBadge) for displaying notification badges and status indicators. Use this skill when working with badge notifications, unread count badges, BadgeContainer, or notification overlays in WinUI applications. Covers shapes, colors, positioning, alignment, animations, and customization patterns./syncfusion-winui-barcodeImplement Syncfusion WinUI Barcode (SfBarcode) control to generate and display machine-readable barcodes in desktop applications. Use this when working with barcodes, QR codes, or product labeling systems. This skill covers symbology types (DataMatrix, Code39, Code128, Codabar, UPC), barcode customization, text alignment, rotation, and visual encoding for WinUI applications./syncfusion-winui-busy-indicatorGuide for implementing the Syncfusion WinUI BusyIndicator control to display loading indicators and progress status. Use this skill when implementing loading indicators, showing progress status, indicating background operations, or creating waiting screens in WinUI applications. Essential for async data loading, file operations, API calls, and any scenario requiring user notification during processing tasks.