title: WPF C# Bitmap resource as Imagesource for ImageBrush
body: <p>I have the bitmap resource Properties.Resources.part1</p>
  
  <pre><code>internal static System.Drawing.Bitmap part1 
  {
      get 
      {
          object obj = ResourceManager.GetObject("part1", resourceCulture);
          return ((System.Drawing.Bitmap)(obj));
      }
  }
  </code></pre>
  
  <p>How to set this resource to Rectangle.Fill property? </p>