当前位置: 首页>>代码示例>>C#>>正文


C# Input.HoldingRoutedEventArgs类代码示例

本文整理汇总了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);
        }
开发者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


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