Click here to Skip to main content
15,902,938 members

Comments by Brian Risley (Top 2 by date)

Brian Risley 16-Feb-11 17:39pm View    
Our plan is to support the security to a certain extent in the xaml, as we have varying site security needs. We will have standard Xaml, but will have an option to load the Xaml from the database if an override is present. If a site wants to specifically control fields that appear in the Xaml, they will be able to do so. They may also add their own security flags which our logic will not have to know about. Certain tasks and some data may be restricted in the viewmodel by similar flags. Some of these controls aren't just for security information, we have customers who don't use some of our properties and don't want to see them. This way they can set a flag at the highest level in the Xaml override, and not see them or they can even redo the Xaml and remove them. We have no Single customer to design our views for, we have certain ideas and patterns, but the individual customer has the ability to control the fields. With this approach, we don't have to build the Xaml from scratch, just modify an existing template/base style. Our code won't be changed because one customer has to have field x removed or moved on a view.
Brian
Brian Risley 16-Feb-11 16:34pm View    
Problem is Viewmodel will not know what the security control handled by converter in Xaml has done.
I need either some sort of Xaml based trigger or an extension to the tabitem class that can detect the change and pass the tabcontrol and the current tab in to some processing logic that can output the destination tab and have it switched there. The security uses a lookup based on the current user to see if they have the proper right to a given key.

Brian