コード例 #1
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);
        }
コード例 #2
0
ファイル: MainActivity.cs プロジェクト: carabina/PclSample
        protected override async void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            await Vm.InitAsync();

            // Get our button from the layout resource,
            // and attach an event to it
            PeopleListView.Adapter = Vm.People.GetAdapter(GetPersonView);
        }