每次我将图像设置为网格时,图像都不会出现并且出现黑色背景
private void Clk_Enter(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
ImageBrush myBrush = new ImageBrush();
BitmapImage bi = new BitmapImage();
bi.UriSource = new Uri(@"C:\Users\Administrator\documents\visual studio 2012\Projects\HelloWorld\HelloWorld\Images\Backgrounds\wallpaper-2022265.jpg",UriKind.Absolute);
myBrush.ImageSource = bi;
mygrid.Background = myBrush;
}