I recently worked with a lot of bindings to my configuration settings in XAML. Storing column widths / sizes / window positions, etc. So I was wondering if there is an easy way to create and bind the "setup / configuration" values ββto XAML?
Now I just create a parameter in the project, inserting the bindable property into the XAML DataContext and from there. But my account of settings gets pretty crazy, and managing them becomes painful (boring, repetitive and annoying).
In an ideal world, I need a system where I can do something like this:
<Window State={Binding {Settings Name="MyWindowState", DefaultValue="Normal"}}/>
If the "MyWindowState" parameter does not exist, it will be created automatically and stored somewhere. And if the MyWindowState parameter changes, all the bindings that use it will also be notified and updated accordingly. And DefaultValue will be used if the search for settings failed.
Is there something similar to this already or can be achieved using standard WPF XAML?
I plan to work on something that can do this, but if a proven solution already exists, I would like to at least look at it / hear it.
From what I understand Framework Telerik persistance , you can do something like this, with the exception of the control for control (there are no global "settings" with which I can bind), at least at first glance.
xvpower
source share