The selected answer is also correct for changing the background in C # codes:
ImageBrush brush1 = new ImageBrush(); BitmapImage image = new BitmapImage(new Uri(IMAGE_URL_HERE)); brush1.ImageSource = image; button1.Background = brush1;
Both are correct.
Raptor
source share