私は機能を持っています
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
}
ボタンクリック機能でその背景変数にアクセスしたいのですが、アクセス方法を教えてください...