i have a function
private void button_Click(object sender, RoutedEventArgs e)
{
random();
}
private void random()
{
//other code
ImageBrush background = new ImageBrush();
background.ImageSource = new System.Windows.Media.Imaging.BitmapImage(new Uri(actorUri, UriKind.Relative));
//other code
}
i want to access that background variable in button click function
please tell me how to access that…
EDIT:
OR