public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            await Vm.InitAsync();

            // Setup bindings
            AddPersonButton.SetCommand("TouchUpInside", Vm.AddPersonCommand);
            RemovePersonButton.SetCommand("TouchUpInside", Vm.RemovePersonCommand);
        }
Exemplo n.º 2
0
        protected override async void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);

            await Vm.InitAsync();

            PeopleListView.Adapter = Vm.People.GetAdapter(GetPersonView);
            AddPersonButton.SetCommand("Click", Vm.AddPersonCommand);
            RemovePersonButton.SetCommand("Click", Vm.RemovePersonCommand);
        }