Пример #1
0
        private void NavigateBack()
        {
            CreateLogin();
            Trans.Transition = new SlideTransition(Direction.LeftToRight)
            {
                Duration = new Duration(
                    TimeSpan.FromSeconds(0.3))
            };
            Trans.ApplyTransition(__PlayerPage, __LoginPage);

            Trans.Items.Remove(__PlayerPage);
            __PlayerPage = null;
        }
Пример #2
0
 private void LoginOnPropertyChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
 {
     if (propertyChangedEventArgs.PropertyName == "LoggedIn")
     {
         __PlayerPage = new p_Player(__Account.AudioInfoProvider,
                                     __Account.AudioInfoCacheOnlyProvider,
                                     NavigateBack,
                                     __Account.UserFirstName,
                                     __CacheLogin
                                     );
         Trans.Items.Add(__PlayerPage);
         Trans.Transition = new SlideTransition(Direction.RightToLeft)
         {
             Duration = new Duration(
                 TimeSpan.FromSeconds(0.3))
         };
         Trans.ApplyTransition(__LoginPage, __PlayerPage);
     }
 }