public PinUserControl() { InitializeComponent(); ItemPage.PreviewHold += () => { //if (root.Visibility == Visibility.Visible) root.Visibility = Visibility.Collapsed; }; ItemPage.PreviewUnhold += () => { //if (!Pined) root.Visibility = Visibility.Visible; }; switch (BackgroundHelper.GetBackgroundType()) { case BackgroundType.Light: root.Background = new SolidColorBrush(Colors.Black); root.Background.Opacity = 0.3; break; case BackgroundType.Dark: root.Background = new SolidColorBrush(Colors.White); root.Background.Opacity = 0.3; break; } //Loaded += (s, e) => //{ // _pined = FlipTileDataManager.DeskContainsImage(Image); //}; }
// Constructor public MainPage() { InitializeComponent(); this.PivotDefault.DataContext = new DefaultItemListViewModel(); Loaded += (s, e) => { ItemRepository repository = ItemRepository.Instance; repository.Type = BackgroundHelper.GetBackgroundType(); repository.Init(); }; MarketplaceReviewServices marketplaceReviewServices = new MarketplaceReviewServices(this); marketplaceReviewServices.RateDays = 5; marketplaceReviewServices.Run(); }
public ItemPage() { InitializeComponent(); flipTileDataManager = new FlipTileDataManager(); if (BackgroundHelper.GetBackgroundType() == BackgroundType.Dark) { LayoutRoot.Background = new SolidColorBrush(Colors.Black); title.Foreground = new SolidColorBrush(Colors.White); } else { LayoutRoot.Background = new SolidColorBrush(Colors.White); title.Foreground = new SolidColorBrush(Colors.Black); } PinUserControl.Pin += PinImage; }