Saturday, June 29, 2013

how to insert a image by clicking a button?



private void Button_Click_1(object sender, RoutedEventArgs e)
{
img1.Source = new BitmapImage(new Uri("C:/Users/Sudhir/Documents/VisualStudio2012/Projects/App6/App6/Assets", UriKind.Absolute));
}

this tho code i used but it is not displaying the image ?


img1 is name of the image box i used


No comments:

Post a Comment