SilverlightShow: A RoleManager to apply roles declaratively to user interface Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) RE: A RoleManager to apply roles declaratively to user interface <p>Very good article - I can see how this could come in handy. Are you concerned at all with this mixing Business type logic in the UI? I'm know expert on this but it seems like that is what is occurring here. </p> <p>At any rate thank you for writing this tutorial I know it takes some serious work. I am currently writing some VB.NET tutorials and know it takes time. For instance I just wrote a simple one on using the <a href="http://www.withvb.net/tutorials/button-label-textbox-common-controls">Button, Textbox, and Label in VB.NET</a>. This was not nearly as complex as what you are doing here but it still takes some serious effort. If you have an advice on it I'd love to get your feedback. Cheers!</p> http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx#comment6230 Ivan S. http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx Mon, 30 May 2011 01:52:10 GMT RE: A RoleManager to apply roles declaratively to user interface Can you provide me schema or whole membership database also ? http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx#comment3985 Dhurv http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx Tue, 13 Jul 2010 10:55:11 GMT RE: A RoleManager to apply roles declaratively to user interface <p>Very good work!</p> <p>I am facing an issue with this. I am using windows authentication and athorization (roles are coming from security group memberships in AD). Since I do not need my user to click "Login", it seems that the rolemanager does his job before the user is authenticated and i have no clue how to fix this.</p> <p>My toughs are that the rolemanager s/b invoked at the app.xaml level in order to work becaquse this is the only area of the app were I see the webcontext.current.user transition.</p> <p>Any clue?</p> http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx#comment3360 Yvan http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx Wed, 07 Apr 2010 15:20:13 GMT RE: A RoleManager to apply roles declaratively to user interface @Andrea - Looks like they missed it, thanks for the link. http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx#comment3344 Fallon http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx Fri, 02 Apr 2010 18:01:51 GMT RE: A RoleManager to apply roles declaratively to user interface <p>@andrejt I was not aware of your article but I'm happy we had similar approach. I agree with you hoping WCF Ria Services solves this problem in the future releases.</p> <p>@Fallon. uhm, the article should have an attached example... I ask the publisher, for now you can download the source from here<br /> <a href="http://cid-455ec9c8d730ce7c.skydrive.live.com/self.aspx/FORUMS/A%20RoleManager%20to%20apply%20roles%20declaratively%20to%20user%20interface.zip">http://cid-455ec9c8d730ce7c.skydrive.live.com/self.aspx/FORUMS/A%20RoleManager%20to%20apply%20roles%20declaratively%20to%20user%20interface.zip</a></p> http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx#comment3337 Andrea Boschin http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx Wed, 31 Mar 2010 23:02:29 GMT RE: A RoleManager to apply roles declaratively to user interface @andrejt - Yes, and your article has source code as well http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx#comment3336 Fallon http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx Wed, 31 Mar 2010 21:51:59 GMT RE: A RoleManager to apply roles declaratively to user interface <p>Nice article! Reminded me of my approach from a year ago - I used a mixed approach: an attached "DemandRole" property to specify the roles that are allowed to "see" the element, and a LoginView control, which allows specifying a different "view" for different roles. <a href="http://tozon.info/blogs/andrej/post/2009/03/06/Declarative-Role-based-e2809csecuritye2809d-for-Silverlight-Xaml-elements.aspx">http://tozon.info/blogs/andrej/post/2009/03/06/Declarative-Role-based-e2809csecuritye2809d-for-Silverlight-Xaml-elements.aspx</a></p> <p>Would love something like this shipped with the WCF RIA Services though...</p> http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx#comment3335 andrejt http://www.silverlightshow.net/items/A-RoleManager-to-apply-roles-declaratively-to-user-interface.aspx Wed, 31 Mar 2010 15:30:00 GMT