title: WPF XAML Changing Image opacity on IsEnabled state
body: <p>I would like to have the image to have an opacity of .50 when the IsEnabled is false. I have been looking at multiple examples but still I am not able to grasp how to make it work.</p>
  
  <p>Here is the full XAML of my custom control. Any help would be deeply appreciated.</p>
  
  <pre><code>&lt;UserControl
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
   mc:Ignorable="d"
   x:Class="test.StopButtonControl"
   x:Name="UserControl"
   d:DesignWidth="85" d:DesignHeight="85"&gt;
  
      &lt;Grid x:Name="LayoutRoot"&gt;
          &lt;Image x:Name="StopButtonUI" Source="Images/stop.png" Stretch="Fill" MouseUp="StopButtonClick"/&gt;  
      &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>