title: Setting the background of my image in WPF
body: <p>Im having a grid in whre the user can specify an image to be shown, and its alignment. If the user chooses a small image and aligns it bottom -right, i want to provide the user with an option to assign a background color to fill in the rest, eg. pink/black/white. When the user now chooeses a small image the background is always white and i cant seem to get it right at runtime:</p>
  
  <pre><code>byte r = (byte)Convert.ToInt32(backcolorR);
              byte g = (byte)Convert.ToInt32(backcolorG);
              byte b = (byte)Convert.ToInt32(backcolorB);
              ((Grid)container).Background = new SolidColorBrush(Color.FromArgb(0, r, g, b));
  </code></pre>
  
  <p>This isnt working, its like, the image fille the entire grid and i should set the background color on the image instead... is this possible?</p>