title: PRISM DelegateCommand + Sample Data
body: <p>I have a ViewModel that uses a <code>DelegateCommand</code> property to bind to a <code>Button</code>'s <code>Command</code> property.</p>
  
  <p>The problem is my sample data does not like the <code>DelegateCommand</code> object. It complains that: <code>The type "DelegateCommand" does not include any accessible constructors.</code> Also, the only exposed property is the <code>IsActive</code> property.</p>
  
  <pre><code>&lt;local:MyViewModel xmlns:local="clr-namespace:MyNamespace"
                     xmlns:prism="http://www.codeplex.com/prism"&gt;
      &lt;local:MyViewModel.Age&gt;47&lt;/local:MyViewModel.Age&gt;
      &lt;local:MyViewModel.PurchaseAlcohalCommand&gt;
          &lt;prism:DelegateCommand IsActive="True" /&gt;
      &lt;/local:MyViewModel.PurchaseAlcohalCommand&gt;
  &lt;/local:MyViewModel&gt;
  </code></pre>