private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs args) { if (DessertsModel != null) { DessertsModel.GetShareContent(args.Request); } }
protected async override void OnNavigatedTo(NavigationEventArgs e) { _dataTransferManager = DataTransferManager.GetForCurrentView(); _dataTransferManager.DataRequested += OnDataRequested; _navigationHelper.OnNavigatedTo(e); if (DessertsModel != null) { await DessertsModel.LoadItemsAsync(); DessertsModel.SelectItem(e.Parameter); DessertsModel.ViewType = ViewTypes.Detail; } DataContext = this; // Allow this page to rotate _currentOrientations = DisplayInformation.AutoRotationPreferences; DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait | DisplayOrientations.Landscape | DisplayOrientations.LandscapeFlipped | DisplayOrientations.PortraitFlipped; // Handle orientation changes DisplayInformation.GetForCurrentView().OrientationChanged += this.OnOrientationChanged; this.TransitionStoryboardState(); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { _navigationHelper.OnNavigatedTo(e); await DessertsModel.LoadItemsAsync(); DataContext = this; }
protected override async void OnNavigatedTo(NavigationEventArgs e) { _dataTransferManager = DataTransferManager.GetForCurrentView(); _dataTransferManager.DataRequested += OnDataRequested; _navigationHelper.OnNavigatedTo(e); await DessertsModel.LoadItemsAsync(); }
protected override async void OnNavigatedTo(NavigationEventArgs e) { _navigationHelper.OnNavigatedTo(e); await DessertsModel.LoadItemsAsync(); BottomAppBar.IsOpen = true; BottomAppBar.IsSticky = true; }
protected async override void OnNavigatedTo(NavigationEventArgs e) { _dataTransferManager = DataTransferManager.GetForCurrentView(); _dataTransferManager.DataRequested += OnDataRequested; _navigationHelper.OnNavigatedTo(e); await DessertsModel.LoadItemsAsync(); DessertsModel.SelectItem(e.Parameter); if (DessertsModel != null) { DessertsModel.ViewType = ViewTypes.Detail; } DataContext = this; }
protected async override void OnNavigatedTo(NavigationEventArgs e) { _dataTransferManager = DataTransferManager.GetForCurrentView(); _dataTransferManager.DataRequested += OnDataRequested; _navigationHelper.OnNavigatedTo(e); await DessertsModel.LoadItemsAsync(); if (e.Parameter is DessertsSchema) { DessertsModel.Items.Add(e.Parameter as DessertsSchema); } DessertsModel.SelectItem(e.Parameter); if (DessertsModel != null) { DessertsModel.ViewType = ViewTypes.Detail; } DataContext = this; BottomAppBar.IsOpen = true; BottomAppBar.IsSticky = true; }
protected override async void OnNavigatedTo(NavigationEventArgs e) { _navigationHelper.OnNavigatedTo(e); await DessertsModel.LoadItemsAsync(); }