Пример #1
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            wupdater     = new WebUpdater(this);
            this.Loaded += new RoutedEventHandler(MainPage_Loaded);

            Pontinhos                 = new ProgressIndicator();
            Pontinhos.Text            = "Carregando...";
            Pontinhos.IsIndeterminate = true;
            SystemTray.SetProgressIndicator(this, Pontinhos);

            FirstLoad = true;

            NavigationInTransition navigateInTransition = new NavigationInTransition();

            navigateInTransition.Backward = new TurnstileTransition {
                Mode = TurnstileTransitionMode.BackwardIn
            };
            navigateInTransition.Forward = new TurnstileTransition {
                Mode = TurnstileTransitionMode.ForwardIn
            };

            NavigationOutTransition navigateOutTransition = new NavigationOutTransition();

            navigateOutTransition.Backward = new TurnstileTransition {
                Mode = TurnstileTransitionMode.BackwardOut
            };
            navigateOutTransition.Forward = new TurnstileTransition {
                Mode = TurnstileTransitionMode.ForwardOut
            };
            TransitionService.SetNavigationInTransition(this, navigateInTransition);
            TransitionService.SetNavigationOutTransition(this, navigateOutTransition);
        }
Пример #2
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            wupdater = new WebUpdater(this);
            this.Loaded += new RoutedEventHandler(MainPage_Loaded);

            Pontinhos = new ProgressIndicator();
            Pontinhos.Text = "Carregando...";
            Pontinhos.IsIndeterminate = true;
            SystemTray.SetProgressIndicator(this, Pontinhos);

            FirstLoad = true;

            NavigationInTransition navigateInTransition = new NavigationInTransition();
            navigateInTransition.Backward = new TurnstileTransition { Mode = TurnstileTransitionMode.BackwardIn };
            navigateInTransition.Forward = new TurnstileTransition { Mode = TurnstileTransitionMode.ForwardIn };

            NavigationOutTransition navigateOutTransition = new NavigationOutTransition();
            navigateOutTransition.Backward = new TurnstileTransition { Mode = TurnstileTransitionMode.BackwardOut };
            navigateOutTransition.Forward = new TurnstileTransition { Mode = TurnstileTransitionMode.ForwardOut };
            TransitionService.SetNavigationInTransition(this, navigateInTransition);
            TransitionService.SetNavigationOutTransition(this, navigateOutTransition);
        }