RichEditBox.InputScope RichEditBox.InputScope RichEditBox.InputScope RichEditBox.InputScope Property


Gets or sets the context for input used by this RichEditBox.

public : InputScope InputScope { get; set; }
InputScope InputScope();

void InputScope(InputScope inputscope);
public InputScope InputScope { get; set; }
Public ReadWrite Property InputScope As InputScope
<RichEditBox InputScope="inputScopeName" .../>

Property Value

The input scope, which provides a hint at the type of text input expected by the control.


Here's how to set the InputScope in XAML and in code.

<RichEditBox InputScope="Formula"/>

RichEditBox editBox = new RichEditBox();

InputScope scope = new InputScope();
InputScopeName scopeName = new InputScopeName();
scopeName.NameValue = InputScopeNameValue.Formula;
editBox.InputScope = scope;


The input scope provides a hint at the type of text input expected by the control. Various elements of the system can respond to the hint provided by the input scope and provide a specialized UI for the input type. For example, the soft keyboard might show a number pad for text input when the control has its InputScope set to Number.

The control might also interpret the data being entered differently (typically for East Asian related input scopes). The input scope does not perform any validation, and does not prevent the user from providing any input through a hardware keyboard or other input device.


While this property can hold a collection of InputeNameScope values, only the first is used, and the rest are ignored.

See also