title: Binding Style Setter to a public property?
body: <p>I want to bind the <code>Fill</code> property in a style to a public property, I've used the following way but it seems like it doesn't work. <br /></p>
  
  <pre><code>public SevenSegmentControl()
  {
      InitializeComponent();
      SevenSegmentColor = Color.FromRgb(251, 23, 23);
  }
  
  public Color SevenSegmentColor { get; set; }
  </code></pre>
  
  
  
  <pre><code>&lt;Style x:Key="RectangleStyle1" TargetType="{x:Type Rectangle}"&gt;
      &lt;Setter Property="Fill" Value="{Binding Path=SevenSegmentColor, Mode=TwoWay}"/&gt;
      &lt;Setter Property="RadiusX" Value="4"/&gt;
      &lt;Setter Property="RadiusY" Value="4"/&gt;
      &lt;Setter Property="StrokeThickness" Value="0"/&gt;
      &lt;Setter Property="RenderTransformOrigin" Value="0.5,0.5"/&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>How can I do it?</p>