由网友(岁月沧桑了容颜)分享简介:在一个框架如何Windows 8的管理堆栈页的?How does Windows 8 manage a stack of Pages in a Frame?和我怎么能清除整个堆栈编程,在我需要'流行'都在一个堆栈页,并返回到我从开始的第一页(假设登录页面)?And how can I clear the whol...
在一个框架如何Windows 8的管理堆栈页的?
How does Windows 8 manage a stack of Pages in a Frame?
和我怎么能清除整个堆栈编程,在我需要'流行'都在一个堆栈页,并返回到我从开始的第一页(假设登录页面)?
And how can I clear the whole stack programmatically, as in I need to 'pop' all pages in a stack and return to first page where I started from (let's say Login Page)?
推荐答案
在通用/ LayoutAwarePage.cs存在与在标准的点击事件使用的下列GOHOME()函数(除了GoBack的()函数后退按钮):
In the Common/LayoutAwarePage.cs there is the following GoHome() function (in addition to the GoBack() function used with the Click-event on the standard Back button):
// Use the navigation frame to return to the topmost page
if (this.Frame != null)
{
while (this.Frame.CanGoBack) this.Frame.GoBack();
}
相关推荐
最新文章