I have a requirement in WPF/C# to click on a button, gather some data and then put it in a text file that the user can download to their machine. I can get the first half of
SaveFileDialog is in the Microsoft.Win32 namespace - might save you the 10 minutes it took me to figure this out.