2 implementations of IKeyboardInputSink
PresentationCore (1)
Core\CSharp\System\Windows\Interop\HwndSource.cs (1)
39public class HwndSource : PresentationSource, IDisposable, IWin32Window, IKeyboardInputSink
PresentationFramework (1)
src\Framework\System\Windows\Interop\HwndHost.cs (1)
35public abstract class HwndHost : FrameworkElement, IDisposable, IWin32Window, IKeyboardInputSink
53 references to IKeyboardInputSink
PresentationCore (24)
Core\CSharp\System\Windows\Interop\HwndSource.cs (21)
744public IEnumerable<IKeyboardInputSink> ChildKeyboardInputSinks 2046if (!((IKeyboardInputSink)this).HasFocusWithin() && !IsInExclusiveMenuMode) 2128msgdata.handled = ((IKeyboardInputSink)this).TranslateChar(ref msgdata.msg, modifierKeys); 2132msgdata.handled = ((IKeyboardInputSink)this).OnMnemonic(ref msgdata.msg, modifierKeys); 2186protected IKeyboardInputSite RegisterKeyboardInputSinkCore(IKeyboardInputSink sink) 2214IKeyboardInputSite IKeyboardInputSink.RegisterKeyboardInputSink(IKeyboardInputSink sink) 2251bool IKeyboardInputSink.TranslateAccelerator(ref MSG msg, ModifierKeys modifiers) 2282bool IKeyboardInputSink.TabInto(TraversalRequest request) 2335IKeyboardInputSite IKeyboardInputSink.KeyboardInputSite 2403return ((IKeyboardInputSink)mnemonicScope).OnMnemonic(ref msg, modifiers); 2448bool IKeyboardInputSink.OnMnemonic(ref MSG msg, ModifierKeys modifiers) 2474IKeyboardInputSink focusSink = this.ChildSinkWithFocus; 2487bool IKeyboardInputSink.TranslateChar(ref MSG msg, ModifierKeys modifiers) 2517bool IKeyboardInputSink.HasFocusWithin() 2596IKeyboardInputSink ChildSinkWithFocus 2600IKeyboardInputSink ikis=null; 2676IKeyboardInputSink focusSink = ChildSinkWithFocus; // can be null! 2720IKeyboardInputSink focusSink = (hasFocus || IsInExclusiveMenuMode) ? null : ChildSinkWithFocus; 2902IKeyboardInputSite keyboardInputSite = ((IKeyboardInputSink)this).KeyboardInputSite; 2906((IKeyboardInputSink)this).KeyboardInputSite = null;
Core\CSharp\System\Windows\Interop\HwndSourceKeyboardInputSite.cs (3)
22public HwndSourceKeyboardInputSite(HwndSource source, IKeyboardInputSink sink) 85IKeyboardInputSink IKeyboardInputSite.Sink 114private IKeyboardInputSink _sink;
PresentationFramework (27)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (7)
673IKeyboardInputSink sink; 681sink = (IKeyboardInputSink)hwndSource; 691sink.KeyboardInputSite = new KeyInputSite(new SecurityCriticalData<IKeyboardInputSink>(sink)); 1221internal KeyInputSite(SecurityCriticalData<IKeyboardInputSink> sink) 1233_sink = new SecurityCriticalData<IKeyboardInputSink>(null); 1239IKeyboardInputSink IKeyboardInputSite.Sink 1259SecurityCriticalData<IKeyboardInputSink> _sink;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
1045IKeyboardInputSink inputSink = null; 1105inputSink = nextTab as IKeyboardInputSink; 1169IKeyboardInputSink inputSink = PresentationSource.CriticalFromVisual(visual) as IKeyboardInputSink;
src\Framework\System\Windows\Interop\HwndHost.cs (16)
180bool handled = ((IKeyboardInputSink)this).TranslateAccelerator(ref msg, modifiers); 221bool handled = ((IKeyboardInputSink)this).TranslateAccelerator(ref msg, modifiers); 259protected virtual IKeyboardInputSite RegisterKeyboardInputSinkCore(IKeyboardInputSink sink) 270IKeyboardInputSite IKeyboardInputSink.RegisterKeyboardInputSink(IKeyboardInputSink sink) 303bool IKeyboardInputSink.TranslateAccelerator(ref MSG msg, ModifierKeys modifiers) 318bool IKeyboardInputSink.TabInto(TraversalRequest request) 333IKeyboardInputSite IKeyboardInputSink.KeyboardInputSite { get; [SecurityCritical] set; } 362bool IKeyboardInputSink.OnMnemonic(ref MSG msg, ModifierKeys modifiers) 394bool IKeyboardInputSink.TranslateChar(ref MSG msg, ModifierKeys modifiers) 421bool IKeyboardInputSink.HasFocusWithin() 1030IKeyboardInputSite keyboardInputSite = ((IKeyboardInputSink)this).KeyboardInputSite; 1041((IKeyboardInputSink)this).KeyboardInputSite = null; 1055IKeyboardInputSink source = PresentationSource.CriticalFromVisual(this, false /* enable2DTo3DTransition */) as IKeyboardInputSink; 1065((IKeyboardInputSink)this).KeyboardInputSite = source.RegisterKeyboardInputSink(this);
WindowsBase (2)
Base\System\Windows\Interop\IKeyboardInputSink.cs (1)
33IKeyboardInputSite RegisterKeyboardInputSink(IKeyboardInputSink sink);
Base\System\Windows\Interop\IKeyboardInputSite.cs (1)
32IKeyboardInputSink Sink {get;}