Restrict User Selection in WPF Rating (SfRating)

6 Feb 20251 minute to read

The SfRating control provides support to changeable or unchangeable values. This is achieved using the IsReadOnly property. When this property is set to true, the rating value becomes unchangeable. By default, value of this property is false.

<rating:SfRating ItemsCount="5" IsReadOnly="True"/>
SfRating rating;
public MainWindow()
{
    InitializeComponent();
    rating = new SfRating();
    rating.IsReadOnly = true;
    Content = rating;
}

SfRating read only