上按一下按鈕標準藍色背景我使用下面的代碼顯示了許多按鈕在我的滾動型刪除Windows Phone的8 C#
foreach (RingModel ring in app.rings)
{
Button btn = new Button();
btn.BorderThickness = new Thickness(0, 0, 0, 0);
Image img = new Image();
img.Width = 100;
img.Height = 100;
img.Margin = new Thickness(5, 0, 0, 0);
Uri myUri = new Uri(ring.ringThumbNailImagePath, UriKind.Absolute);
BitmapImage bmi = new BitmapImage();
bmi.CreateOptions = BitmapCreateOptions.None;
bmi.UriSource = myUri;
img.Source = bmi;
btn.Content = img;
btn.Tag = i;
btn.Click += Ring_Click;
scrollStackPanel.Children.Add(btn);
i++;
}
然而這些按鈕是給上點擊藍色的背景。我想讓它透明。我怎樣才能使它成爲可能。
完美,鏈接很棒 – 2014-11-25 15:10:19