What's a good way to implement something like this? Currently I have some services, all of which implement
IConfigurationService
IConfigurationService
. I create a collection of services and register it as a dependency that
ConfigurationViewModel
ConfigurationViewModel
requires.
ConfigurationView
ConfigurationView
has an
ItemsControl
ItemsControl
that binds to that collection. DI code: https://pastebin.com/FgsA8pC1 And here's what a configuration service looks like: https://pastebin.com/zR3pGBW3 Also, I need some services that can't enable/disable things. Instead, they would perform an irreversible action, so the old methods would no longer be suitable.