Advertisement
Guest User

MainPage.xaml

a guest
Jul 28th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. using Windows.UI.Xaml.Controls;
  2. using Windows.UI.Xaml.Media.Imaging;
  3. using Windows.UI.Xaml.Navigation;
  4.  
  5. // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=391641
  6.  
  7. namespace LumiaTiling
  8. {
  9. /// <summary>
  10. /// An empty page that can be used on its own or navigated to within a Frame.
  11. /// </summary>
  12. public sealed partial class MainPage : Page
  13. {
  14. public MainPage()
  15. {
  16. this.InitializeComponent();
  17.  
  18. this.NavigationCacheMode = NavigationCacheMode.Required;
  19. }
  20.  
  21. /// <summary>
  22. /// Invoked when this page is about to be displayed in a Frame.
  23. /// </summary>
  24. /// <param name="e">Event data that describes how this page was reached.
  25. /// This parameter is typically used to configure the page.</param>
  26. async protected override void OnNavigatedTo(NavigationEventArgs e)
  27. {
  28. WriteableBitmap wbmp = await Blender.GenerateBackground();
  29. imageHolder.Source = wbmp;
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement