예제 #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            ViewModel = e.Parameter as ProductConfigurationViewModel;

            PlayEntranceTransition();

            base.OnNavigatedTo(e);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void HideProductConfig(ProductConfigurationViewModel source)
 {
     HideProductConfigRequested?.Invoke(this, source);
 }
예제 #4
0
        private void OverlayProvider_HideProductConfigRequested(IOverlayProvider source, ProductConfigurationViewModel configViewModel)
        {
            var vm = ViewModel;

            _ = NavigateWithTransition(typeof(StorePage), vm.StoreViewModel);
            vm.RemoveNavMenuItem(configViewModel);
        }