本文整理汇总了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;
}
示例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;
}
}
示例3: lbHand_DoubleTapped
private void lbHand_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
{
if (lbHand.SelectedIndex >= 0)
{
game.PlayOneRound(lbHand.SelectedIndex);
}
}
示例4: PrevTrackImageDoubleTapped
private void PrevTrackImageDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
{
if (LibraryViewModel.Current.PlayQueue.PrevPlayer.CanExecute(null))
{
LibraryViewModel.Current.PlayQueue.PrevPlayer.Execute(null);
}
}
示例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);
});
}
示例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();
}
示例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);
}
示例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;
}
示例9: OnDoubleTapped
private async void OnDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
{
if (GameClient == null)
return;
var position = e.GetPosition(canvas);
await PerformBasicTouchNavigation(canvas, position.ToVector2());
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例13: UIElement_OnDoubleTapped
private void UIElement_OnDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
{
if (topbar.Opacity == 0)
{
ShowStoryboard.Begin();
}
else
{
HideStoryboard.Begin();
}
}
示例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());
}
}
示例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;
}