コード例 #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            ViewModel.Name = NavigationParameter.ToString();

            this.SetBinding(() => ViewModel.Name, () => Name.Text);
        }
コード例 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            ViewModel = SimpleIoc.Default.GetInstance <PageViewModel>();

            Text.Text = "Parameter: " + NavigationParameter.ToString();

            Close.SetCommand("TouchUpInside", ViewModel.Close);
        }