2012-04-03 174 views

回答

12

使用圖像刷設置Canvas.Background財產

ImageBrush ib = new ImageBrush(); 
ib.ImageSource = new BitmapImage(new Uri(@"sampleImages\berries.jpg", UriKind.Relative)); 
mycanvas.Background = ib;