Example #1
0
        private void SendTrackFocusEvent(TrackFocusEventArgs e)
        {
            var trackFocusDelegate = TrackFocusDelegate;

            trackFocusDelegate?.Invoke(this, e);
        }
Example #2
0
 private static void OnFocusChanged(object sender, TrackFocusEventArgs args)
 {
     TrackSource(args.HwndGainFocus == IntPtr.Zero ? null : HwndSource.FromHwnd(args.HwndGainFocus));
     PossiblyUpdateRestoreFocus(args.HwndGainFocus);
 }