timheuer / callisto

A control toolkit for Windows 8 XAML applications. Contains some UI controls to make it easier to create Windows UI style apps for the Windows Store in accordance with Windows UI guidelines.
http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx
Other
338 stars 108 forks source link

How to adjust the width between rating control stars? #228

Open naweed opened 11 years ago

naweed commented 11 years ago

Hi, I am using the Rating Control, and have set the ItemCount to 5, and FontSize to 10. There is too much space between the stars. How can I reduce this.

Thanks.

timheuer commented 11 years ago

Good feature request. Right now you'd have to change the RatingItem template and modify the Margin which is currently 6px on left/right.

Cynthion commented 10 years ago

Hi! How can that be done in XAML? Setting a RatingItem as the ItemTemplate of the Rating control and then setting the width? This didn't work ;-)

Cynthion commented 10 years ago

Found it myself:

                     <callisto:Rating>
                        <callisto:Rating.ItemContainerStyle>
                            <Style TargetType="callisto:RatingItem">
                                <Setter Property="Margin" Value="1"/>
                            </Style>
                        </callisto:Rating.ItemContainerStyle>
                    </callisto:Rating>