title: WPF - C# DialogResult.OK in a window
body: <p>I hava a wpf application when I am using a page the DialogResult.OK works fine but I just notice that  when  I am in a window it doesn't allow this property</p>
  
  <p>as the code  bellow </p>
  
  <pre><code>using System.Windows.Forms;
  public partial class preDownloadXml : Window 
  {
  
      private void CallTheDialog(){
         SaveFileDialog saveFileDialog = SaveFileDialog();
            if (saveFileDialog.ShowDialog() == DialogResult.OK){
               // to do
            }
      }
  }
  </code></pre>
  
  <p>What is the correct way  to  get  the Dialog Result in a Window ?</p>