I want to use an ImageBrush
to use in the Rectangle.Fill
. The file is a .PNG. It comes out looking like it is sitting on a little gray pad. The ImageBrush
is returned from a converter with something like this:
BitmapImage image = new BitmapImage(new Uri(fileName));
ImageBrush imageBrush = new ImageBrush();
imageBrush.ImageSource = image;