• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Controls.ItemClickEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Windows.UI.Xaml.Controls.ItemClickEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ItemClickEventArgs类的具体用法?C# ItemClickEventArgs怎么用?C# ItemClickEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ItemClickEventArgs类属于Windows.UI.Xaml.Controls命名空间,在下文中一共展示了ItemClickEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: ThumbnailList_Click

        private void ThumbnailList_Click(object sender, ItemClickEventArgs e)
        {
            GridView gridView = (GridView)sender;
            GridViewItem item = (GridViewItem)gridView.ContainerFromItem(e.ClickedItem);
            CompositionImage image = VisualTreeHelperExtensions.GetFirstDescendantOfType<CompositionImage>(item);

            // We are about to transition to a new page.  Cancel any outstanding transitions.
            if (_currentTransition != null)
            {
                if (!_currentTransition.Completed)
                {
                    _currentTransition.Cancel();
                }
                _currentTransition = null;
            }

            DetailsInfo info;
            info.thumbanil = (Thumbnail)e.ClickedItem;

            // Setup the new transition and trigger the navigation
            ConnectedTransition transition = new ConnectedTransition();
            transition.Initialize(Frame, image, info);

            Frame.Navigate(typeof(CustomConnectedAnimationDetail), transition);
        }
开发者ID:clarkezone,项目名称:composition,代码行数:25,代码来源:CustomConnectedAnimation.xaml.cs


示例17: gvDrawing_ItemClick

        private async void gvDrawing_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (gvViewType.SelectedIndex == 0)
            {
                if (gvDrawing.SelectedItem == e.ClickedItem)
                {
                    DataItem item = e.ClickedItem as DataItem;

                    //Login.MasterPage.ShowTopBanner = false;
                    string[] addrs = ExtractAddress(item.ImagePath);
                    if (item.ImagePath.ToLower().Contains(".pdf") || item.ImagePath.ToLower().Contains(".ozd") || item.ImagePath.ToLower().Contains(".ozr"))
                        WinAppLibrary.Utilities.Helper.SimpleMessage("Can't Edit", "Alert");
                    else
                    {
                        Login.MasterPage.Loading(true, this);
                        DrawingEditor.EnableEdit(false);
                        if (!await DrawingEditor.LoadDrawingWithServer(item.ImagePath, UriKind.Absolute))
                            await DrawingEditor.LoadDefault();

                        DrawingEditor.ViewMode();
                        Login.MasterPage.Loading(false, this);
                    }
                }
                else
                {
                    gvDrawing.SelectedItem = e.ClickedItem;
                }
            }
        }
开发者ID:paraneye,项目名称:WinApp,代码行数:29,代码来源:IWPGridViewer.xaml.cs


示例18: PlayEpisode

        public void PlayEpisode(object sender, ItemClickEventArgs parameters)
        {
            var episodeViewModel = parameters.ClickedItem as EpisodeViewModel;

            //var content = new ToastContent()
            //{
            //    Launch = null,
            //    Visual = new ToastVisual()
            //    {
            //        TitleText = new ToastText()
            //        {
            //            Text = $"Listening to {episode.Title}"
            //        },
            //        BodyTextLine1 = new ToastText()
            //        {
            //            Text = $"By {episode.Author}"
            //        },
            //        AppLogoOverride = new ToastAppLogo()
            //        {
            //            Crop = ToastImageCrop.None,
            //            Source = new ToastImageSource(episode.ImageUrl.OriginalString)
            //        },
            //    }
            //};

            //var t = content.GetContent();

            //var toast = new ToastNotification(content.GetXml());

            //ToastNotificationManager.CreateToastNotifier().Show(toast);

            MessengerInstance.Send(new PlayEpisodeMessage(episodeViewModel.Episode));
        }
开发者ID:Solocast,项目名称:solocast-clients,代码行数:33,代码来源:PodcastDetailsViewModel.cs


示例19: ListView_ItemClick

        private void ListView_ItemClick(object sender, ItemClickEventArgs e)
        {
            var page = e.ClickedItem as PageVmi;
            if (page == null) return;

            Frame.Navigate(page.Type, page.Param);
        }
开发者ID:andyhammar,项目名称:win10apps-deepdive,代码行数:7,代码来源:MainPage.xaml.cs


示例20: ItemView_ItemClick

 /// <summary>
 /// Вызывается при щелчке элемента.
 /// </summary>
 /// <param name="sender">Представление сетки, в котором отображается нажатый элемент.</param>
 /// <param name="e">Данные о событии, описывающие нажатый элемент.</param>
 void ItemView_ItemClick(object sender, ItemClickEventArgs e)
 {
     // Переход к соответствующей странице назначения и настройка новой страницы
     // путем передачи необходимой информации в виде параметра навигации
     var itemId = ((SampleDataItem)e.ClickedItem).UniqueId;
     this.Frame.Navigate(typeof(ItemPage), itemId);
 }
开发者ID:katuuung,项目名称:Kursovaya,代码行数:12,代码来源:SectionPage.xaml.cs



注:本文中的Windows.UI.Xaml.Controls.ItemClickEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Controls.ListView类代码示例发布时间:2022-05-26
下一篇:
C# Controls.Grid类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap