一开始属性是:
TextBlock1.Visibility = Visibility.Visible;
触发事件后执行:
TextBlock1.Visibility = Visibility.Collapsed;
失效。。。
重新new一个:
TextBlock1.Visibility = new Visibility(); TextBlock1.Visibility = Visibility.Collapsed;
完成!
时间: 2024-11-09 14:11:02
一开始属性是:
TextBlock1.Visibility = Visibility.Visible;
触发事件后执行:
TextBlock1.Visibility = Visibility.Collapsed;
失效。。。
重新new一个:
TextBlock1.Visibility = new Visibility(); TextBlock1.Visibility = Visibility.Collapsed;
完成!