Exemplo n.º 1
0
        /// <summary>
        /// 点击任务后触发事假
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void HallGridView_OnItemClick(object sender, ItemClickEventArgs e)
        {
            var viewModel = (HallPageViewModel)DataContext;

            viewModel.SelectedMission = (Mission)e.ClickedItem;
            await MissionDetailContent.ShowAsync();
        }
Exemplo n.º 2
0
        private async void SearchText_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args)
        {
            var viewModel = (HallPageViewModel)DataContext;

            if (args.ChosenSuggestion != null)
            {
                await MissionDetailContent.ShowAsync();
            }
        }