Skip to content

Instantly share code, notes, and snippets.

@tianhonghui
Created October 16, 2013 02:09
Show Gist options
  • Save tianhonghui/7001593 to your computer and use it in GitHub Desktop.
Save tianhonghui/7001593 to your computer and use it in GitHub Desktop.
Change WPToolkit rating control color
<Style x:Key="RatingStyle" TargetType="toolkit:Rating">
<Setter Property="AllowHalfItemIncrement" Value="True" />
<Setter Property="Width" Value="100" />
<Setter Property="Height" Value="20" />
<Setter Property="FilledItemStyle">
<Setter.Value>
<Style TargetType="toolkit:RatingItem">
<Setter Property="Background"
Value="#FF9900" />
</Style>
</Setter.Value>
</Setter>
<Setter Property="UnfilledItemStyle">
<Setter.Value>
<Style TargetType="toolkit:RatingItem">
<Setter Property="Background"
Value="#E0E0E0" />
</Style>
</Setter.Value>
</Setter>
</Style>
@lojismith
Copy link

heyyy the post made my life easy. can you please help me more to create to rating templates for my requirements. The image (http://screencast.com/t/MapUElp8) contains 2 rating controls for place rating and its average price. Please help me creating the templates. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment