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 阅读(695) 评论(0) 编辑 收藏 举报