示例#1
0
        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);
            //};
        }
示例#2
0
        // 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();
        }
示例#3
0
        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;
        }