I have a user admin tool that edits permissions for users. I have the admin select checkboxes at the application.
The permissions can be different from server to server. Right now I just have static checkboxes and its real nasty.
I’m trying to figure out how to create some kind of dynamic scheme for the checkboxes and track when they have been checked / unchecked.
When the user selects the checkboxes I could just search through the object and make the changes to the database.
Well at least that’s the way I have thought of it so far. Does anyone have any input or maybe an example of something like this in action ?
Thanks in Advance!
Just use an
ItemsControl, bind itsItemsSourceto a collection of VMs which represent a permission. In theItemTemplateyou can create aCheckBoxwhoseIsCheckedis bound to a property on your item VM which represents the state of that permission.You then can get all the states from the source collection’s objects.