In your UserControl, make your Dependency resource a Settings collection (maybe rename your enum to Setting ) and then you can populate it in XAML with
<my:Control> <my:Control.Settings> <x:Static Member="my:Setting.Setting1" /> <x:Static Member="my:Setting.Setting2" /> </my:Control.Settings> </my:Control>
I have not tested this :)
If you want to stick to a comma-separated list, then make your UserControl DP settings a string, and then change the string in the property handler and use Enum.Parse for each result to save the settings as Setting enum type.
source share