Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Windows.UI.Xaml.Controls;
- using Windows.UI.Xaml.Media.Imaging;
- using Windows.UI.Xaml.Navigation;
- // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=391641
- namespace LumiaTiling
- {
- /// <summary>
- /// An empty page that can be used on its own or navigated to within a Frame.
- /// </summary>
- public sealed partial class MainPage : Page
- {
- public MainPage()
- {
- this.InitializeComponent();
- this.NavigationCacheMode = NavigationCacheMode.Required;
- }
- /// <summary>
- /// Invoked when this page is about to be displayed in a Frame.
- /// </summary>
- /// <param name="e">Event data that describes how this page was reached.
- /// This parameter is typically used to configure the page.</param>
- async protected override void OnNavigatedTo(NavigationEventArgs e)
- {
- WriteableBitmap wbmp = await Blender.GenerateBackground();
- imageHolder.Source = wbmp;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement