This is a migrated thread and some comments may be shown as answers.

How to change the size of the Rating item(star)

2 Answers 237 Views
Rating
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Abdulwahab
Top achievements
Rank 1
Abdulwahab asked on 04 May 2012, 05:45 PM
I have tried changing the height and width value from the Rating control but this seems to just cut off the Star. How can I change the size effectively?

My current xaml looks like below
<telerikInput:RadRating x:Name="rating" Value="{Binding AverageUserRating}" IsReadOnly="True" RatingDisplayPrecision="Exact"/>

2 Answers, 1 is accepted

Sort by
0
Abdulwahab
Top achievements
Rank 1
answered on 04 May 2012, 07:57 PM
I guess I found the right propeties to get it working - ItemShapeWidth and ItemShapeHeight

Thanks
Abdulwahab
0
Todor
Telerik team
answered on 07 May 2012, 07:27 AM
Hi Abdulwahab,

Thank you for contacting us.

Yes, you have found the right properties - ItemShapeWidth and ItemShapeHeight can be used to change the size of all of the rating items in RadRating. If you want, you can also change the size of only some of the items or have different size on each item, but you will need to add the items explicitly like this:

<telerikInputLRadRating>
    <telerikInput:RadRatingItem ShapeWidth="10" ShapeHeight="10"/>
    <telerikInput:RadRatingItem ShapeWidth="20" ShapeHeight="20"/>
    <telerikInput:RadRatingItem ShapeWidth="30" ShapeHeight="30"/>
    <telerikInput:RadRatingItem ShapeWidth="40" ShapeHeight="40"/>
    <telerikInput:RadRatingItem ShapeWidth="50" ShapeHeight="50"/>
</telerikInput:RadRating>

More about the customization of the RadRating and about its properties you can find in our online documentation.

I hope this information helps. If you have other questions, don't hesitate to write us back.

Regards,
Todor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Rating
Asked by
Abdulwahab
Top achievements
Rank 1
Answers by
Abdulwahab
Top achievements
Rank 1
Todor
Telerik team
Share this question
or