示例#1
0
        private void ScrollView_GettingFocus(UIElement sender, Windows.UI.Xaml.Input.GettingFocusEventArgs args)
        {
            FrameworkElement oldFE     = args.OldFocusedElement as FrameworkElement;
            string           oldFEName = (oldFE == null) ? "null" : oldFE.Name;
            FrameworkElement newFE     = args.NewFocusedElement as FrameworkElement;
            string           newFEName = (newFE == null) ? "null" : newFE.Name;

            AppendAsyncEventMessage($"ScrollView.GettingFocus FocusState={args.FocusState}, Direction={args.Direction}, InputDevice={args.InputDevice}, oldFE={oldFEName}, newFE={newFEName}");
        }
示例#2
0
        private void ScrollViewer_GettingFocus(UIElement sender, Windows.UI.Xaml.Input.GettingFocusEventArgs args)
        {
            FrameworkElement oldFE     = args.OldFocusedElement as FrameworkElement;
            string           oldFEName = (oldFE == null) ? "null" : oldFE.Name;
            FrameworkElement newFE     = args.NewFocusedElement as FrameworkElement;
            string           newFEName = (newFE == null) ? "null" : newFE.Name;

            AppendAsyncEventMessage("ScrollViewer.GettingFocus FocusState=" + args.FocusState + ", Direction=" + args.Direction + ", InputDevice=" + args.InputDevice + ", oldFE=" + oldFEName + ", newFE=" + newFEName);
        }
示例#3
0
 private void SubListView_GettingFocus(Windows.UI.Xaml.UIElement sender, Windows.UI.Xaml.Input.GettingFocusEventArgs args)
 {
     System.Diagnostics.Debug.WriteLine("GotFocus");
 }
示例#4
0
 private void NB_Meta_GettingFocus(Windows.UI.Xaml.UIElement sender, Windows.UI.Xaml.Input.GettingFocusEventArgs args)
 {
     lastPressed = null;
 }