238 Views
How to create a change settings page on which various sections can be rendered based on which plugins are loaded in the application. To do this, I quickly hacked together a SettingsViewModel, to which can be add all section view models no matter what type they are. Read article to see example code.
2 comments
dpeterson
9/9/2011 8:40:49 AM
Sometimes the simplest solution is the best, you could even decide which views to render or not render based on your settings here (rather than just looping through and rendering each). I could see this being very useful in a situation where users could control what is on the screen (show me a chat module here, a latest stories module here, etc).
rcash
9/9/2011 12:37:58 PM
Good points. I could see how that would work especially with the chat module. You're right. Simpler ideas can revolutionize how we operate.