- Back to Home »
- Windows store apps C#/XAML »
- Windows store apps XAML C# Using common image as background image in all pages
Posted by :
Sudhir Chekuri
Monday, 16 June 2014
Code in resource dictionary to mention an image as source to use in all pages as background image
<!--Background image for all pages-->
<ImageBrush x:Key="BgImage" ImageSource="Images/InnerBg.png"></ImageBrush>
Code in xaml page to add it as background image
<Grid x:Name="MainGrid" Background="{StaticResource BgImage}">
</Grid>