Esempio n. 1
0
        public ProjectListPage()
        {
            try
            {
                //this.Navigation.SetHidesBackButton(true, false);
                InitializeComponent();
                if (ProjectListPageModel.Instance == null)
                {
                    bindingcontext = new ProjectListPageModel();
                }
                else
                {
                    bindingcontext = ProjectListPageModel.Instance;
                }

                BindingContext              = bindingcontext;
                assignmentsList.ItemTapped += (object sender, ItemTappedEventArgs e) =>
                {
                    // don't do anything if we just de-selected the row
                    if (e.Item == null)
                    {
                        return;
                    }
                    // do something with e.SelectedItem
                    ((ListView)sender).SelectedItem = null; // de-select the row
                };
            }
            catch (Exception ex)
            {
                throw;
            }
        }
        public MenuPage()
        {
            InitializeComponent();
            if (ProjectListPageModel.Instance == null)
            {
                bindingcontext = new ProjectListPageModel();
            }
            else
            {
                bindingcontext = ProjectListPageModel.Instance;
            }

            BindingContext = bindingcontext;
        }