title: WPF: Using a Virtual Keyboard
body: <p>I have created a virtual keyboard user control to use across multiple windows within my application. I am wondering how I am able to get it to input into a textbox in a window when a key is pressed.</p>
  
  <p>What I am looking for is something like:</p>
  
  <pre><code>private void keyboardKey_Click(object sender, RoutedEventArgs e){
  var key = sender as Button;
  textbox.Text += key.Content;
  }
  </code></pre>
  
  <p>So for example, if I press the key for 'a', then 'a' is added to the textbox.</p>
  
  <p>My mind tends towards some sort of binding property but as I am new to WPF, I have no idea where to begin. Something like  </p>
  
  <pre><code>&lt;local:QWERTYKeyboard TextboxBinding="TextboxName"/&gt;
  </code></pre>
  
  <p>Thanks</p>