我有以下问题,我有一个系统,当输入带有TabbedPage的xaml时,使用了诸如选项卡之类的不同内容页面,但是当满足特定条件时,我需要为用户隐藏其中的一个。
我该怎么做?
欢呼声
public class MyPage : TabbedPage
{
public MyPage()
{
this.Children.Add(new Page1());
this.Children.Add(new Page2());
if (some conditional check based on user)
{
this.Children.Add(new Page3());
}
}
}