Code: Select all
<Page
x:Class="ImageStretchTestPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<Grid>
<Border BorderThickness="2" BorderBrush="red" HorizontalAlignment="Center" VerticalAlignment="Center">
<Image Source="http://www.cshtml5.com/samples/showcase/app-cshtml5/res/CSHTML5.Samples.Showcase/other/planets/earth.png"
Width="300"
Height="100"
Stretch="Fill"
/>
</Border>
</Grid>
</Page>
The simulator is working as expected.
firefox does not change and there is a margin below.
chrome does not change.
Is there any good solution?
(Actually I wanted the image to be half the size, but it didn't work)