سؤال

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.

هل كانت مفيدة؟

المحلول

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

    }

and in your XAML:

 <TextBox LostFocus="TextBox_OnLostFocus"></TextBox>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top