I have the following XAML that displays the cover for a book using a URI:
<Rectangle.Fill>
<ImageBrush ImageSource="{Binding CoverUrl}" />
</Rectangle.Fill>
However, the image that I would like to use is not located on the disk anywhere or is not accessible via the URI; it comes from the binary I am parsing into BitmapImage.
When I create an object BitmapImagethrough the code, the resulting objects BaseUriand UriSourceare null. How can I force a ImageBrushuse BitmapImagethat is in memory instead of reading it from a URI?
source
share