0
我在我的应用程序中使用评级控制(来自wpf工具包)。有什么办法可以扩展这种控制吗?该评级明星是太大了,我的应用程序..wpf工具箱评级大小
我尝试设置高度或宽度,但只是削减星星,但好好尝试一下调整它们的大小:
Rating ratingControl = new Rating();
ratingControl .ItemsSource = ratingItems;
ratingControl.Width = 50;
ratingControl.Height = 10;
// --> this doesn't change the size of the stars
电贺大安
我没没想到那个!谢谢你的答案。我将它翻译为:ratingControl.LayoutTransform = new ScaleTransform(0.5,0.5);它像一个魅力工作。 – Daan 2012-02-16 15:17:23
在Windows Phone上尝试此操作时,似乎没有出现LayoutTransform;在这种情况下,我使用了上面的代码,但使用了RenderTransform。 – 2013-10-01 00:09:38
这是一个辉煌的,常被忽视的解决方案。 – TimothyP 2015-04-12 15:36:52