我試圖創建一個與普通的Windows Phone 8應用程序欄按鈕完全相同的外觀和感覺的按鈕。我正在使用Coding4Fun RoundButton。我的問題是,當設置ImageSource時,我無法適當地縮放圖像以適合按鈕的內部,這太大了。我使用Windows Phone 8 SDK中的標準應用程序欄圖標圖像,即76x76。我還調整了模仿Windows Phone 7圖標大小爲48x48的大小,但發生的結果相同。如何調整圖像以適合RoundButton?在Coding4Fun RoundButton中設置ImageSource不縮放
XAML
<c4f:RoundButton x:Name="browseRoundButton" Click="Browse_Click"/>
XAML.CS
if (Settings.LightTheme.Value)
browseRoundButton.ImageSource = new BitmapImage(new Uri("/Assets/Icons/feature.search.light.png", UriKind.Relative));
else
browseRoundButton.ImageSource = new BitmapImage(new Uri("/Assets/Icons/feature.search.dark.png", UriKind.Relative));
編輯*在引用來源,如http://www.geekchamp.com/articles/wp7-roundtogglebutton-and-roundbutton-in-depth和http://coding4fun.codeplex.com/discussions?searchText=roundbutton我似乎無法找到任何解決方案。