示例#1
0
        public MainPage()
        {
            HelloWorld    = new HelloWorldPage();
            DataView      = new ListViewPage();
            BasicControls = new BasicControlsPage();

            HelloWorldCommand    = new Command(() => SetCurrentPage(HelloWorld));
            DataCommand          = new Command(() => SetCurrentPage(DataView));
            BasicControlsCommand = new Command(() => SetCurrentPage(BasicControls));

            InitializeComponent();

            BindingContext = this;

            SetCurrentPage(HelloWorld);
        }
 public void SetUp()
 {
     Target = new HelloWorldPage();
 }