title: How can I set ComboboxItem isEnable property with binding?
body: <p>I have a model view and a property called isEnable and I would like to set the comboboxItem IsEnable property with binding to property created in the model view , the problem is that I have datatemplate created inside a combobox , so it's not a simple Combobox , this is my code:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;ComboBox x:Name=&quot;ComboBoxUsers&quot; ItemsSource=&quot;{Binding Users}&quot; FontFamily=&quot;Arial&quot; FontSize=&quot;11&quot; Grid.Row=&quot;3&quot; Height=&quot;30&quot;  Margin=&quot;10,5,5,5&quot;&gt;
  &lt;ComboBox.ItemTemplate&gt;
      &lt;DataTemplate&gt;
          &lt;StackPanel Orientation=&quot;Horizontal&quot; &gt;
              &lt;Image /&gt;
              &lt;TextBlock /&gt;
          &lt;/StackPanel&gt;
          &lt;DataTemplate.Resources&gt;
              &lt;Style TargetType=&quot;ComboBoxItem&quot;&gt;
                  &lt;Setter Property=&quot;IsEnable&quot; Value=&quot;{Binding IsEnable}&quot;/&gt;
              &lt;/Style&gt;
          &lt;/DataTemplate.Resources&gt;
      &lt;/DataTemplate&gt;
  &lt;/ComboBox.ItemTemplate&gt;
  </code></pre>
  <p>Simple Class of Users:</p>
  <pre class="lang-cs prettyprint-override"><code>public class Users 
  {
  
      public string Name { get; set; }
  
      public bool IsEnable { get; set; }
  
      public Users()
      {
  
      }
  }
  </code></pre>
  <p>How can I achieve that?</p>