Search code examples
c#telerikvisual-studio-2017windows-10-universal

Is it possible to change the star size on Telerik RadRating for UWP?


I found a thread, and codes are there, but it doesn't work

https://www.telerik.com/forums/how-to-change-the-size-of-the-rating-item-star

link wrote, I could use

<telerikInput.RadRating>
    <telerikInput.RadRatingItem ShapeWidth="50" />
</telerikInput.RadRating>

but there's no ShapeWidth in RadRatingItem


Solution

  • The document you linked is for Windows phone. For UWP please reference the newest official document. So that there is no property named ShapeWidth from the properties page. For changing the star size you could just update the default style of RadRating. The size of the SymbolIcon is just defined by the FontSize property of RadRating. For example:

    <telerikInput:RadRating FontSize="500" >
       <!--<telerikInput:RadRating.Style>
           <Style TargetType="telerikInput:RadRating"> 
               <Setter Property="FontSize" Value="500" />  
           </Style> 
       </telerikInput:RadRating.Style>-->
       <telerikInput:RadRatingItem /> 
    </telerikInput:RadRating>
    

    Even if you want to change the deep style that cannot be changed by properties you could update the default style like I showed above. For the default style please reference Generic.xaml.