Enable View Range Selection in Xamarin Rating (SfRating)

18 May 20211 minute to read

When using CustomView in SfRating, Only one item will be rated. If you need to change the view of all rated CustomView items, Use the EnableViewRangeSelection boolean property.

NOTE

The EnableViewRangeSelection property is used only for CustomViews.

<rating:SfRating x:Name="rating" EnableCustomView="True" ItemCount="5" EnableViewRangeSelection="True" />
SfRating rating;
public MainPage()
{
    InitializeComponent();
    -------

    rating.EnableCustomView = true;
    rating.EnableViewRangeSelection = true;
    
    -------
}

SfRating EnableViewRangeSelection