0
我試圖在C#中的可視圖像陣列的Windows Phone 7 我做的:Windows Phone中創建圖像陣列7
Image[] stone = new Image[100];
public Game() //constructor
{
InitializeComponent();
stone[0] = new Image();
BitmapImage bi = new BitmapImage();
bi.SetSource(Application.GetResourceStream(new Uri(@"notselected.png", UriKind.Relative)).Stream);
stone[0].Source = bi;
stone[0].Width = 200;
stone[0].Height = 200;
stone[0].Opacity = 1.0;
}
它編譯,但它並沒有顯示出圖像。我該怎麼辦?
你需要把它放在UI中。 – SLaks 2011-12-19 22:13:26