SetInputScope

public static class Extensions {

    public static void SetInputScope(this TextBox tb, InputScopeNameValue inputScopeNameValue) {
        tb.InputScope = new System.Windows.Input.InputScope() {
            Names = { new InputScopeName() { NameValue = inputScopeNameValue } }
        };
    }
}
Example:
textBoxAmount.SetInputScope(InputScopeNameValue.Number);

Description

Set the InputScope of TextBox on a Windows 7 Phone.

Details

Double click on the code to select all.

 

;