摘要:
一、查找某种类型的子控件,并返回一个List集合public List GetChildObjects(DependencyObject obj, Type typename) where T : FrameworkElement { DependencyObject child = null; List childList = new List();for (int i = 0; i (child,typename)); }return childList; }调用:List listButtons... 阅读全文