title: How to control roles/permissions in XAML with enumerators
body: <p>The problem is that I have permissions and not roles.</p>
  
  <p>I have database driven permissions and I get them for each user via logon in the Silverlight application and fill them into a <code>List</code>. I also have an enumerator for the C# code.</p>
  
  <p>Anyways I do not wish to talk about why I am not using roles etc.</p>
  
  <p>I want to type my permission into XAML elements and set Visibility and IsEnabled on them.</p>
  
  <p>Like this:</p>
  
  <pre><code>&lt;Button IsEnabled="{Binding IsAdmin}" /&gt;
  </code></pre>