wpf 查找children的方法
var newValue = (bool)args.NewValue;
HZWaitLoadingEx source = (HZWaitLoadingEx)sender;
ControlTemplate ct = source.Template;
ContentPresenter busycontent = ct.FindName("busycontent", source) as ContentPresenter;
busycontent.Visibility = newValue ? Visibility.Visible : Visibility.Collapsed;
posted on 2018-01-22 14:37 Shine-Zhong 阅读(732) 评论(0) 收藏 举报
浙公网安备 33010602011771号