title: Open file dialog and select a file using WPF controls and C#
body: <p>I have a <code>TextBox</code> named <code>textbox1</code> and a <code>Button</code> named <code>button1</code>.
  When I click on <code>button1</code> I want to browse my files to search only for image files (type jpg, png, bmp...).
  And when I select an image file and click Ok in the file dialog I want the file directory to be written in the <code>textbox1.text</code> like this:</p>
  
  <pre><code>textbox1.Text = "C:\myfolder\myimage.jpg"
  </code></pre>