private async Task SetBanner() { var bannerControl = await _bannerManager.GetBanner(BannerSlots.PrintJob); if (bannerControl != null) { _regionManager.AddToRegion(PrintJobRegionNames.PrintJobViewBannerRegion, bannerControl); } }
private async Task SetBanner() { var bannerControl = await _bannerManager.GetBanner(BannerSlots.PrintJob); if (bannerControl != null) { BannerRegion.Children.Add(bannerControl); } }
private async Task SetBanner() { // No banner currently loaded if (BannerGrid.Children.Count == 0) { var bannerControl = await _bannerManager.GetBanner(BannerSlots.Home); if (bannerControl != null) { BannerGrid.Children.Add(bannerControl); FrequentTipsControl.Visibility = Visibility.Collapsed; } } }