// обработка нажатия элемента в списке
        private async void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            ModelClass  modelClass  = (ModelClass)e.SelectedItem;
            AddNotePage addNotePage = new AddNotePage();

            addNotePage.BindingContext = modelClass;
            await Navigation.PushAsync(addNotePage);
        }
        private async void plus_Clicked(Object sender, EventArgs e)
        {
            ModelClass  modelClass  = new ModelClass();
            AddNotePage addNotePage = new AddNotePage();

            addNotePage.BindingContext = modelClass;
            await Navigation.PushAsync(addNotePage);
        }
Beispiel #3
0
        private void ToolbarItem_Clicked(object sender, EventArgs e)
        {
            var p = new AddNotePage();

            p.BindingContext = new NotesViewModel()
            {
                SelectedUser = ((BaseViewModel)this.BindingContext).SelectedUser
            };
            Navigation.PushModalAsync(p, true);
        }