如何避免导航堆栈上已存在打开页面?

时间:2017-02-21 18:41:10

标签: c# xamarin.ios xamarin.android xamarin.forms portable-class-library

我正在使用 Xamarin.forms ,有时候用户会在同一个按钮上点击两次,我会搜索一下以避免两次打开同一页,也许在第一次点击后禁用按钮就可以了,但是如果导航堆栈上已存在页面,我正在搜索以避免打开同一页面。

btnCustomerPage.Clicked += (object sender, EventArgs e) => 
{
 //CustomerPage already Exist on Navigation Stack,So user already open it.
 Navigation.PushAsync(new CustomerPage(); 
};

1 个答案:

答案 0 :(得分:11)

service firebase.storage {
  match /b/omega-towers-f5beb.appspot.com/o {
    match /{allPaths=**} {
      allow read, write: if request.auth != null;
    }
  }
}