本文整理汇总了C#中Windows.UI.Xaml.Input.HoldingRoutedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# HoldingRoutedEventArgs类的具体用法?C# HoldingRoutedEventArgs怎么用?C# HoldingRoutedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HoldingRoutedEventArgs类属于Windows.UI.Xaml.Input命名空间,在下文中一共展示了HoldingRoutedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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());
}
示例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);
}
示例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);
}
}
示例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);
};
}
示例6: AccountList_Holding
private void AccountList_Holding(object sender, HoldingRoutedEventArgs e)
{
var senderElement = sender as FrameworkElement;
var flyoutBase = FlyoutBase.GetAttachedFlyout(senderElement);
flyoutBase.ShowAt(senderElement);
}
示例7: ListViewItemGrid_Holding
private void ListViewItemGrid_Holding(object sender, HoldingRoutedEventArgs e)
{
FrameworkElement senderElement = sender as FrameworkElement;
FlyoutBase flyoutBase = FlyoutBase.GetAttachedFlyout(senderElement);
flyoutBase.ShowAt(senderElement);
}
示例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);
}
示例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();
}
示例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);
}
}
示例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);
}
示例12: UserTravel_Holding
private void UserTravel_Holding(object sender, HoldingRoutedEventArgs e)
{
FrameworkElement element = sender as FrameworkElement;
if(element != null)
{
FlyoutBase.ShowAttachedFlyout(element);
}
}
示例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);
}
示例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);
}
示例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);
}
}