WPF工具包等级大小 [英] wpf toolkit rating size
本文介绍了WPF工具包等级大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用评级控制(从WPF工具包),在我的应用程序。有没有什么办法可以扩展这种控制?该评级明星是太大了,我的应用程序。
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
推荐答案
我不知道该等级控制,但如果你可以简单地使用WPF ScaleTransform想规模的东西
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>
这篇关于WPF工具包等级大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文