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