本文整理汇总了C#中Microsoft.Phone.Controls.GestureEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GestureEventArgs类的具体用法?C# GestureEventArgs怎么用?C# GestureEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GestureEventArgs类属于Microsoft.Phone.Controls命名空间,在下文中一共展示了GestureEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
}
}
示例2: MyMap_Tap
void MyMap_Tap(object sender, GestureEventArgs e)
{
if (_action != null)
{
_action.Tap(e);
}
}
示例3: mailToDeveloper_Tap
private void mailToDeveloper_Tap(object sender, GestureEventArgs e)
{
new EmailComposeTask {
Subject = "Privacy Qeustion",
To = "[email protected]"
}.Show();
}
示例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);
}
示例5: MyMap_Hold
void MyMap_Hold(object sender, GestureEventArgs e)
{
if (_action != null)
{
_action.Hold(e);
}
}
示例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);
}
示例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));
}
示例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);
}
示例9: Canvas_Tap
private void Canvas_Tap(object sender, GestureEventArgs e)
{
colorIndex++;
if (colorIndex >= colors.Length)
colorIndex = 0;
globeBrush.Color = colors[colorIndex];
}
示例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";
}
示例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));
}
}
示例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;
}
}
示例13: gistTile_Tap
private void gistTile_Tap(object sender, GestureEventArgs e)
{
Dispatcher.BeginInvoke(() =>
{
NavigationService.Navigate(new Uri("/MainPages/GistPage.xaml", UriKind.Relative));
});
}
示例14: Button_Tap
private void Button_Tap(object sender, GestureEventArgs e)
{
var button = (Button)sender;
var viewModelItem = (ItemViewModel)button.Tag;
viewModelItem.SubMenuIsVisible = !viewModelItem.SubMenuIsVisible;
}
示例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));
}