1

I have a text box. I want when user type in it as soon as the cursor leaves the text box, some hidden text fields become visible. How can this be done? Thanks.

GenericJon
  • 8,286
  • 4
  • 36
  • 49
getc he
  • 99
  • 4
  • 13

1 Answers1

1
 private void TextBox_OnLostFocus(object sender, RoutedEventArgs e)
    {
        myControl.Visibility = Visibility.Collapsed;

    }

and in your XAML:

 <TextBox LostFocus="TextBox_OnLostFocus"></TextBox>
Ketobomb
  • 1,973
  • 16
  • 23