title: How to hide textboxes, labels and buttons C# WPF
body: <p>I would like to hide several textboxes, a label and a button as soon as a button is clicked... however, for some reason, my code doesn't seem to cause this effect. Nothing appears to happen. I'm using WPF.</p>
  
  <p>Here is my code: </p>
  
  <pre><code>private void doSomething_Click(object sender, RoutedEventArgs e)
      {
  
          Name.Visibility = Visibility.Hidden; 
  
      }
  </code></pre>
  
  <p>This code doesn't seem to work.. any ideas?</p>