示例#1
0
        /// <summary>
        /// On activated callback. It is used in order to continue the application after the user authenticated.
        /// </summary>
        protected override void OnActivated(IActivatedEventArgs e)
        {
            base.OnActivated(e);

            ContinuationManager = new Blogger.Common.ContinuationManager();
            var continuationEventArgs = e as IContinuationActivatedEventArgs;

            if (continuationEventArgs != null)
            {
                // Call ContinuationManager to handle continuation activation.
                // The default ContinuationManager (which is documented in
                // http://msdn.microsoft.com/en-us/library/dn631755.aspx) was changed to handle ONLY authentication.
                // It supports now current window and NOT current active frame.
                ContinuationManager.Continue(continuationEventArgs);
            }

            Window.Current.Activate();
        }
        /// <summary>
        /// On activated callback. It is used in order to continue the application after the user authenticated.
        /// </summary>
        protected override void OnActivated(IActivatedEventArgs e)
        {
            base.OnActivated(e);

            ContinuationManager = new Blogger.Common.ContinuationManager();
            var continuationEventArgs = e as IContinuationActivatedEventArgs;
            if (continuationEventArgs != null)
            {
                // Call ContinuationManager to handle continuation activation.
                // The default ContinuationManager (which is documented in
                // http://msdn.microsoft.com/en-us/library/dn631755.aspx) was changed to handle ONLY authentication.
                // It supports now current window and NOT current active frame.
                ContinuationManager.Continue(continuationEventArgs);
            }

            Window.Current.Activate();
        }