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