<Button Name = "Browse" Click = "Browse_CLick"/> // Specify width and height for button and image viewer
<StackPanel>
<Image Name = "ImageViewer1"/>
</StackPanel>
C#
private void Browse_Click(object sender, RoutedEventArgs e)
{
System.Windows.Forms.OpenFileDialog ofd = new System.Windows.Forms.OpenFileDialog();
ofd.Filter = "Image files (*.png;*.jpeg;*.jpg)|*.png;*.jpeg;*.jpg";
if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
ImageViewer1.Source = odf.FileName;
}
}