title: Issue with making an hangman game in UWP
body: <p>I'm trying to create an hangman game in UWP and I'm not quite sure where to type the button click event of each letter in the code in order to have it recognize all of the variables in MainPage without affecting functionality. </p>
  
  <p>If possible to have the button clicks in a separate class, even better.
  Would appreciate if you could help me, thanks in advance!</p>
  
  <pre><code>namespace Hangman
  {
      public sealed partial class MainPage : Page
      {
          int _currentIndex;
          string _currentWord;
          string[] _strArr = { "ant", "bee", "spider", "mosquito" };
          int _difficulty = 1;
          public MainPage()
          {
              this.InitializeComponent();
              Random rnd = new Random();
              _currentIndex = rnd.Next(0, 4);
              _currentWord = _strArr[_currentIndex];
  
              foreach (char c in _currentWord)
              {
                  string _hiddenWord = string.Empty;
                  foreach (char ch in _currentWord)
                  {
                      _hiddenWord += "_" + (char)160;
                  }
                  _textBl.Text = _hiddenWord;
              }
          }
  
          private void a_Click(object sender, RoutedEventArgs e)
          {
  
          }
      }
  }
  </code></pre>