I've an Image Control in a WPF Form. When there's no image loaded. I want to make it dark gray but all of the controls have the Background exept the Image control.
Does anybody knows how can I set a background to the image control in the XAML?
You can just surround your image with border:
<Border Height="300" Width="300" Background="Gray">
<Image Stretch="Fill" />
</Border>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With