是否可以更改 Telerik RadRating for UWP 上的星星大小?

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

我找到了一个线程,代码也在那里,但它不起作用

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

link 写了,我可以用

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

但是 RadRatingItem 中没有 ShapeWidth

您链接的文档适用于 Windows phone。对于 UWP,请参考 newest official document。因此属性页面中没有名为 ShapeWidth 的 属性。要更改星星大小,您只需更新 RadRating 的默认样式即可。 SymbolIcon 的大小刚好由 RadRatingFontSize 属性 定义。例如:

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

即使您想更改无法通过属性更改的深层样式,您也可以像我上面显示的那样更新默认样式。默认样式请参考Generic.xaml.