MVVM- How would I go about propagating settings between my main view-model (and other view-models) a

Posted by Justin on Stack Overflow See other posts from Stack Overflow or by Justin
Published on 2010-04-25T00:10:07Z Indexed on 2010/04/25 0:13 UTC
Read the original article Hit count: 402

Filed under:
|
|
|

I am building a settings dialog for my application and right now all of the settings correspond with settings on the main view-model, but as I add more view's and view-models some may not.

I need to know what the best practice is for loading the current settings into the settings dialog and then saving the settings to thier corresponding view-models if the user clicks okay.

I will not be using the Properties.Settings.Default system to store settings since I want my application to be as portable as possible and this would store user scoped settings in the directory: C:\Users\ username \Local Settings\Application Data\ ApplicationName Instead of in my application's directory.

In case it makes any difference I am using the MVVM Light Toolkit by Laurent Bugnion.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about mvvm