I have a StackPanel containing five images and I want to put a black border around each image.
StackPanel
The XAML I have at the moment is:
The accepted answer will not work because of the problem described here https://wpf.2000things.com/2011/04/17/279-adding-a-border-around-an-image-control/
I solved it this way.