In windows forms there was an option in the properties section of a form to establish a binding between an application setting and the windows form.
Typically I would end up with a setting called frmMyFormName_Location this was then automagically updated as required and all I needed to do was call the Settings.Save() method on application exit to persist location.
Could someone please provide an example of the same thing in WPF as I have been unable to work out how to accomplish this?