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

C# Controls.GestureEventArgs类代码示例

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

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



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

示例1: torchImage_Tap

        private void torchImage_Tap(object sender, GestureEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("click:" + cam.LampEnabled);
            //cam.LampEnabled = !cam.LampEnabled;
            if (cam.LampEnabled == true)
            {

                if (cam.IsRecording == false)
                {
                    // 打开.
                    cam.StartRecording();
                    BitmapImage ontorchimage = new BitmapImage(new Uri("/FlashLightTest;component/torch_pressed.png", UriKind.Relative));
                    torchImage.Source = ontorchimage;
                    lightImage.Visibility = Visibility.Visible;
                }
                else
                {
                    // 关闭
                    cam.StopRecording();
                    BitmapImage offtorchimage = new BitmapImage(new Uri("/FlashLightTest;component/torch_normal.png", UriKind.Relative));
                    torchImage.Source = offtorchimage;
                    lightImage.Visibility = Visibility.Collapsed;
                }
            }
        }
开发者ID:fairzy,项目名称:wp7-flashlight,代码行数:25,代码来源:MainPage.xaml.cs


示例2: MyMap_Tap

 void MyMap_Tap(object sender, GestureEventArgs e)
 {
     if (_action != null)
     {
         _action.Tap(e);
     }  
 }
开发者ID:SuperMap,项目名称:iClient-WP8-Example,代码行数:7,代码来源:MainPage.xaml.cs


示例3: mailToDeveloper_Tap

 private void mailToDeveloper_Tap(object sender, GestureEventArgs e)
 {
     new EmailComposeTask {
       Subject = "Privacy Qeustion",
       To = "[email protected]"
       }.Show();
 }
开发者ID:eladb,项目名称:telobike,代码行数:7,代码来源:MainPage.xaml.cs


示例4: OnCreatingCycleTile

    private void OnCreatingCycleTile(object sender, GestureEventArgs e)
    {
      var cycleTile = new CycleTileData
      {
        Title = "Leipzig Impressionen",
        Count = 3,
        SmallBackgroundImage = new Uri("Assets/CycleTile/Tiles-2.jpg", UriKind.Relative),
        CycleImages = new List<Uri>
        {
          new Uri("Assets/CycleTile/Tiles-1.jpg", UriKind.Relative),
          new Uri("Assets/CycleTile/Tiles-2.jpg", UriKind.Relative),
          new Uri("Assets/CycleTile/Tiles-3.jpg", UriKind.Relative),
          new Uri("Assets/CycleTile/Tiles-4.jpg", UriKind.Relative),
          new Uri("Assets/CycleTile/Tiles-5.jpg", UriKind.Relative),
          new Uri("Assets/CycleTile/Tiles-6.jpg", UriKind.Relative),
          new Uri("Assets/CycleTile/Tiles-7.jpg", UriKind.Relative),
          new Uri("Assets/CycleTile/Tiles-8.jpg", UriKind.Relative),
          new Uri("Assets/CycleTile/Tiles-9.jpg", UriKind.Relative),
        }
      };

      ShellTile.Create(new Uri("/MainPage.xaml?shellTemplateType=CycleTemplate",
                      UriKind.Relative), 
                      cycleTile,
                      true);
    }
开发者ID:GregOnNet,项目名称:WP8BookSamples,代码行数:26,代码来源:MainPage.xaml.cs


示例5: MyMap_Hold

 void MyMap_Hold(object sender, GestureEventArgs e)
 {
     if (_action != null)
     {
         _action.Hold(e);
     }
 }
开发者ID:SuperMap,项目名称:iClient-WP8-Example,代码行数:7,代码来源:MainPage.xaml.cs


示例6: OnLoadingFile

        private async void OnLoadingFile(object sender, GestureEventArgs e)
        {
            var city = new City
            {
                Name = "Leipzig",
                State = "Saxony",
                Country = "Germany",
                Population = 550000
            };

            string json = JsonConvert.SerializeObject(city);

            var cityFile = 
              await ApplicationData.Current
                                   .LocalFolder.CreateFileAsync(
                                     "leipzig.city",
                                     CreationCollisionOption.ReplaceExisting);

            using (var stream = await cityFile.OpenAsync(FileAccessMode.ReadWrite))
            {
                using (var writer = new DataWriter(stream))
                {
                    writer.WriteString(json);
                    await writer.StoreAsync();
                }
            }

            Launcher.LaunchFileAsync(cityFile);
        }
开发者ID:GregOnNet,项目名称:WP8BookSamples,代码行数:29,代码来源:MainPage.xaml.cs


示例7: Article_Tap

 void Article_Tap(object sender, GestureEventArgs e)
 {
     Image src = (Image)sender;
     string imgsrc = src.Tag.ToString();
     imgsrc = HttpUtility.UrlEncode(imgsrc);
     NavigationService.Navigate(new Uri("/pages/petdetails.xaml?src="+imgsrc,UriKind.Relative));
 }
开发者ID:ahmeda8,项目名称:RodeDog,代码行数:7,代码来源:mypage.xaml.cs


示例8: CommandeAnnales_Tap

        private void CommandeAnnales_Tap(object sender, GestureEventArgs e)
        {
            button1.Visibility = Visibility.Collapsed;
            loginCommande.Visibility = Visibility.Collapsed;
            TexteAnnales.Visibility = Visibility.Visible;
            TexteAnnales.Text = "Envoi de la commande...";

            if (panier.Count == 0 || panier.Count > 8)
            {
                TexteAnnales.Text = "Choisissez entre 1 et 8 UVs.";
                Perform(() => finCommande(), 2000);
                return;
            }

            var client = new WebClient();
            var texte = "login=" + loginCommande.Text + "&annales=";
            int i = 0;
            foreach (string nom in panier)
            {
                if (i > 0)
                {
                    texte += ",";
                }
                texte += nom;
                i++;
            }
            //client.UploadStringCompleted += new UploadStringCompletedEventHandler(handlerCommande);
            client.OpenReadCompleted += new OpenReadCompletedEventHandler(handlerCommande);
            client.OpenReadAsync(new Uri("http://assos.utc.fr/polar/annales/json?" + texte));
            //client.UploadStringAsync(new Uri("http://assos.utc.fr/polar/annales/borne?commander"), texte);
        }
开发者ID:apuyou,项目名称:polar-bear,代码行数:31,代码来源:MainPage.xaml.cs


示例9: Canvas_Tap

 private void Canvas_Tap(object sender, GestureEventArgs e)
 {
     colorIndex++;
     if (colorIndex >= colors.Length)
         colorIndex = 0;
     globeBrush.Color = colors[colorIndex];
 }
开发者ID:shreedharcva,项目名称:Windows-Phone-7-In-Action,代码行数:7,代码来源:HelloPage.xaml.cs


示例10: pingme_DoubleTap

 private void pingme_DoubleTap(object sender, GestureEventArgs e)
 {
     ping = new PingHelper();
     ping.PingPongResponse += new PingHelper.PingPongResponseHandler(ping_PingPongResponse);
     ping.PingPushCoinServer();
     this.pong.Text = "... contacting PC";
 }
开发者ID:soupmonkey,项目名称:pushcoin,代码行数:7,代码来源:MainPage.xaml.cs


示例11: listview_Tap

        private void listview_Tap(object sender, GestureEventArgs e)
        {
            if (listview.SelectedItem.Equals("-------------------------------\n"))
            {
                MessageBox.Show("Selecione o nome corretamente");
                listview.IsEnabled = true;
            }
            else
            {
                listview.IsEnabled = false;
                //var lista = App.Visao.PesquisaPreço((string)listview.SelectedItem);

                string aux = "";
                string NomeProd = (string)listview.SelectedItem;

                /*foreach (var item in NomeProd)
                {
                    if (!item.Equals('\n'))
                        aux += item;
                    else
                        aux += ' ';
                }*/

                //Resultados result = new Resultados(lista);

                var app = (Application.Current as App);
                //Adicionamos o Texto na Variável Global
                app.ParametroProduto = NomeProd;
                //Chamamos a página que receberá o Dado
                NavigationService.Navigate(new Uri("/ResultadoPrecos.xaml", UriKind.Relative));
            }
        }
开发者ID:ribeiroluis,项目名称:Projeto_RGL,代码行数:32,代码来源:MainPage.xaml.cs


示例12: piece_Tap

        private void piece_Tap(object sender, GestureEventArgs e)
        {
            //make this generic for all ellipses
            //dont rename refactor
            
            //try to set the target name property to the current piece
            //use the sender first

            Ellipse tmp = (Ellipse)sender;

            try
            {
                //call set value
                //tmp.Tag = "change theTag";
                //tmp.SetValue(Tag, "change the tag");

                //make sure the animation is stopped before reset
                pieceAnimation.Stop();
                //set the taRGETname property
                pieceAnimation.SetValue(Storyboard.TargetNameProperty, tmp.Name);
                //String curreE = pieceAnimation.GetValue(Storyboard.TargetNameProperty).ToString;
                pieceAnimation.Begin();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error encountered: " + System.Environment.NewLine + ex.Message);
                throw;
            }
        }
开发者ID:mysterydeveloper,项目名称:C-programming,代码行数:29,代码来源:MainPage.xaml.cs


示例13: gistTile_Tap

 private void gistTile_Tap(object sender, GestureEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
     {
         NavigationService.Navigate(new Uri("/MainPages/GistPage.xaml", UriKind.Relative));
     });
 }
开发者ID:jel-massih,项目名称:GitDuck,代码行数:7,代码来源:HomePage.xaml.cs


示例14: Button_Tap

        private void Button_Tap(object sender, GestureEventArgs e)
        {
            var button = (Button)sender;
            var viewModelItem = (ItemViewModel)button.Tag;

            viewModelItem.SubMenuIsVisible = !viewModelItem.SubMenuIsVisible;
        }
开发者ID:jessetabak,项目名称:wpanimationproblem,代码行数:7,代码来源:ItemView.xaml.cs


示例15: RiverList_Tap

 private void RiverList_Tap(object sender, GestureEventArgs e)
 {
     var root = Application.Current.RootVisual as FrameworkElement;
     if (root == null) return;
     root.DataContext = RiverList.SelectedItem;
     NavigationService.Navigate(new Uri("/RiverDetail.xaml", UriKind.RelativeOrAbsolute));
 }
开发者ID:dbrgn,项目名称:SwissRiverTemperatures,代码行数:7,代码来源:MainPage.xaml.cs


示例16: _2_Tap

 private void _2_Tap(object sender, GestureEventArgs e)
 {
     if (checkfun(_2.Text))
     {
         _2.Opacity = 0.3;
     }
 }
开发者ID:krishnadevalla,项目名称:Enque,代码行数:7,代码来源:Page2.xaml.cs


示例17: UIElement_OnTap

 /// <summary>
 /// при нажатии происходит отправка сообщения
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UIElement_OnTap(object sender, GestureEventArgs e)
 {
     var message = box.Text;
     WebClient wc = new WebClient();
     string uri = string.Format("https://api.vk.com/method/wall.post.xml?owner_id={0}&message={1}&access_token={2}", App.IdUser, message, App.AccessToken);
     wc.DownloadStringAsync(new Uri(uri));
 }
开发者ID:plotkin,项目名称:hello_vk_api,代码行数:12,代码来源:MainPage.xaml.cs


示例18: Customer_Tap

        private void Customer_Tap(object sender, GestureEventArgs e)
        {
            var customer = ((FrameworkElement) sender).DataContext as Customer;
            if (customer == null)
                return;

            NavigationService.Navigate(new Uri("/EditCustomerPage.xaml?customerId=" + customer.Id, UriKind.Relative));
        }
开发者ID:bendewey,项目名称:LeadPro,代码行数:8,代码来源:MainPage.xaml.cs


示例19: image_Tap

 private void image_Tap(object sender, GestureEventArgs e)
 {
     Image image = (Image)sender;
     string file = image.Tag.ToString();
     file = file.Substring(0, file.LastIndexOf('_'));
     file = file + ".jpg";
     NavigationService.Navigate(new Uri("/FullView.xaml?msg=" + file, UriKind.Relative));
 }
开发者ID:UWbadgers16,项目名称:PhotoEnhancement,代码行数:8,代码来源:AllPhotos.xaml.cs


示例20: tbson_DoubleTap

 private void tbson_DoubleTap(object sender, GestureEventArgs e)
 {
     if (tbson.Text != "")
     {
         Clipboard.SetText(tbson.Text);
         MessageBox.Show("Son şifreniz panoya başarıyla kopyalandı.");
     }
 }
开发者ID:hsynlms,项目名称:WP-PGenerator,代码行数:8,代码来源:MainPage.xaml.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Controls.ListPicker类代码示例发布时间:2022-05-26
下一篇:
C# Controls.DatePicker类代码示例发布时间: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