如何将图像加载到图像中?我试过了
private void Button_Click_1(object sender, RoutedEventArgs e)
{
string path = "D:/baby.jpg";
BitmapImage bitmap = new BitmapImage(new Uri(path, UriKind.Relative));
imagebox.Source = bitmap;
}
但是当我点击按钮时,什么也没发生。我做错了什么?