コード例 #1
0
        public NavigationMaster()
        {
            InitializeComponent();

            BindingContext = new NavigationMasterViewModel();
            ListView       = MenuItemsListView;
        }
コード例 #2
0
        public NavigationMasterPage(NavigationMasterViewModel navigationMasterViewModel)
        {
            InitializeComponent();

            _navigationMasterViewModel = navigationMasterViewModel;

            _navigationMasterViewModel.ConnectedToPage = this;

            BindingContext = _navigationMasterViewModel;
            //This is for Android, we dont want to have the row selected in the menu
            listView.ItemSelected += (s, e) => {
                listView.SelectedItem = null;
            };
        }
コード例 #3
0
        public NavigationMaster()
        {
            InitializeComponent();

            BindingContext = new NavigationMasterViewModel();
        }