title: How can I generate WPF gradient using only one color?
body: <p>I have a lot of custom control on which various styles applied in my project. For example, I have grid control inside my custom control and I set its background color using dependency property of the custom control like this:</p>
  
  <pre><code>&lt;!--MainWindow.xaml--&gt;
  &lt;CustomNS:MyCustomControl BackColor="#FF00a6ac"&gt;&lt;CustomNS:MyCustomControl/&gt;
  
  &lt;!--Generic.xaml--&gt;
  &lt;Grid Background={Binding BackColor}&gt;
  </code></pre>
  
  <p>What I want to do is to make gradient from given color in my dependency property and to apply that gradient on the control. Second color should be generated according to the first color. Namely, second color can be bit darker than the first one.
   To illustrate this, check the image below:</p>
  
  <p><img src="https://i.stack.imgur.com/QxCy4.png" alt="enter image description here"></p>
  
  <p>How can I provide little darker color from the given hex color in the property?</p>