title: Add style to border (parent element) when checkbox is selected WPF
body: <p>I'm trying to add differences style to the border when the radio button is checked and not checked. Is there anyway to do this in xaml with binding?</p>
  <pre><code>&lt;Border
   Width=&quot;672&quot;
   Height=&quot;122&quot;
   HorizontalAlignment=&quot;Left&quot;&gt;
   &lt;RadioButton
    Margin=&quot;0,0,0,8&quot;
    HorizontalAlignment=&quot;Left&quot;
    VerticalAlignment=&quot;Top&quot;/&gt;
  &lt;/Border&gt;
  
  </code></pre>
  <p>This is what i'm doing now but it doesnt work for me yet</p>
  <pre><code>&lt;Border.Style&gt;
   &lt;Style TargetType=&quot;{x:Type Border}&quot;&gt;
    &lt;Style.Triggers&gt;
     &lt;DataTrigger Binding=&quot;{Binding RelativeSource={RelativeSource Self}, Path=Child.Children[0].IsChecked}&quot; Value=&quot;true&quot;&gt;
       &lt;Setter Property=&quot;Background&quot; Value=&quot;red&quot; /&gt;
     &lt;/DataTrigger&gt;
    &lt;/Style.Triggers&gt;
   &lt;/Style&gt;
  &lt;/Border.Style&gt;
  </code></pre>