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 this, but how do you prompt a user with a "Save As" dialog box? The file itself will be a simple text file.
C# – How to show a Save As dialog in WPF
csavewpf
Related Topic
- C# – How to enumerate an enum
- C# – How to save application settings in a Windows Forms application
- C# – How to get a user’s client IP address in ASP.NET
- C# – How to generate a random int number
- WPF: Create a dialog / prompt
- Wpf – How to perform Single click checkbox selection in WPF DataGrid
- Node.js – the difference between –save and –save-dev
Best Answer
Both answers thus far link to the Silverlight
SaveFileDialog
class; the WPF variant is quite a bit different and differing namespace.