title: Enable ComboBox when specifis value selected in ListBox in XAML only
body: <p>I've got a bunch of listboxes that are data binded(int list) in the constructor of the window. I want to enable specific combobox when specific item is selected in the listbox. I want it in XAML only. Here's what I got:</p>
  <pre><code>&lt;ComboBox Name=&quot;XsciezkiCombo&quot; IsEnabled=&quot;False&quot; Width=&quot;70&quot; Height=&quot;20&quot; VerticalAlignment=&quot;Center&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;15,120,0,0&quot;&gt;
              &lt;ComboBox.Style&gt;
                  &lt;Style TargetType=&quot;ComboBox&quot;&gt;
                      &lt;Style.Triggers&gt;
                          &lt;DataTrigger Binding=&quot;{Binding ElementName=XLwarstwy, Path=SelectedItem}&quot; Value=&quot;1&quot;&gt;
                              &lt;Setter Property=&quot;IsEnabled&quot; Value=&quot;True&quot;/&gt;
                          &lt;/DataTrigger&gt;
                      &lt;/Style.Triggers&gt;
                  &lt;/Style&gt;
              &lt;/ComboBox.Style&gt;
              &lt;ComboBoxItem Content=&quot;GÓRA&quot;&gt;&lt;/ComboBoxItem&gt;
              &lt;ComboBoxItem Content=&quot;DÓŁ&quot;&gt;&lt;/ComboBoxItem&gt;
          &lt;/ComboBox&gt;
  </code></pre>
  <p>&quot;1&quot; is the int in the listbox not the index</p>