ImageBrush using local images flashes when initially loading
Posted: 30 Aug 2022, 14:58
I have the following XAML to create a fullscreen background image where ImageSource is a relative path (local):
When this loads it takes a moment and then appears, is there a way to pre-load/tell when the image source is ready to be displayed? This is being used for a fullscreen modal that we want to open once the image is loaded.
Code: Select all
<Rectangle>
<Rectangle.Fill>
<ImageBrush Stretch="UniformToFill" ImageSource="{Binding ElementName=FullscreenModal, Path=ImageSource}" />
</Rectangle.Fill>
</Rectangle>