From a1fa40ff966fb45cb92a6f320872da7006660b2c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 19 Jul 2012 01:02:53 +0400 Subject: LoginView: fix backstack issue --- Juick/LoginView.xaml.cs | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'Juick/LoginView.xaml.cs') diff --git a/Juick/LoginView.xaml.cs b/Juick/LoginView.xaml.cs index d653932..43aa8f7 100644 --- a/Juick/LoginView.xaml.cs +++ b/Juick/LoginView.xaml.cs @@ -1,15 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; +using System.Linq; using System.Windows; -using System.Windows.Controls; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Shapes; -using Juick.Classes; using Microsoft.Phone.Controls; namespace Juick @@ -26,10 +16,10 @@ namespace Juick { App.Account.SignIn(this, textBox1.Text, textBox2.Password); } - - private void button2_Click(object sender, RoutedEventArgs e) + private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) { - App.Account.SignOut(this); + while (NavigationService.BackStack.Any()) + NavigationService.RemoveBackEntry(); } } } \ No newline at end of file -- cgit v1.2.3