title: WPF change color of Rectangle Fill in code
body: <p>Hey all I am new at WPF's and am in need of changing the color of a Rectangle fill in a WPF.</p>
  
  <p>Currently I have this:</p>
  
  <pre><code>&lt;Rectangle Fill="{Binding aColor}" RadiusY="5" RadiusX="5"&gt;
      &lt;Rectangle.Effect&gt;
          &lt;DropShadowEffect ShadowDepth="0"/&gt;
      &lt;/Rectangle.Effect&gt;
  &lt;/Rectangle&gt;
  </code></pre>
  
  <p>I am not sure how to go about using that binding above within code.</p>
  
  <p>Any help would be great!</p>