2X faster development
The ultimate WPF UI toolkit to boost your development speed.
The SfRating control enables to change the height of the SfRatingItem. The following code enables SfRating control having items with different heights. XAML<syncfusion:SfRating Height="50" VerticalAlignment="Center" HorizontalAlignment="Center" VerticalContentAlignment="Center" Value="3"> <syncfusion:SfRatingItem Height="20"/> <syncfusion:SfRatingItem Height="18"/> <syncfusion:SfRatingItem Height="16"/> <syncfusion:SfRatingItem Height="14"/> <syncfusion:SfRatingItem Height="12"/> </syncfusion:SfRating>
You can also provide similar height using the ItemContainerStyle property of the SfRating control. The following code implements the ItemContainerStyle property. XAML<syncfusion:SfRating Height="50" Width="300" ItemsCount="10" Value="4"> <syncfusion:SfRating.ItemContainerStyle> <Style TargetType="syncfusion:SfRatingItem"> <Setter Property="Height" Value="12"/> </Style> </syncfusion:SfRating.ItemContainerStyle> </syncfusion:SfRating>
You can also provide the height for the SfRatingItem in code behind as follows. C#ratingItem.Height = 20;
|
2X faster development
The ultimate WPF UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.