protected override void OnNavigatedTo(NavigationEventArgs e) { ViewModel = e.Parameter as ProductConfigurationViewModel; PlayEntranceTransition(); base.OnNavigatedTo(e); }
private async Task AddNewProductConfig(DeviceCategory category, string connectedAnimationId) { var vm = ViewModel; var device = category.DefaultDevice.Clone(); device.Caption += " " + _productConfigCounter.ToString(); _productConfigCounter++; var configVM = new ProductConfigurationViewModel(vm.OverlayProvider, device); await configVM.SetProductImageSourceAsync(category.ThumbnailPath); vm.AddNavMenuItem(configVM); _ = NavigateWithTransition(typeof(ProductConfigurationPage), configVM); }
public void HideProductConfig(ProductConfigurationViewModel source) { HideProductConfigRequested?.Invoke(this, source); }
private void OverlayProvider_HideProductConfigRequested(IOverlayProvider source, ProductConfigurationViewModel configViewModel) { var vm = ViewModel; _ = NavigateWithTransition(typeof(StorePage), vm.StoreViewModel); vm.RemoveNavMenuItem(configViewModel); }