当前位置: 首页>>代码示例>>C#>>正文


C# Input.DoubleTappedRoutedEventArgs类代码示例

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


DoubleTappedRoutedEventArgs类属于Windows.UI.Xaml.Input命名空间,在下文中一共展示了DoubleTappedRoutedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Ellipse_DoubleTapped

 private void Ellipse_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
 {
     var ellipse = (sender as Ellipse);
     ellipse.Width *= 2;
     ellipse.Height *= 2;
     e.Handled = true;
 }
开发者ID:luiseduardohdbackup,项目名称:Windows-Universal,代码行数:7,代码来源:MainPage.xaml.cs

示例2: Image_DoubleTapped

 private void Image_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
 {
     if (swaghat.Visibility.Equals(Windows.UI.Xaml.Visibility.Collapsed))
     {
         swaghat.Visibility = Windows.UI.Xaml.Visibility.Visible;
     }
 }
开发者ID:D-Pham,项目名称:TutorMatch,代码行数:7,代码来源:MainPage.xaml.cs

示例3: lbHand_DoubleTapped

 private void lbHand_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
 {
     if (lbHand.SelectedIndex >= 0)
     {
         game.PlayOneRound(lbHand.SelectedIndex);
     }
 }
开发者ID:ppaier,项目名称:HFCSharp,代码行数:7,代码来源:MainPage.xaml.cs

示例4: PrevTrackImageDoubleTapped

 private void PrevTrackImageDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
 {
     if (LibraryViewModel.Current.PlayQueue.PrevPlayer.CanExecute(null))
     {
         LibraryViewModel.Current.PlayQueue.PrevPlayer.Execute(null);
     }
 }
开发者ID:Davidblkx,项目名称:musicmink,代码行数:7,代码来源:NowPlaying.xaml.cs

示例5: Grid_DoubleTapped

 private async void Grid_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
 {
     await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.High, () =>
     {
         this.Frame.Navigate(typeof(MainPage), null);
     });
 }
开发者ID:BilelAvans,项目名称:BallDrive,代码行数:7,代码来源:HighScoreView.xaml.cs

示例6: Grid_DoubleTapped

        private async void Grid_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            Grid grid = (Grid)sender;
            Records.Items items = (Records.Items)grid.DataContext;
            String Data = String.Empty;
            ResourceLoader resourceLoader = new ResourceLoader();

            Data += String.Format(resourceLoader.GetString("pageResult_Assignment") + Environment.NewLine, items.Oid);
            Data += String.Format(resourceLoader.GetString("pageResult_Registry") + Environment.NewLine, items.RegistryID);
            Data += String.Format(resourceLoader.GetString("pageResult_OrganizationName") + Environment.NewLine, items.Name);
            Data += String.Format(resourceLoader.GetString("pageResult_OrganizationAddress") + Environment.NewLine, items.Address);

            if ( (items.Protocol != String.Empty) && (items.Protocol != null))
            {
                Data += String.Format(resourceLoader.GetString("pageResult_Protocol") + Environment.NewLine, items.Protocol);
            }

            DataPackage dataPackage = new DataPackage();

            dataPackage.SetText(Data);
            Clipboard.SetContent(dataPackage);

            MessageDialog msgbox = new MessageDialog(Data, resourceLoader.GetString("pageResult_DialogCopied"));

            msgbox.Commands.Clear();
            msgbox.Commands.Add(new UICommand { Label = resourceLoader.GetString("pageResult_DialogClose"), Id = 0 });
 
            var res = await msgbox.ShowAsync();
        }
开发者ID:EddyBeaupre,项目名称:searchIEEE,代码行数:29,代码来源:pageResults.xaml.cs

示例7: Scene_DoubleTapped

 private void Scene_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
 {
     FrameworkElement sceneControl = sender as FrameworkElement;
     FlyoutBase flyoutBase = Flyout.GetAttachedFlyout(sceneControl);
     flyoutBase.Placement = FlyoutPlacementMode.Top;
     flyoutBase.ShowAt(sceneControl);
 }
开发者ID:kasparov,项目名称:StoryTeller,代码行数:7,代码来源:SingleStoryLineRendererControl.xaml.cs

示例8: image_DoubleTapped

        private void image_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            //Get the precise pointer position at the time of doubletap in order to center the view at that location
            p = e.GetPosition(sender as Image);
            //set the internal flag to track the doubletapped gesture
            isDoubleTapped = true;

        }
开发者ID:mbin,项目名称:Win81App,代码行数:8,代码来源:Scenario1.xaml.cs

示例9: OnDoubleTapped

        private async void OnDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            if (GameClient == null)
                return;

            var position = e.GetPosition(canvas);
            await PerformBasicTouchNavigation(canvas, position.ToVector2());
        }
开发者ID:SvenEV,项目名称:OrangeBugReloaded,代码行数:8,代码来源:OrangeBugPresenter.xaml.cs

示例10: UIElement_OnDoubleTapped

 private void UIElement_OnDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
 {
     var viewModel = this.DataContext as SignUpViewModel;
     if (viewModel != null && viewModel.DeleteUserImageCommand.CanExecute(null))
     {
         viewModel.DeleteUserImageCommand.Execute(null);
     }
 }
开发者ID:QuickBlox,项目名称:q-municate-dotnet,代码行数:8,代码来源:SignUpPage.xaml.cs

示例11: OnlineBuddyDoubleTapped

        private void OnlineBuddyDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            var textBlock = sender as TextBlock;

            var friend = textBlock.DataContext as Friend;
            var roomManager = RoomManager.GetInstance();

            roomManager.JoinRoom(friend);
        }
开发者ID:jonathanyeung,项目名称:ozwego,代码行数:9,代码来源:FriendsList.xaml.cs

示例12: OnGridDoubleTapped

        private void OnGridDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            if (e.OriginalSource != null && e.OriginalSource is Windows.UI.Xaml.FrameworkElement
                && (e.OriginalSource as Windows.UI.Xaml.FrameworkElement).DataContext != null
                && (e.OriginalSource as Windows.UI.Xaml.FrameworkElement).DataContext is ExtremumReportItemWrap)
            {
                ExtremumReportItemWrap wrap = (e.OriginalSource as Windows.UI.Xaml.FrameworkElement).DataContext as ExtremumReportItemWrap;

                this.Frame.Navigate(typeof(FlightAnalysis), wrap);
            }
        }
开发者ID:K-Library-NET,项目名称:PopcornStudios,代码行数:11,代码来源:ExtremumReport.xaml.cs

示例13: UIElement_OnDoubleTapped

 private void UIElement_OnDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
 {
     if (topbar.Opacity == 0)
     {
         ShowStoryboard.Begin();
     }
     else
     {
         HideStoryboard.Begin();
     }
 }
开发者ID:V3ronique,项目名称:PersonalAccounterApp,代码行数:11,代码来源:ExpensePage.xaml.cs

示例14: ListBoxHistory_DoubleTapped

        private void ListBoxHistory_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {

            if (ListBoxHistory.SelectedIndex==-1)
            {
                this.Frame.Navigate(typeof(MainPage));
            }
            else
            {
                this.Frame.Navigate(typeof(MainPage), ListBoxHistory.SelectedItem.ToString());
            }
        }
开发者ID:KECProjectGroupURMS,项目名称:SurferLiteDev,代码行数:12,代码来源:PageBookmarks.xaml.cs

示例15: ListView_DoubleTapped

        private void ListView_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            var listView = sender as ListView;

            var episode = listView.SelectedItem as EpisodeViewModel;

            if (ViewModel.PlayEpisode.CanExecute(episode))
            {
                ViewModel.PlayEpisode.Execute(episode);
            }

            e.Handled = true;
        }
开发者ID:AndrewGaspar,项目名称:Podcasts,代码行数:13,代码来源:PodcastPage.xaml.cs


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