(EventArgs e)
| 46 | } |
| 47 | |
| 48 | protected override void OnSourceInitialized(EventArgs e) |
| 49 | { |
| 50 | base.OnSourceInitialized(e); |
| 51 | |
| 52 | var hwnd = new WindowInteropHelper(this).EnsureHandle(); |
| 53 | var source = HwndSource.FromHwnd(hwnd); |
| 54 | source.AddHook(new HwndSourceHook(WndProc)); |
| 55 | } |
| 56 | |
| 57 | private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wp, IntPtr lp, ref bool handled) |
| 58 | { |
nothing calls this directly
no outgoing calls
no test coverage detected