标签:
一开始属性是:
TextBlock1.Visibility = Visibility.Visible;
触发事件后执行:
TextBlock1.Visibility = Visibility.Collapsed;
失效。。。
重新new一个:
TextBlock1.Visibility = new Visibility(); TextBlock1.Visibility = Visibility.Collapsed;
完成!
C#,WPF,Visibility类型为Visible后无法转为Collapsed,显示后隐藏
标签:
原文地址:http://www.cnblogs.com/cela/p/5192555.html