We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The .NET WinUI Rating control is used to provide or view ratings on a numeric scale for any service provided, such as movies, applications, products, and more.

WinUI Rating overview


Precision

The WinUI Rating control provides an accuracy level for ratings with flexible precision to handle full, half, or exact values.

WinUI Rating precision full

Full

Provided rating is rounded to the nearest value.

WinUI rating precision half

Half

Allows selection to the nearest half-value for rating.

WinUI Rating precision exact

Exact

Provides the exact value for rating.


Read-Only

The WinUI Rating provides read-only support to restrict the user selection and allows users to view only the rating value.

WinUI Rating read-only


Template

The WinUI Rating provides template support to add rating items as images, paths, font icons, and other elements.

WinUI Rating image template

Image template

Item templates use images to show rated and unrated items.

WinUI Rating path template

Path template

Item templates use paths to show rated and unrated items.


Tooltip

The WinUI Rating control tooltip shows the rating value when the user hovers the mouse over the control.

WinUI Rating tooltip


Customization

The WinUI Rating control can be customized with different styles for rated and unrated items, item count, and item size.

WinUI Rating style

Styles

Users can customize the styles of rated and unrated items in the control.

WinUI Rating item Count

Item count

Specify the number of items to display.

WinUI Rating item size

Item size

Customize the size of rating items in the control.


WinUI Rating Code Example

Easily get started with the WinUI Rating using a few simple lines of XAML and CS code example as demonstrated below.

<Page
    x:Class="GettingStarted.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:GettingStarted"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:syncfusion="using:Syncfusion.UI.Xaml.Core"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Grid>
      <syncfusion:SfRating Value="3" ItemsCount="5"/>
    </Grid>
</Page>
// Creating an instance of the Rating control.
SfRating rating = new SfRating();

// Adding the rating items to the control.
rating.ItemsCount=5;

//Setting the value of rating control.
rating.Value=3;

Syncfusion WinUI DataViz & UI Controls

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile