title: Cannot use DialogResult
body: <p>I tried to use <code>DialogResult</code> to check an <code>Messagebox</code>'s <em>YesNoCancel</em>. I'm using the following code which I don't see any problem with:</p>
  
  <pre><code>DialogResult dlgResult = MessageBox.Show(
     "Save changes before closing?", 
     "Warning", 
     MessageBoxButton.YesNoCancel, 
     MessageBoxImage.Question);
  </code></pre>
  
  <p>But <em>Visual Studio</em> throws me error saying </p>
  
  <blockquote>
    <p>'System.Windows.Window.DialogResult'
    is a 'property' but is used like a
    'type'</p>
  </blockquote>