wpf的什么属性和winfrom的HasChildren属性一样
判断VisualTreeHelper.GetChildrenCount(parent)是不是0就行了其实winfrom的HasChildren属性也是多余的,this.Controls.Count就够了呀