Using .NET 4, what is the best way to save an app’s window size and position at closing and use these values to start the app’s window next time it is run?
I prefer not to have to touch any kind of registry but don’t know if there is some kind of app.config (similar to web.config for ASP.NET apps) that I can use for Windows Presentation Foundation apps.
Thanks.
Description
Windows Forms
Form_FormClosedForm_LoadSample
More Information
WPF
MainWindow_ClosedMainWindow_LoadedSample
More Information
I have tested both, WinForms and WPF.