title: Enable text box when combobox item is selected
body: <p>I want to enable the text box when comboboxitem is selected . note the combobox item is not defined but rather i have used item source in combox to get the list of combo box items.i want to change the property of a text box when the combox item is selected . </p>
  
  <p>(Comment pasted to original question)</p>
  
  <pre><code>&lt;DataTrigger Binding="{Binding ElementName=cmbInstrumentType,
                Path=SelectedIndex}" 
                Value="1" &gt;
      &lt;Setter Property="IsEnabled" Value="true" /&gt;
      &lt;Setter Property="Background" Value="White" /&gt; 
   &lt;/DataTrigger&gt;
  </code></pre>
  
  <p>I want it in XAML only not in code behind. I dont want to repeat that for every index value – </p>