C# silverlight应用程序中的非活动超时
我在MainPage.xaml中有一个导航框架,其内容设置为Login.xaml。 从LoginPage.xaml,我导航到其他页面,如下所示:C# silverlight应用程序中的非活动超时,c#,silverlight,C#,Silverlight,我在MainPage.xaml中有一个导航框架,其内容设置为Login.xaml。 从LoginPage.xaml,我导航到其他页面,如下所示: this.NavigationService.Navigate(new Uri("/SecondPage.xaml", UriKind.Relative)); 我需要在用户不活动时实现一个timoout,在不活动1分钟(键盘和鼠标)后从任何页面重定向到Login.xaml 我怎样才能做到这一点 编辑:当超时发生时,我还需要调用一些清理例程 更新了答案
this.NavigationService.Navigate(new Uri("/SecondPage.xaml", UriKind.Relative));
我需要在用户不活动时实现一个timoout,在不活动1分钟(键盘和鼠标)后从任何页面重定向到Login.xaml
我怎样才能做到这一点
编辑:当超时发生时,我还需要调用一些清理例程 更新了答案。它适合你吗?看看这里的答案