title: How can I get WinRT InputScope to work in C# code, not XAML?
body: <p>Here is my code that does not work:</p>
  
  <pre><code>TheTextBox.InputScope = new InputScope();
  TheTextBox.InputScope.Names.Add( 
      new InputScopeName( InputScopeNameValue.Number ) );
  </code></pre>
  
  <p>No special keyboard shows up when I tap on the TextBox. I just get the standard keyboard.</p>
  
  <p>I would like to get this to work but Windows 8 apparently doesn't support this. I have searched for answers to this , but only found solutions that say to change the XAML. That is not a solution for me because I dislike having a bunch of UserControls just to have a variety of input scopes. </p>
  
  <p>I have added this code to the Loaded event handler for the text control. It still didn't work there, as one internet answer suggested.</p>
  
  <p>I tried using "Number" and "TelephoneNumber" and neither worked in code.</p>
  
  <p>I am using Visual Studio 2012 and a Windows Store C# app project.</p>
  
  <p>Thanks.</p>
  
  <p>Dave</p>