Monday, June 4, 2012

Load Image using XAML

To load Image in Metro style app, simple insert <Image...> elements in XAML.

Example:

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Image Source="http://goo.gl/fHDLv"
               Stretch="None"/>
        <TextBlock
            Text="Hello Visual Studio Express 2012 RC for Windows 8"
            FontFamily="Arial"
            FontSize="30"
            Foreground="AntiqueWhite"
            HorizontalAlignment="Center"
            VerticalAlignment="Center"/>
        
    </Grid>


Load Image using XAML



No comments:

Post a Comment