摘要:
//////publicstaticclassExtensionMethods{publicstaticvoidExpandAll(thisSystem.Windows.Controls.TreeViewtreeView){ExpandAllItems(treeView);} privatestaticvoidExpandAllItems(ItemsControlcontrol){if(control==null){return;} foreach(Objectitemincontrol.Items){System.Windows.Controls.TreeViewItemtreeItem=c 阅读全文