Пример #1
0
        //public static AlternativeFrame Frame { get; private set; }

        public AppShell(LaunchActivatedEventArgs e)
        {
            this.InitializeComponent();
            Frame = this.RootFrame;
            //Frame.CacheSize = 1;

            //            if (Frame.Content == null)
            //            {
            //#if WINDOWS_PHONE_APP
            //    // Removes the turnstile navigation for startup.
            //                if (rootFrame.ContentTransitions != null)
            //                {
            //                    this.transitions = new TransitionCollection();
            //                    foreach (var c in rootFrame.ContentTransitions)
            //                    {
            //                        this.transitions.Add(c);
            //                    }
            //                }

            //                rootFrame.ContentTransitions = null;
            //                rootFrame.Navigated += this.RootFrame_FirstNavigated;
            //#endif
            //            }

            Frame.Navigate(typeof(MainPage), e);
            InitializeNavigationHelper();

            // Uncomment to show visual tree debugger on phone
            this.Loaded += (s, e2) =>
            {
                DC.ShowVisualTree();
                DC.Collapse();
            };
        }