Esempio n. 1
0
 private void Grid_Holding(object sender, HoldingRoutedEventArgs e)
 {
     menu.ShowAt(sender as Grid, e.GetPosition(sender as Grid));
 }
 Point IHoldingRoutedEventArgsResolver.GetPosition(HoldingRoutedEventArgs e, UIElement relativeTo) => e.GetPosition(relativeTo);
Esempio n. 3
0
 private void Viewbox_Holding(object sender, HoldingRoutedEventArgs e)
 {
     (vbCanvas.Children.First() as TextBlock).Text = string.Format("VB Holding {0}, (X:{1},Y:{2})"
                                                                   , DateTime.Now.ToString("hh:mm:ss"), e.GetPosition(vbCanvas).X, e.GetPosition(vbCanvas).Y);
 }
Esempio n. 4
0
 /// <summary>
 /// User flyout (holding)
 /// </summary>
 private void username_Holding(object sender, HoldingRoutedEventArgs e)
 {
     if (e.HoldingState == Windows.UI.Input.HoldingState.Started)
     {
         if (!App.CurrentGuildIsDM)
         {
             App.ShowMenuFlyout(this, FlyoutManager.Type.GuildMember, DisplayedFriend.User.Id, App.CurrentGuildId, e.GetPosition(this));
         }
     }
 }
Esempio n. 5
0
 private void Border_Holding(object sender, HoldingRoutedEventArgs e)
 {
     disaid = ((sender as Border).DataContext as bodyModel).param;
     menuFlyout.ShowAt(sender as Border, e.GetPosition(sender as Border));
 }
 private void OnHolding(object sender, HoldingRoutedEventArgs e)
 {
     ViewModel.Initialize(e.GetPosition(sender as UIElement));
 }
Esempio n. 7
0
        private void Grid_Holding_1(object sender, HoldingRoutedEventArgs e)
        {
            var pos = e.GetPosition(this);

            AddWithFocus(string.Format("{0}:{1} Hold {2}", (int)pos.X, (int)pos.Y, e.HoldingState));
        }
 private void UserIconRect_Holding(object sender, HoldingRoutedEventArgs e)
 {
     e.Handled = true;
     if (e.HoldingState == Windows.UI.Input.HoldingState.Started)
     {
         App.ShowMenuFlyout(this, Common.AvatarString(LocalState.CurrentUser.Avatar, LocalState.CurrentUser.Id), e.GetPosition(this));
     }
 }
Esempio n. 9
0
        private void Control_Holding(object sender, HoldingRoutedEventArgs e)
        {
            var pos = e.GetPosition((UIElement)sender);

            Element.OnLongTapped(pos.X / Element.ViewScale + Element.ViewPoint.X, pos.Y / Element.ViewScale + Element.ViewPoint.Y);
        }
Esempio n. 10
0
 private void OpenMenuFlyout(object sender, HoldingRoutedEventArgs e)
 {
     if (e.HoldingState == HoldingState.Started)
     {
         App.ShowMenuFlyout(this, FlyoutManager.Type.GuildMember, DisplayedMember.Raw.User.Id, App.CurrentGuildId, e.GetPosition(this));
     }
 }
Esempio n. 11
0
 private void Avatar_Holding(object sender, HoldingRoutedEventArgs e)
 {
     e.Handled = true;
     if (e.HoldingState == Windows.UI.Input.HoldingState.Started)
     {
         App.ShowMenuFlyout(this, Common.AvatarString(profile.user.Avatar, userid), e.GetPosition(this));
     }
 }
Esempio n. 12
0
        private void ContainerStackPanel_Holding(object sender, HoldingRoutedEventArgs e)
        {
            var item = sender as FrameworkElement;

            ShowFileContextMenu(item, e.GetPosition(this));
        }
Esempio n. 13
0
 private void latestListView_Holding(object sender, HoldingRoutedEventArgs e)
 {
     CommentMenuFlyout.ShowAt((FrameworkElement)sender, e.GetPosition(sender as UIElement));
 }
Esempio n. 14
0
 private void UploadArea_Holding(object sender, HoldingRoutedEventArgs e)
 {
     UploadAreaMenuFlyout.ShowAt(sender as FrameworkElement, e.GetPosition(sender as FrameworkElement));
 }
Esempio n. 15
0
        private void Grid_Holding(object sender, HoldingRoutedEventArgs e)
        {
            FrameworkElement element = sender as FrameworkElement;

            menuFlyout.ShowAt(element, e.GetPosition(element));
        }