protected override void OnActivated(IActivatedEventArgs e)
        {
            base.OnActivated(e);
            try
            {
                if (e.Kind == ActivationKind.ToastNotification)
                {
                    Library.Activated(e as ToastNotificationActivatedEventArgs);
                }
            }
            catch { }
            Frame rootFrame = Window.Current.Content as Frame;

            if (rootFrame == null)
            {
                rootFrame = new Frame();
                rootFrame.NavigationFailed += OnNavigationFailed;
                Window.Current.Content      = rootFrame;
            }
            if (rootFrame.Content == null)
            {
                rootFrame.Navigate(typeof(MainPage), e);
            }
            Window.Current.Activate();
        }