protected override void OnViewModelSet()
        {
            SetContentView(Resource.Layout.Page_FormView);

            SetListFragmentDataContext();

            _firstFragment = new MyFirstFragment()
                {
                    ViewModel = ViewModel
                };
            _secondFragment = new MySecondFragment()
                {
                    ViewModel = ViewModel
                };

            _showingFirst = true;
            ShowFormHeaderFragment(_firstFragment);

            var b = FindViewById<Button>(Resource.Id.switchFragmentButton);
            b.Click += (s, e) => SwitchHeaders();
        }
Exemple #2
0
        protected override void OnViewModelSet()
        {
            SetContentView(Resource.Layout.Page_FormView);

            SetListFragmentDataContext();

            _firstFragment = new MyFirstFragment()
            {
                ViewModel = ViewModel
            };
            _secondFragment = new MySecondFragment()
            {
                ViewModel = ViewModel
            };

            _showingFirst = true;
            ShowFormHeaderFragment(_firstFragment);

            var b = FindViewById <Button>(Resource.Id.switchFragmentButton);

            b.Click += (s, e) => SwitchHeaders();
        }