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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change width of SfRating?

Thread ID:

Created:

Updated:

Platform:

Replies:

151376 Feb 9,2020 04:31 PM UTC Feb 11,2020 10:58 AM UTC WPF 3
loading
Tags: SfRating
Helmut Wahrmann
Asked On February 9, 2020 04:31 PM UTC

Hi,

can the width of the SfRating be changed?
i was changing the stars to a height of 15, and have now a lot of space between them.
Can that be condensed?



thx,

Helmut

Hemalatha Marikumar [Syncfusion]
Replied On February 10, 2020 08:50 AM UTC

Hi Helmut,

Greetings from Syncfusion. 
 
Your requirement has been achieved by setting Width of SfRatingItem as per in below code snippet

Code snippet: 
  <rating:SfRating Height="100" ItemsCount="5"> 
        <rating:SfRating.ItemContainerStyle> 
                <Style TargetType="rating:SfRatingItem"> 
                <Setter Property="RatedStroke" Value="Green"></Setter> 
                <Setter Property="Height" Value="50"/> 
                <Setter Property="Width" Value="60"/> 
                <Setter Property="RatedStrokeThickness" Value="2"></Setter> 
                </Style> 
            </rating:SfRating.ItemContainerStyle> 
  
    </rating:SfRating> 
  
Output:


 
Please let us know if you have any other queries. 
 
Regards,
Hemalatha M. 


Helmut Wahrmann
Replied On February 10, 2020 12:14 PM UTC

of course. How could i have missed that?

Thanks,
Helmut

Sakthivel Palaniyappan [Syncfusion]
Replied On February 11, 2020 10:58 AM UTC

 Hi Helmut,

Thanks for your update.

We are glad to know that given solution works.

Please let us know if you have any other queries.

Regards,
Sakthivel P.
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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
Live Chat Icon