24

I just started with WPF. Moved from Window Form.

Where do those openDialog, saveDialog gone? And a bunch of stuff.

Athiwat Chunlakhan
  • 7,589
  • 14
  • 44
  • 72

1 Answers1

27

Look in Microsoft.Win32 namespace

OpenFileDialog openDialog = new OpenFileDialog();
if (openDialog.ShowDialog().Value)
{
      ..........
}

And the same for SaveFileDialog

SaveFileDialog saveDialog = new SaveFileDialog();
if (saveDialog.ShowDialog().Value)
{
      ..........
}
RyanS
  • 3,964
  • 3
  • 23
  • 37
Arsen Mkrtchyan
  • 49,896
  • 32
  • 148
  • 184