/// <summary> /// Initializes a new instance of the <see cref="MainPage"/> class. /// </summary> public MainPage() { this.InitializeComponent(); var imageSet = new ViewModel.AppImageSet(); this.DataContext = imageSet; this.swipeManager = new SwipeManager(this.ImageHolder, imageSet); this.Loaded += this.OnLoaded; this.SizeChanged += this.OnLoaded; }
/// <summary> /// Initializes a new instance of the <see cref="MainPage"/> class. /// </summary> public MainPage() { this.InitializeComponent(); var imageSet = new ViewModel.AppImageSet(); this.DataContext = imageSet; this.swipeManager = new SwipeManager(this.ImageHolder, imageSet); this.Loaded += this.OnLoaded; this.SizeChanged += this.OnLoaded; }
/// <summary> /// Initializes a new instance of the <see cref="MainPage"/> class. /// </summary> public MainPage() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; var imageSet = new ViewModel.AppImageSet(); this.DataContext = imageSet; this.swipeManager = new SwipeManager(this.PageRoot, imageSet); this.Loaded += this.OnLoaded; this.SizeChanged += (s, e) => this.OnLoaded(s, e); imageSet.App.DropboxClientChanged += this.OnDropboxClientChanged; }
/// <summary> /// Initializes a new instance of the <see cref="MainPage"/> class. /// </summary> public MainPage() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; var imageSet = new ViewModel.AppImageSet(); this.DataContext = imageSet; this.swipeManager = new SwipeManager(this.PageRoot, imageSet); this.Loaded += this.OnLoaded; this.SizeChanged += (s, e) => this.OnLoaded(s, e); imageSet.App.DropboxClientChanged += this.OnDropboxClientChanged; }