public SearchResultsPageViewModel(IProductCatalogRepository productCatalogRepository, INavigationService navigationService, ISearchPaneService searchPaneService) { _productCatalogRepository = productCatalogRepository; _navigationService = navigationService; _searchPaneService = searchPaneService; ProductNavigationAction = NavigateToItem; GoBackCommand = new DelegateCommand(_navigationService.GoBack, _navigationService.CanGoBack); }
// <snippet303> public HubPageViewModel(IProductCatalogRepository productCatalogRepository, INavigationService navigationService, IAlertMessageService alertMessageService, IResourceLoader resourceLoader, ISearchPaneService searchPaneService) { _productCatalogRepository = productCatalogRepository; _navigationService = navigationService; _alertMessageService = alertMessageService; _resourceLoader = resourceLoader; _searchPaneService = searchPaneService; ProductNavigationAction = NavigateToItem; GoBackCommand = new DelegateCommand(navigationService.GoBack, navigationService.CanGoBack); }
public ItemDetailPageViewModel(IProductCatalogRepository productCatalogRepository, INavigationService navigationService, IShoppingCartRepository shoppingCartRepository, IAlertMessageService alertMessageService, IResourceLoader resourceLoader, ITileService tileService, ISearchPaneService searchPaneService) { _productCatalogRepository = productCatalogRepository; _shoppingCartRepository = shoppingCartRepository; _alertService = alertMessageService; _resourceLoader = resourceLoader; _tileService = tileService; _searchPaneService = searchPaneService; _isAppBarSticky = false; GoBackCommand = new DelegateCommand(navigationService.GoBack, navigationService.CanGoBack); AddToCartCommand = DelegateCommand.FromAsyncHandler(AddToCart, CanAddToCart); // <snippet802> PinProductCommand = DelegateCommand.FromAsyncHandler(PinProduct, () => SelectedProduct != null); // </snippet802> // <snippet805> UnpinProductCommand = DelegateCommand.FromAsyncHandler(UnpinProduct, () => SelectedProduct != null); // </snippet805> }
public PaymentMethodFlyout(ISearchPaneService searchPaneService) : base(StandardFlyoutSize.Narrow, searchPaneService) { this.InitializeComponent(); }
public FlyoutView(int flyoutSize, ISearchPaneService searchPaneService) { FlyoutSize = flyoutSize; _searchPaneService = searchPaneService; }
public ChangeDefaultsFlyout(ISearchPaneService searchPaneService) : base(StandardFlyoutSize.Narrow, searchPaneService) { InitializeComponent(); }
public SearchUserControlViewModel(ISearchPaneService searchPaneService) { _searchPaneService = searchPaneService; SearchCommand = new DelegateCommand(ShowSearchPane); }
public BillingAddressFlyout(ISearchPaneService searchPaneService) : base(StandardFlyoutSize.Narrow, searchPaneService) { this.InitializeComponent(); }
public SearchUserControlViewModel(ISearchPaneService searchPaneService) { this.m_searchPaneService = searchPaneService; }