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

C# Input.GestureEventArgs类代码示例

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

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



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

示例1: WishButton_OnTap

        private async void WishButton_OnTap(object sender, GestureEventArgs e)
        {
            WishButton.IsEnabled = false;
            var wish = WishTextBox.Text;

            DarumaWishTheme theme;
           
            Enum.TryParse(WishThemePicker.SelectedItem.ToString(), out theme);

            if (string.IsNullOrEmpty(wish) 
                || !Enum.IsDefined(typeof(DarumaWishTheme), theme) 
                || theme == DarumaWishTheme.NoSet)
            {
                MessageBox.Show(AppResources.EmptyWishTextBox);
                WishButton.IsEnabled = true;
                WishTextBox.Focus();
                return;
            }

         

            await _viewModel.CreateDaruma(wish, theme);
            
            NavigationService.Navigate(new Uri(ViewUrlRouter.MainViewUrl, UriKind.Relative));
        }
开发者ID:KirillFormado,项目名称:DarumaWP,代码行数:25,代码来源:NewDarumaView.xaml.cs


示例2: OnDeleteTap

 private void OnDeleteTap(object sender, GestureEventArgs e)
 {
     var item = (DownloadItemDataModel) _focusedItem.DataContext;
     item.Cancel();
     ViewModel.Remove(item);
     ViewModel.DownloadsContainer.Remove(item);
 }
开发者ID:bdvsoft,项目名称:reader_wp8_OPDS,代码行数:7,代码来源:DownloadListPage.xaml.cs


示例3: UIElement_OnTap

        private void UIElement_OnTap(object sender, GestureEventArgs e)
        {
            IsHidden = false;

            AnimationHide.Begin();
            AnimationHide.Completed += (o, args) => PopupManager.Instance.Hide();
        }
开发者ID:kiendev,项目名称:FarjiChat,代码行数:7,代码来源:AvatarPicker.xaml.cs


示例4: OnHold

        protected override void OnHold(GestureEventArgs e)
        {
            HandleTapAndHold(e, true);

            if (!e.Handled)
                base.OnHold(e);
        }
开发者ID:stevehansen,项目名称:vidyano_v1,代码行数:7,代码来源:PersistentObjectAttributePresenter.cs


示例5: GoToStory

 private void GoToStory(object sender, GestureEventArgs gestureEventArgs)
 {
     var rssItem = (sender as StackPanel).DataContext as RssStory;
     var wbt = new WebBrowserTask();
     wbt.Uri = rssItem.StoryLink;
     wbt.Show();
 }
开发者ID:KnownSubset,项目名称:CustomizableRss,代码行数:7,代码来源:MainPage.xaml.cs


示例6: Messages_OnTap

 private void Messages_OnTap(object sender, GestureEventArgs e)
 {
     var shareStatusTask = new SmsComposeTask
     {
         Body = _infoSharing.Quote
     };
     shareStatusTask.Show();
 }
开发者ID:KirillFormado,项目名称:DarumaWP,代码行数:8,代码来源:SharingView.xaml.cs


示例7: SocialNetwork_OnTap

        private void SocialNetwork_OnTap(object sender, GestureEventArgs e)
        {
            var shareStatusTask = new ShareStatusTask
            {
                Status = _infoSharing.Quote
            };

            shareStatusTask.Show();
        }
开发者ID:KirillFormado,项目名称:DarumaWP,代码行数:9,代码来源:SharingView.xaml.cs


示例8: AlternativeName

        public void AlternativeName(object sender, GestureEventArgs gestureEventArgs)
        {
            var swtStore = (SimpleWebTokenStore)Application.Current.Resources["swtStore"];

            var name = tbUsername.Text;
            var nameIdentifier = swtStore.SimpleWebToken.NameIdentifier;

            RetrieveOrCreatePlayer(name, nameIdentifier);
        }
开发者ID:SamirHafez,项目名称:Bantu,代码行数:9,代码来源:LoginPage.xaml.cs


示例9: IssueListBox_Tap

        private void IssueListBox_Tap(object sender, GestureEventArgs e)
        {
            var issue = IssueListBox.SelectedItem as Issue;

            if (issue != null)
            {
                var frame = App.Current.RootVisual as PhoneApplicationFrame;
                frame.Navigate(new Uri("/Contexts/Review/Mvvm/IssueReviewPivotPage.xaml?key=" + issue.Key, UriKind.Relative));
            }
        }
开发者ID:aluetjen,项目名称:Wp7Jira,代码行数:10,代码来源:IssueListControl.xaml.cs


示例10: POnDoubleTap

            private void POnDoubleTap(object sender, GestureEventArgs gestureEventArgs)
            {
                var p = sender as Pushpin;
                if (p == null) return;

                var rv = p.Content as ReturnVisitData;

                if (rv == null) return;

				NavigationService.Navigate(new Uri(string.Format("/View/EditReturnVisit.xaml?id={0}", rv.ItemId.ToString(CultureInfo.InvariantCulture)), UriKind.Relative));
            }
开发者ID:darthcaedus58,项目名称:my-time-wp7,代码行数:11,代码来源:MapCalls.xaml.cs


示例11: Play

        public void Play(object sender, GestureEventArgs gestureEventArgs)
        {
            var cup = ((CupControl)sender).DataContext as CupVM;

            var currentGameState = Game.State;
            if (!Game.Play(cup))
                return;
            SystemTray.ProgressIndicator.IsVisible = true;
            Context.UpdateGame(Player.Name, Game.ToGame(), game =>
                Dispatcher.BeginInvoke(() =>
                {
                    SystemTray.ProgressIndicator.IsVisible = false;
                    switch (Game.State)
                    {
                        case GameState.Finished:
                            var winner = Game.Winner;
                            var score = Game.Score(winner).Stones;
                            if (winner == Player)
                            {
                                MessageBox.Show("Congratulations, you won! You have earned " + score + " points.");
                                Context.ScorePlayer(winner.Name, score, player =>
                                    Dispatcher.BeginInvoke(NavigationService.GoBack)
                                , () => { });
                            }
                            else
                            {
                                MessageBox.Show("Sorry, you lost.");
                                Context.ScorePlayer(winner.Name, score, player =>
                                    Dispatcher.BeginInvoke(NavigationService.GoBack)
                                , () => { });
                            }
                            break;
                        case GameState.Client:
                            if (currentGameState != GameState.Client)
                                _nsc.NotifyAsync(Player.Name, Game.Client.Name, Game.Id);
                            else
                                CupControl.AnimationDelayIndex = 0;
                            break;
                        case GameState.Host:
                            if (currentGameState != GameState.Host)
                                _nsc.NotifyAsync(Player.Name, Game.Host.Name, Game.Id);
                            else
                                CupControl.AnimationDelayIndex = 0;
                            break;
                    }
                }), () =>
                Dispatcher.BeginInvoke(() =>
                {
                    SystemTray.ProgressIndicator.IsVisible = false;
                    MessageBox.Show("Failed to register play. Try again.");
                })
            );
        }
开发者ID:SamirHafez,项目名称:Bantu,代码行数:53,代码来源:BantumiGamePage.xaml.cs


示例12: WishDaruma_OnTap

 private void WishDaruma_OnTap(object sender, GestureEventArgs e)
 {
     if (WishStack.Visibility == Visibility.Visible)
     {
         WishStack.Visibility = Visibility.Collapsed;
         NewDarumaImg.Source = new BitmapImage(new Uri(ImageUrlRouter.NewDaurmaImageUrl, UriKind.Relative));
     }
     else
     {
         WishStack.Visibility = Visibility.Visible;
         NewDarumaImg.Source = new BitmapImage(new Uri(ImageUrlRouter.WishedDaurmaImageUrl, UriKind.Relative));
     }
 }
开发者ID:KirillFormado,项目名称:DarumaWP,代码行数:13,代码来源:NewDarumaView.xaml.cs


示例13: HubTile_OnTap

 private void HubTile_OnTap(object sender, GestureEventArgs e)
 {
     var hub = (HubTile)sender;
     if (_flippedTiles.Contains(hub))
     {
         _flippedTiles.Remove(hub);
         VisualStateManager.GoToState(hub, "Expanded", true);
     }
     else
     {
         _flippedTiles.Add(hub);
         VisualStateManager.GoToState(hub, "Flipped", true);
     }
 }
开发者ID:Maskl,项目名称:Flags,代码行数:14,代码来源:ResultsWindowView.xaml.cs


示例14: ImgPhone_OnTap

        private void ImgPhone_OnTap(object sender, GestureEventArgs e)
        {
            var selectedFilmCenter = ((FrameworkElement)(sender)).DataContext as FilmCenter;
            if (null != selectedFilmCenter)
            {
                var phoneCallTask = new PhoneCallTask
                {
                    PhoneNumber = selectedFilmCenter.Phone,
                    DisplayName = selectedFilmCenter.DisplayName
                };

                phoneCallTask.Show();
            }
        }
开发者ID:rwecho,项目名称:WP-ShanghaiFilmCenters,代码行数:14,代码来源:FilmCenterLocations.xaml.cs


示例15: Upload_Button_Click

 private void Upload_Button_Click (object sender, GestureEventArgs e)
     {
     if (null == _progressIndicatror || !_progressIndicatror.IsVisible)
         {
         if (null != _recordingListBox.SelectedItem)
             {
             var recording = _recordingListBox.SelectedItem as Recording;
             if (null == Utilities.SkyDriveSession)
                 NavigationService.GoBack ();
             else
                 UploadFile (recording.Name);
             }
         }
     }
开发者ID:harishasan,项目名称:Circular-Recorder,代码行数:14,代码来源:Upload.xaml.cs


示例16: Mail_OnTap

        private void Mail_OnTap(object sender, GestureEventArgs e)
        {
            var s = new DarumaWishThemeToLocalizationString();
            var shareStatusTask = new EmailComposeTask
            {
                Body = _infoSharing.Quote
            };

            if (_infoSharing.WishTheme != DarumaWishTheme.NoSet)
            {
                shareStatusTask.Subject = s.GetLocalizationByTheme(_infoSharing.WishTheme);
            }

            //new ShareStatusTask { Status = Quote };
            shareStatusTask.Show();
        }
开发者ID:KirillFormado,项目名称:DarumaWP,代码行数:16,代码来源:SharingView.xaml.cs


示例17: LocationSwitch_Tap

        async void LocationSwitch_Tap(object sender, GestureEventArgs gestureEventArgs)
        {
            if (LocationSwitch.IsChecked ?? false)
            {
                var result = MessageBox.Show(AppResources.locationusetext,
                                             AppResources.gpsusetitle,
                                             MessageBoxButton.OKCancel);

                App.Settings.LocationServicesGranted = result == MessageBoxResult.OK;
                LocationSwitch.Content = (bool) LocationSwitch.IsChecked ? "On " : "Off";
            }
            else
            {
                App.Settings.LocationServicesGranted = false;
                LocationSwitch.Content = "Off";
            }
        }
开发者ID:ufacode,项目名称:imagenary.wp,代码行数:17,代码来源:AboutView.xaml.cs


示例18: Pivot_Tap

 private void Pivot_Tap(object sender, GestureEventArgs e)
 {
     var currSelectedItem = Pivot.SelectedItem as PivotItem;
     if (currSelectedItem != null && selectedItem != null)
     {
         if (currSelectedItem.Name == selectedItem.Name)
         {
             var listBox = currSelectedItem.Content as ListBox;
             if (listBox != null)
             {
                 object first = listBox.Items.FirstOrDefault();
                 if (first != null)
                     listBox.ScrollIntoView(first);
             }
         }
         selectedItem = currSelectedItem;
     }
 }
开发者ID:michelsalib,项目名称:Gi7,代码行数:18,代码来源:RepositoryView.xaml.cs


示例19: TileTap

        public void TileTap(object sender, GestureEventArgs args)
        {
            if (sender != null)
            {
                var objectToMap = sender as Chairty;

                var linktoNavigate = CreateSimpleDonationIntegrationLink(objectToMap.Id);
                var webBrowserTask = new WebBrowserTask
                {
                    Uri = new Uri(linktoNavigate, UriKind.Absolute)
                };
                webBrowserTask.Show();
            }
            else
            {
                MessageBox.Show("Something went wrong please try again or contact with support");
            }
        }
开发者ID:pawelsawicz,项目名称:LearnPledgeChallenge.WP8,代码行数:18,代码来源:CharitiesViewModel.cs


示例20: AddVehicleToMap_Tap

        private void AddVehicleToMap_Tap(object sender, GestureEventArgs e)
        {
            if (!String.IsNullOrEmpty(VehicleNameTextBox.Text))
            {
                var vehicle = VehicleNameTextBox.Text;

                if (_vehicleProvider.GetAvailableVehicles().ContainsKey(vehicle) && !_myVehicles.ContainsKey(vehicle))
                {
                    VehicleType vehilceType;
                    _vehicleProvider.GetAvailableVehicles().TryGetValue(vehicle, out vehilceType);
                    _myVehicles.Add(new KeyValuePair<string, VehicleType>(vehicle, vehilceType));
                }

            }
            else
            {
                MessageBox.Show("Please type a valid value");
            }
        }
开发者ID:pawelsawicz,项目名称:PeregrinWP,代码行数:19,代码来源:MapView.xaml.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Threading.DispatcherTimer类代码示例发布时间:2022-05-24
下一篇:
C# Forms.WebBrowser类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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