简体   繁体   中英

Ways to implement large settings dialog with WPF and MVVM

I am building an extensible WPF + MVVM application that will possibly have a significant number of user settings (from both core of the application and plugins). From my previous experience I can tell that managing options dialogs is pain when the application grows. Are there any best practices or design patterns that I could follow? How other applications like Visual Studio implement options dialogs with large number of categories and settings? Are these dialogs generated at runtime?

Thanks!

I have had a similar issue in the past, and went for the PropertyGrid in the Extended WPF Toolkit .

This lets you bind the grid to an object, containing all of your configurable properties and will auto-populate the grid based on those properties. You can provide templates for custom editors too.

从包含很少项目的对话框开始,因此稍后更容易添加更多项目,而不需要用户搜索更改的位置(甚至在其他分割的对话框中找到它)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM