문제

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