title: How can I create a button which Rectangle object filled with a color in WPF with C#?
body: <p>How can I create Button control which contains a Rectangle object filled with the color represented by the Colors.Aqua?</p>
  
  <p>I have a rectangle </p>
  
  <pre><code>Rectangle rectangle = new Rectangle();
  rectangle.Fill = new SolidColorBrush(Colors.Aqua);
  rectangle.Width = 100;
  rectangle.Height = 50;
  </code></pre>
  
  <p>and I have a button:</p>
  
  <pre><code>Button button = new Button();
  button.Content = "Button";
  </code></pre>
  
  <p>I can't figure out how to combine these things.</p>
  
  <p>Any ideas?</p>