title: LED (Red/Green) in WPF bound to a function
body: <p>I want to add a Red/Green LED to my WPF UI. My XAML file and the class details are given below.</p>
  
  <pre><code>&lt;ListView Grid.Column="1" Margin="10" Name="FVDataBinding"&gt;
      &lt;ListView.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;WrapPanel&gt;
                  &lt;TextBlock Text="  Status: " /&gt;
                  &lt;TextBlock Text="{Binding Status}" FontWeight="Bold" /&gt;
                  &lt;Ellipse x:Name="StatusEllipse" Fill="#388E3C" Height="20" Stroke="Black" Width="20"/&gt;
              &lt;/WrapPanel&gt;
          &lt;/DataTemplate&gt;
      &lt;/ListView.ItemTemplate&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>My class implementation is below</p>
  
  <pre><code>public class MyStatus
  {
       private string m_Name;
       private bool m_status;
  
       public bool Status
       {
              get { return m_status; }
              set { m_status = value; }
       }
  }
  </code></pre>
  
  <p>How do I link my <code>StatusEclipse</code> to the function status where <code>true</code> for <code>Green</code> and <code>false</code> for <code>Red</code></p>