當前位置: 首頁>>代碼示例>>C#>>正文


C# Controls.ItemClickEventArgs類代碼示例

本文整理匯總了C#中Windows.UI.Xaml.Controls.ItemClickEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# ItemClickEventArgs類的具體用法?C# ItemClickEventArgs怎麽用?C# ItemClickEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ItemClickEventArgs類屬於Windows.UI.Xaml.Controls命名空間,在下文中一共展示了ItemClickEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: ItemView_ItemClick

 void ItemView_ItemClick(object sender, ItemClickEventArgs e)
 {
     // Navigate to the appropriate destination page, configuring the new page
     // by passing required information as a navigation parameter
     var gameId = ((PlayItemDataItem)e.ClickedItem).GameId;
     this.Frame.Navigate(typeof(BoardGame), gameId);
 }
開發者ID:hathawcs,項目名稱:W8BggApp,代碼行數:7,代碼來源:PlaysPage.xaml.cs

示例2: ListView_ItemClick

 private void ListView_ItemClick(object sender, ItemClickEventArgs e)
 {
     this.Frame.Navigate(
         typeof(BasicSubPage),
         e.ClickedItem,
         new Windows.UI.Xaml.Media.Animation.DrillInNavigationTransitionInfo());
 }
開發者ID:cheahengsoon,項目名稱:The-Asocial-Network,代碼行數:7,代碼來源:FeelingsPage.xaml.cs

示例3: Control_ItemClick

        private static void Control_ItemClick(object sender, ItemClickEventArgs e)
        {
            ListViewBase currentBase = null;
            if(sender is ListView)
            {
                currentBase = sender as ListView;
            }
            else
            {
                currentBase = sender as GridView;
            }
            if (currentBase != null)
            {
                var command = GetItemClickCommand(currentBase);
                
                var paramter = e.ClickedItem;

                object obj = null;

                if (paramter != null)
                {
                    obj = paramter;
                }
                else
                {
                    obj = currentBase.DataContext;
                }

                if (command != null && command.CanExecute(obj))
                    command.Execute(obj);
            }
        }
開發者ID:liqinghuang,項目名稱:JP.Utils.UWP,代碼行數:32,代碼來源:ListViewBaseCommandEx.cs

示例4: ItemView_ItemClick

 /// <summary>
 /// Invoked when an item is clicked.
 /// </summary>
 /// <param name="sender">The GridView (or ListView when the application is snapped)
 /// displaying the item clicked.</param>
 /// <param name="e">Event data that describes the item clicked.</param>
 void ItemView_ItemClick(object sender, ItemClickEventArgs e)
 {
     // Navigate to the appropriate destination page, configuring the new page
     // by passing required information as a navigation parameter
     var groupId = ((TestGroup)e.ClickedItem).UniqueId;
     this.Frame.Navigate(typeof(SplitPage), groupId);
 }
開發者ID:gene-l-thomas,項目名稱:Eto,代碼行數:13,代碼來源:ItemsPage.xaml.cs

示例5: ItemView_ItemClick

 /// <summary>
 /// アイテムがクリックされたときに呼び出されます。
 /// </summary>
 /// <param name="sender">クリックされたアイテムを表示する GridView (アプリケーションがスナップ
 /// されている場合は ListView) です。</param>
 /// <param name="e">クリックされたアイテムを説明するイベント データ。</param>
 void ItemView_ItemClick(object sender, ItemClickEventArgs e)
 {
     // 適切な移動先のページに移動し、新しいページを構成します。
     // このとき、必要な情報をナビゲーション パラメーターとして渡します
     var itemId = ((SampleDataItem)e.ClickedItem).UniqueId;
     this.Frame.Navigate(typeof(ItemDetailPage), itemId);
 }
開發者ID:posaunehm,項目名稱:MyBeautyClock,代碼行數:13,代碼來源:GroupDetailPage.xaml.cs

示例6: ItemView_ItemClick

		private void ItemView_ItemClick (object sender, ItemClickEventArgs e)
		{
			if (e.ClickedItem != null) {
				var feed = (FeedData)e.ClickedItem;
				Frame.Navigate (typeof (SplitPage), feed);
			}
		}
開發者ID:hikkyp,項目名稱:LearningWin8StoreApp,代碼行數:7,代碼來源:ItemsPage.xaml.cs

示例7: studentList_ItemClick

  private void studentList_ItemClick(object sender, ItemClickEventArgs e)
  {
      Downloads download = (Downloads)e.ClickedItem;
      OpenFile(download);
 
   
  }
開發者ID:mtwn105,項目名稱:PDFMe-Windows-10,代碼行數:7,代碼來源:History.xaml.cs

示例8: ItemView_ItemClick

        /// <summary>
        /// Invoked when an item within a group is clicked.
        /// </summary>
        void ItemView_ItemClick(object sender, ItemClickEventArgs e)
        {
            Exception exception = null;
            try
            {
                // Navigate to the appropriate destination page, configuring the new page
                // by passing required information as a navigation parameter
                var itemId = ((MainPageItem)e.ClickedItem).UniqueId;

                if (itemId == "NewSurvey-StartNewSurvey")
                    Frame.Navigate(typeof(RoadSelectionPage));
                else if (itemId == "DataMan-SyncData")
                    ButtonSync_OnClick(sender, null);
                else if (itemId == "SyncRoad")
                    ButtonRoadSync_OnClick(sender, null);
                else if (itemId == "EditRoadSegments")
                    NotificationHelper.ShowNewMessage("Sorry, This function is not ready yet. Please click other buttons");
                else
                    this.Frame.Navigate(typeof(EditSurvey_RoadSelection));
            }
            catch (Exception _ex)
            {
                exception = _ex;
                throw;
            }
            if (exception != null)
                NotificationHelper.ShowErrorMessage(exception.Message);
        }
開發者ID:yuqiqian,項目名稱:Copacescc,代碼行數:31,代碼來源:MainPage.xaml.cs

示例9: ItemView_ItemClick

 void ItemView_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (e.ClickedItem is MovieInfo)
         this.Frame.Navigate(typeof (MovieDetailsPage));
     else
         this.Zoom.IsZoomedInViewActive = false;
 }
開發者ID:brisilda,項目名稱:blog,代碼行數:7,代碼來源:GoodPerformancePage.xaml.cs

示例10: powerMenuList_ItemClick

        private async void powerMenuList_ItemClick(object sender, ItemClickEventArgs e)
        {
            var item = e.ClickedItem as FrameworkElement;
            if (item == null)
                return;

            // Not supported in latest releases
            // TODO: Uncomment when fixed
            //var dialog = new MessageDialog("Are you sure you want to " + (e.ClickedItem as TextBlock).Text.ToLower() + "?", (e.ClickedItem as TextBlock).Text.ToUpper());

            //var resp = await dialog.ShowAsync();

            //if (resp.Label == "No")
            //    return;

            switch (item.Name)
            {
                case "ShutdownOption":
                    ShutdownHelper(ShutdownKind.Shutdown);
                    break;
                case "RestartOption":
                    ShutdownHelper(ShutdownKind.Restart);
                    break;
            }
        }
開發者ID:fonix232,項目名稱:WinDash,代碼行數:25,代碼來源:AppShell.xaml.cs

示例11: ItemView_ItemClick

 /// <summary>
 ///     Invoked when an item is clicked.
 /// </summary>
 /// <param name="sender">The GridView displaying the item clicked.</param>
 /// <param name="e">Event data that describes the item clicked.</param>
 private void ItemView_ItemClick(object sender, ItemClickEventArgs e)
 {
     // Navigate to the appropriate destination page, configuring the new page
     // by passing required information as a navigation parameter
     string itemId = ((CustomerDataItem) e.ClickedItem).Id;
     Frame.Navigate(typeof (ItemDetailPage), itemId);
 }
開發者ID:johnazariah,項目名稱:pelican,代碼行數:12,代碼來源:GroupDetailPage.xaml.cs

示例12: ListArticle_ItemClick

 private void ListArticle_ItemClick(object sender, ItemClickEventArgs e)
 {
     var feed = e.ClickedItem as IFeedItem;
     var detail = ViewModelLocator.Get<Detail_ViewModel>();
     detail.CurrentFeed = feed;
     App.Current.NavigationService.NavigateTo(Pages.DetailPage);
 }
開發者ID:sutoentertainment,項目名稱:BaoViet,代碼行數:7,代碼來源:Saved_Articles_Page.xaml.cs

示例13: OptionSelected

 private void OptionSelected(object sender, ItemClickEventArgs e)
 {
     if (e.ClickedItem == monsters)
     {
         Frame.Navigate(typeof(MonsterListPage));
     }
     else if (e.ClickedItem == items)
     {
         Frame.Navigate(typeof(ItemListPage));
     }
     else if (e.ClickedItem == weapons)
     {
         Frame.Navigate(typeof(WeaponTypePage));
     }
     else if (e.ClickedItem == armor)
     {
         Frame.Navigate(typeof(ArmorListPage));
     }
     else if (e.ClickedItem == skills)
     {
         Frame.Navigate(typeof(SkillListPage));
     }
     else if (e.ClickedItem == quests)
         Frame.Navigate(typeof(QuestListPage));
     else if (e.ClickedItem == combinations)
         Frame.Navigate(typeof(CombinationListPage));
     else if (e.ClickedItem == wyporium)
         Frame.Navigate(typeof(WyporiumTradeList));
     else if (e.ClickedItem == felyneSkills)
         Frame.Navigate(typeof(FelyneSkillListPage));
 }
開發者ID:JosephMichels,項目名稱:WP-MH4UDatabase,代碼行數:31,代碼來源:HomePage.xaml.cs

示例14: ItemView_ItemClick

 /// <summary>
 /// 在單擊某個項時進行調用。
 /// </summary>
 /// <param name="sender">顯示所單擊項的 GridView (在應用程序處於對齊狀態時
 /// 為 ListView)。</param>
 /// <param name="e">描述所單擊項的事件數據。</param>
 void ItemView_ItemClick(object sender, ItemClickEventArgs e)
 {
     // 導航至相應的目標頁,並
     // 通過將所需信息作為導航參數傳入來配置新頁
     var itemId = ((T_Rubbing)e.ClickedItem).ID;
     this.Frame.Navigate(typeof(RubbingPhotosPage), itemId);
 }
開發者ID:zuolun,項目名稱:CalligraphyForWin8AppStore,代碼行數:13,代碼來源:RubbingsPage.xaml.cs

示例15: ListViewSpeakers_ItemClick

 private async void ListViewSpeakers_ItemClick(object sender, ItemClickEventArgs e)
 {
     string personid = (e.ClickedItem as Person).Name.Replace(' ', '_');
     personid = personid.ToLower();
     string url = string.Format("https://fosdem.org/2016/schedule/speaker/{0}/", personid);
     await Windows.System.Launcher.LaunchUriAsync(new Uri(url));
 }
開發者ID:julianls,項目名稱:FOSDEM,代碼行數:7,代碼來源:DetailPage.xaml.cs


注:本文中的Windows.UI.Xaml.Controls.ItemClickEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。