本文整理汇总了C#中Windows.UI.Xaml.Input.HoldingRoutedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# HoldingRoutedEventArgs类的具体用法?C# HoldingRoutedEventArgs怎么用?C# HoldingRoutedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HoldingRoutedEventArgs类属于Windows.UI.Xaml.Input命名空间,在下文中一共展示了HoldingRoutedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: lstCategoriesView_Holding
private void lstCategoriesView_Holding(object sender, HoldingRoutedEventArgs e)
{
FrameworkElement fe = sender as FrameworkElement;
FlyoutBase fl = FlyoutBase.GetAttachedFlyout(fe);
fl.ShowAt(fe);
}
开发者ID:azaitsevru,项目名称:simple-notes,代码行数:7,代码来源:CategoriesPage.xaml.cs
示例2: ImageToAdd_Holding
private void ImageToAdd_Holding(object sender, HoldingRoutedEventArgs e)
{
if (sender.GetType() == typeof(Image))
ImageToAdd_CreateDropDownMenu(sender as Image, e.GetPosition(sender as Image));
else
throw new Exception("Error: Expected sender to be Image but was: " + sender.GetType().ToString());
}
开发者ID:tomazio21,项目名称:DocFingerPrinterBeta,代码行数:7,代码来源:FilesPage.xaml.cs
示例3: ListViewItem_OnHolding
private void ListViewItem_OnHolding(object sender, HoldingRoutedEventArgs e)
{
var senderElement = sender as FrameworkElement;
FlyoutBase flyoutBase = FlyoutBase.GetAttachedFlyout(senderElement);
if (flyoutBase != null)
flyoutBase.ShowAtEx(senderElement);
}
开发者ID:Fezzer,项目名称:MugenMvvmToolkit.Samples,代码行数:7,代码来源:ProductWorkspaceView.xaml.cs
示例4: PlayerGrid_Holding
private async void PlayerGrid_Holding(object sender, HoldingRoutedEventArgs e)
{
if (e.HoldingState == Windows.UI.Input.HoldingState.Started)
{
await PlayersPageViewModel.instance.DeletePlayerButton((sender as Grid).DataContext as Player);
}
}
开发者ID:Speedydown,项目名称:Thirty_Seconds_WP,代码行数:7,代码来源:PlayersPage.xaml.cs
示例5: HoldRectangle_OnHolding
private void HoldRectangle_OnHolding(object sender, HoldingRoutedEventArgs e)
{
TimerValueRetriever();
if (e.HoldingState == HoldingState.Started)
{
if (timer.IsEnabled)
{
timer.Stop();
militimer.Stop();
_secondstime = TimeSpan.FromSeconds(_timerValue);
_minutestime = TimeSpan.FromMinutes(Convert.ToDouble(_secondstime.Minutes.ToString()));
timer.Tick -= TimerOnTick;
}
}
if (e.HoldingState != HoldingState.Completed) return;
timer.Interval = new TimeSpan(0, 0, 1);
militimer.Interval = new TimeSpan(0, 0, 0);
timer.Start();
militimer.Start();
timer.Tick += TimerOnTick;
militimer.Tick += (o, o1) =>
{
var j = 100;
var random = new Random();
j-= random.Next(0,90);
MillisecondText.Text = j.ToString(CultureInfo.CurrentCulture);
};
}
开发者ID:RohanRon,项目名称:Friend-App,代码行数:30,代码来源:TimerPage.xaml.cs
示例6: AccountList_Holding
private void AccountList_Holding(object sender, HoldingRoutedEventArgs e)
{
var senderElement = sender as FrameworkElement;
var flyoutBase = FlyoutBase.GetAttachedFlyout(senderElement);
flyoutBase.ShowAt(senderElement);
}
开发者ID:AsithPerera,项目名称:MoneyManager,代码行数:7,代码来源:AccountListUserControl.xaml.cs
示例7: ListViewItemGrid_Holding
private void ListViewItemGrid_Holding(object sender, HoldingRoutedEventArgs e)
{
FrameworkElement senderElement = sender as FrameworkElement;
FlyoutBase flyoutBase = FlyoutBase.GetAttachedFlyout(senderElement);
flyoutBase.ShowAt(senderElement);
}
开发者ID:elp87,项目名称:MyPills_WP8,代码行数:7,代码来源:SettingPage.xaml.cs
示例8: OnEventHolding
private void OnEventHolding(object sender, HoldingRoutedEventArgs e)
{
if (e.HoldingState != HoldingState.Started) return;
FrameworkElement element = sender as FrameworkElement;
if (element == null) return;
FlyoutBase.ShowAttachedFlyout(element);
}
开发者ID:IlyaOpanyuk,项目名称:testProject,代码行数:7,代码来源:MainPage.xaml.cs
示例9: OnItemHolded
/// <summary>
/// Triggered in case of the user holds / taps long on a article.
/// Open share menu
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnItemHolded(object sender, HoldingRoutedEventArgs e)
{
selectedFeedItem = GetFeedItemByButtonSender(sender);
if (selectedFeedItem == null) return;
DataTransferManager.ShowShareUI();
}
开发者ID:tscholze,项目名称:dotnet-dbudwm-blog-mobile-app,代码行数:13,代码来源:MainPage.xaml.cs
示例10: OnBackspaceHolding
/// <summary>
/// Processes press and hold for the back button
/// This clears the dialer number heap all at once.
/// </summary>
private void OnBackspaceHolding(object sender, HoldingRoutedEventArgs e)
{
DialerViewModel vm = (DialerViewModel)DataContext;
if ((vm != null) && (e.HoldingState == Windows.UI.Input.HoldingState.Started))
{
vm.ProcessBackSpaceHolding.Execute(null);
}
}
开发者ID:COMIsLove,项目名称:Windows-universal-samples,代码行数:12,代码来源:DialerPanel.xaml.cs
示例11: Grid_Holding
private void Grid_Holding(object sender, HoldingRoutedEventArgs e)
{
FrameworkElement senderElement = sender as FrameworkElement;
// If you need the clicked element:
// Item whichOne = senderElement.DataContext as Item;
FlyoutBase flyoutBase = FlyoutBase.GetAttachedFlyout(senderElement);
flyoutBase.ShowAt(senderElement);
}
开发者ID:Janerson,项目名称:TrackForMe,代码行数:8,代码来源:Home.xaml.cs
示例12: UserTravel_Holding
private void UserTravel_Holding(object sender, HoldingRoutedEventArgs e)
{
FrameworkElement element = sender as FrameworkElement;
if(element != null)
{
FlyoutBase.ShowAttachedFlyout(element);
}
}
开发者ID:bajinsheng,项目名称:Traveler,代码行数:8,代码来源:UserTravelPage.xaml.cs
示例13: OpenContextMenu
private void OpenContextMenu(object sender, HoldingRoutedEventArgs e)
{
AddTransactionView.IsNavigationBlocked = true;
var senderElement = sender as FrameworkElement;
var flyoutBase = FlyoutBase.GetAttachedFlyout(senderElement);
flyoutBase.ShowAt(senderElement);
}
开发者ID:gitter-badger,项目名称:MoneyManager,代码行数:8,代码来源:TransactionListUserControl.xaml.cs
示例14: Text_Holding
private void Text_Holding(object sender, HoldingRoutedEventArgs e)
{
var item = sender as TextBlock;
string FiwpName = item.Text + "/" + item.Tag.ToString();
this.Frame.Navigate(typeof(DownloadITR), FiwpName);
}
开发者ID:paraneye,项目名称:WinApp,代码行数:8,代码来源:SelectFiwpITR.xaml.cs
示例15: ButtonComment_Holding
private void ButtonComment_Holding(object sender, HoldingRoutedEventArgs e)
{
FrameworkElement button = (FrameworkElement)sender;
Model.Comment comment = (Model.Comment)button.Tag;
if (comment.Owner.Uid == Helper.Declares.CurrentUser.Uid)
{
FlyoutBase.ShowAttachedFlyout(button);
}
}
开发者ID:xtanuiha,项目名称:Worktile-For-WP8.1,代码行数:9,代码来源:PostPage.xaml.cs
示例16: TopicOnRightClick
private void TopicOnRightClick(object sender, HoldingRoutedEventArgs e)
{
if (ViewModel.PrevArgs.WorkMode == ForumBoardPageWorkModes.WatchedTopics || ViewModel.PrevArgs.WorkMode == ForumBoardPageWorkModes.UserSearch)
return;
if ((e.OriginalSource as FrameworkElement).DataContext is ForumTopicEntryViewModel)
ItemFlyoutService.ShowForumTopicFlyout(e.OriginalSource as FrameworkElement);
e.Handled = true;
}
开发者ID:Mordonus,项目名称:MALClient,代码行数:9,代码来源:ForumBoardPage.xaml.cs
示例17: ListViewItem_OnHolding
private void ListViewItem_OnHolding(object sender, HoldingRoutedEventArgs e)
{
FrameworkElement senderElement = sender as FrameworkElement;
FlyoutBase flyoutBase = FlyoutBase.GetAttachedFlyout(senderElement);
flyoutBase.ShowAt(senderElement);
//To get the clicked item
// var datacontext = (e.OriginalSource as FrameworkElement).DataContext;
}
开发者ID:bniculea,项目名称:passwordKeeperW10,代码行数:9,代码来源:DisplayAllView.xaml.cs
示例18: LayoutRoot_Holding
private void LayoutRoot_Holding(object sender, HoldingRoutedEventArgs e)
{
if (e.HoldingState != Windows.UI.Input.HoldingState.Started)
return;
IsHolding = true;
var targetElement = sender as FrameworkElement;
MenuFlyout flyout = (MenuFlyout)FlyoutBase.GetAttachedFlyout(targetElement);
flyout.ShowAt(targetElement, e.GetPosition(targetElement));
}
开发者ID:akshay2000,项目名称:MonocleGiraffe,代码行数:9,代码来源:ImageUserControl.xaml.cs
示例19: btnCheckin_Holding
private async void btnCheckin_Holding(object sender, HoldingRoutedEventArgs e)
{
switch (e.HoldingState)
{
case HoldingState.Started:
this.Status = HoldButtonStatus.Waiting;
this.PulseAnimation.Begin();
break;
case HoldingState.Completed:
this.CompletedAnimation.Begin();
TTService service = new TTService();
this.ButtonTopText.Text = "waiting";
this.ButtonBottomText.Visibility = Visibility.Collapsed;
DateTime? date = await service.CheckInOrOutAsync();
if (date.HasValue)
{
this.ButtonTopText.Text = "CHECKED";
this.ButtonBottomText.Visibility = Visibility.Visible;
this.ButtonBottomText.Text = ((DateTime)date).ToString("HH:mm:ss");
}
else
{
this.CompletedAnimation.Begin();
this.ButtonTopText.Text = "try again";
this.ButtonBottomText.Visibility = Visibility.Collapsed;
await Task.Delay(500);
if (this.Status == HoldButtonStatus.Waiting)
{
this.ButtonTopText.Text = this.topText;
this.ButtonBottomText.Text = this.bottonText;
this.ButtonBottomText.Visibility = Visibility.Visible;
}
}
this.Status = HoldButtonStatus.Idle;
break;
case HoldingState.Canceled:
this.ButtonTopText.Text = this.topText;
this.ButtonBottomText.Text = this.bottonText;
if (String.IsNullOrEmpty(this.ButtonBottomText.Text))
this.ButtonBottomText.Visibility = Visibility.Collapsed;
else
this.ButtonBottomText.Visibility = Visibility.Visible;
this.Status = HoldButtonStatus.Idle;
this.Circle.Fill = new SolidColorBrush(Colors.LightPink);
this.CanceledAnimation.Begin();
break;
}
}
开发者ID:IAPOLINARIO,项目名称:WP-ThinkTransform2015,代码行数:55,代码来源:HoldButton.xaml.cs
示例20: OnElementHolding
private static void OnElementHolding(object sender, HoldingRoutedEventArgs args)
{
// this event is fired multiple times. We do not want to show the menu twice
if (args.HoldingState != HoldingState.Started) return;
FrameworkElement element = sender as FrameworkElement;
if (element == null) return;
// If the menu was attached properly, we just need to call this handy method
FlyoutBase.ShowAttachedFlyout(element);
}
开发者ID:JulianMH,项目名称:music-3,代码行数:11,代码来源:MenuFlyoutService.cs
注:本文中的Windows.UI.Xaml.Input.HoldingRoutedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论