Try this:
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid x:Name="CanvasLayout"
VerticalAlignment="Center">
<Border Background="Red" BorderBrush="Yellow" BorderThickness="3" Margin="0" >
<Image x:Name="ImgChosenPhoto" />
</Border>
</Grid>
</Grid>
I changed Canvas
to Grid
and also removed both the Stretch
and Canvas.ZIndex
properties on the image.