سلام دوستان.من کدهای زیر رو به زبان سی شارپ برای رویداد کلیک سطرهای کنترل گرید نوشتم تاتصویر کنترل image رو عوض کنم. ولی دستورات عمل نمیکنن.کسی میتونه راهنماییم کنه؟
private void R3_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
Image img1 = new Image();
BitmapImage bi3 = new BitmapImage();
bi3.BeginInit();
bi3.UriSource = new Uri("/p/45.jpg", UriKind.Relative);
bi3.EndInit();
img1.Stretch = Stretch.Fill;
img1.Source = bi3;
}