KeyboardInputProcessor.ConversionModeChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
The Windows.UI.Input.Preview.Text APIs are part of a Limited Access Feature (see LimitedAccessFeatures class). Use the LAF Access Token Request Form to request an unlock token.
Note
To use this API in a Windows app being published to the Windows Store, you must declare the Text Input Method custom capability (Microsoft.appCategory.textInputMethod_8wekyb3d8bbwe) and request approval during the app submission process. See Custom capabilities for more info.
The Text Input Method capability enables several advanced features related to text input, including events for input focus (determining when to enter and exit) and the ability to read and write text within the current input focus's edit control.
// Register
event_token ConversionModeChanged(TypedEventHandler<KeyboardInputProcessor, ConversionModeChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void ConversionModeChanged(event_token const* cookie) const;
// Revoke with event_revoker
KeyboardInputProcessor::ConversionModeChanged_revoker ConversionModeChanged(auto_revoke_t, TypedEventHandler<KeyboardInputProcessor, ConversionModeChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<KeyboardInputProcessor,ConversionModeChangedEventArgs> ConversionModeChanged;
function onConversionModeChanged(eventArgs) { /* Your code */ }
keyboardInputProcessor.addEventListener("conversionmodechanged", onConversionModeChanged);
keyboardInputProcessor.removeEventListener("conversionmodechanged", onConversionModeChanged);
- or -
keyboardInputProcessor.onconversionmodechanged = onConversionModeChanged;
Public Custom Event ConversionModeChanged As TypedEventHandler(Of KeyboardInputProcessor, ConversionModeChangedEventArgs)