I am a Silverlight newbie...
I want a page to display elements (button, grid, images) based on the current user security role. Basically, I would like to attach to an element the required security role and have my code being called to decide whether the element will show or not.
Something like (adding an attribute RequiredRole)
<Button RequiredRole="Administrator" x:Name="PushBtn" Content="PushMe"/>
In this case my code will set the Button.visibility to hidden if the user does not have enough security rights.
I could not find anything in the documentation (except of maybe DependentProperties) that could help me achieve something like this.
How can this be done? (If this is at all the right way to think about this problem...)
Thanks.