System.Windows.Interop.IKeyboardInputSink.OnMnemonic Method

HwndHost.System.Windows.Interop.IKeyboardInputSink.OnMnemonic Method

.NET Framework 3.0
Called when one of the mnemonics for a sink is invoked.

Namespace: System.Windows.Interop
Assembly: PresentationFramework (in presentationframework.dll)

bool IKeyboardInputSink.OnMnemonic (
	ref MSG msg,
	ModifierKeys modifiers
)
You cannot use methods in XAML.

Parameters

msg

The message and associated data. Do not modify this structure. It is passed by reference only for performance reasons.

modifiers

Modifier keys.

Return Value

true if the message was handled; otherwise, false.

The Microsoft Windows message passed must be either WM_KEYDOWN or WM_SYSKEYDOWN.

If the component has child components, it must call each child component's method.

This is an explicit interface definition to support the interface contract and a lower level of keyboard support, and does not have practical application from user code.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2016 Microsoft