Пример #1
0
 // Launches a ThinkAndDo popup for selected activity
 async void OnTaskTapped(object sender, ItemTappedEventArgs e)
 {
     ListView        view  = (ListView)sender;
     var             think = (ThinkAndDo)view.SelectedItem;
     ThinkAndDoPopup pop   = new ThinkAndDoPopup(think);
     await PopupNavigation.Instance.PushAsync(pop);
 }
Пример #2
0
        // Lauches a ThinkAndDo popup for the selected ThinkAndDo
        private async void StarTapped(object sender, int starNumber)
        {
            ThinkAndDo think = ((ImageButton)sender).BindingContext as ThinkAndDo;

            ThinkAndDoPopup pop = new ThinkAndDoPopup(think, starNumber);

            pop.Disappearing += PopUpClosed;

            await PopupNavigation.Instance.PushAsync(pop);
        }
Пример #3
0
        // Lauches a ThinkAndDo popup for the selected ThinkAndDo
        async void OnItemTapped(object sender, ItemTappedEventArgs e)
        {
            ListView view = (ListView)sender;

            if (view.SelectedItem == null)
            {
                return;
            }
            var think = (ThinkAndDo)view.SelectedItem;

            view.SelectedItem = null;
            ThinkAndDoPopup pop = new ThinkAndDoPopup(think);
            await PopupNavigation.Instance.PushAsync(pop);
        }