2012-04-03 34 views

cevap

12

Kullanım ImageBrush Canvas.Background özelliğini ayarlamak için

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