Well working on a few WCF RIA Services projects a need for the UI to update based on what roles the current user belongs to came up with each project. To make this easier for all of us working on these projects I created some behaviors that accepts a list of roles and updates the UI accordingly. I decided to include this in an open source library that is available at the associated OpenLight Group Common CodePlex project site. In this article we will discuss the base class used for all of the role based behaviors and look at the RoleBasedEnabledBehavior as an example of how to implement the base class.
I just wanted to post a thank you to all that attended the talk Monday night and ask for any feedback that you might have. That was my first time speaking at the user group and am sure there is a lot of room for improvement. So please feel free to add comments to this article with suggestions on how I can improve or email them to me directly (ian at openlightgroup dot net). Also, I was hoping to provide a quick summary of links to some of the resource I mentioned.