title: WPF Styling child control based on parent command enabled
body: <p>I just want to make the <code>Label</code> inside my <code>Button</code> template look disabled. Scoured the Internet and this seems like a simple task, what I'm doing wrong?</p>
  
  <pre><code>&lt;Button Command="{Binding CommandProcess}"&gt;
      &lt;StackPanel Orientation="Horizontal"&gt;
          &lt;Image Source="Images\Cloud-Upload.png"/&gt;
  
          &lt;Label Content="Upload and Process" Foreground="White" VerticalAlignment="Center" FontWeight="Bold" FontSize="18.667" Margin="5,0,0,0"&gt;
              &lt;Label.Style&gt;
                  &lt;Style TargetType="Label"&gt;
                      &lt;Style.Triggers&gt;
                          &lt;DataTrigger Binding="{Binding Path=IsEnabled, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" Value="False"&gt;
                              &lt;Setter Property="Foreground" Value="Gray"&gt;&lt;/Setter&gt;
                              &lt;Setter Property="ToolTip" Value="Please select a record type for each file selected for processing"&gt;&lt;/Setter&gt;
                          &lt;/DataTrigger&gt;
                      &lt;/Style.Triggers&gt;
                  &lt;/Style&gt;
              &lt;/Label.Style&gt;
          &lt;/Label&gt;
      &lt;/StackPanel&gt;
  &lt;/Button&gt;
  </code></pre>
  
  <p><code>EDIT:</code> (<em>full code after using the answer by RV1987</em>)</p>
  
  <pre><code>&lt;Button Command="{Binding CommandProcess}" x:Name="ProcessButton"&gt;
      &lt;StackPanel Orientation="Horizontal"&gt;
          &lt;Image Source="Images\Cloud-Upload.png"/&gt;
  
          &lt;Label Content="Upload and Process" VerticalAlignment="Center" FontWeight="Bold" FontSize="18.667" Margin="5,0,0,0"&gt;
              &lt;Label.Style&gt;
                  &lt;Style TargetType="Label"&gt;
                      &lt;Style.Triggers&gt;
                          &lt;DataTrigger Binding="{Binding Path=IsEnabled, ElementName=ProcessButton}" Value="True"&gt;
                              &lt;Setter Property="Foreground" Value="White"&gt;&lt;/Setter&gt;
                          &lt;/DataTrigger&gt;
  
                          &lt;DataTrigger Binding="{Binding Path=IsEnabled, ElementName=ProcessButton}" Value="False"&gt;
                              &lt;Setter Property="Foreground" Value="Gray"&gt;&lt;/Setter&gt;
                              &lt;Setter Property="ToolTip" Value="Please select a record type for each file selected for processing"&gt;&lt;/Setter&gt;
                          &lt;/DataTrigger&gt;
                      &lt;/Style.Triggers&gt;
                  &lt;/Style&gt;
              &lt;/Label.Style&gt;
          &lt;/Label&gt;
      &lt;/StackPanel&gt;
  &lt;/Button&gt;
  </code></pre>