问题
I'm using a rating control (from wpf toolkit) in my application. Is there any way I can scale this control? The rating stars are too big for my application..
I tried setting the height or width but that just cuts the stars but doens't resize them:
Rating ratingControl = new Rating();
ratingControl .ItemsSource = ratingItems;
ratingControl.Width = 50;
ratingControl.Height = 10;
// --> this doesn't change the size of the stars
Greets Daan
回答1:
i dont know the rating control, but if you wanna scale something in wpf you can simply use ScaleTransform
<Rating>
<Rating.LayoutTransform>
<ScaleTransform ScaleX="0.8" ScaleY="0.8"></ScaleTransform>
</Rating.LayoutTransform>
</Rating>
来源:https://stackoverflow.com/questions/9312934/wpf-toolkit-rating-size