效果: 代码: procedure TForm1.TreeView1ChangeCheck(Sender: TObject); var i: Integer; t: TTreeViewItem; begin t := TTreeViewItem(Sender); do t.Items[i].IsChecked := t.IsChecked; end; 源码下载:[示例]TreeViewCheck_Aone.zip
示例代码:TreeViewEx.zip 原文地址:http://www.codeproject.com/Tips/673071/WPF-TreeView-with-WinForms-Style-Fomat Introduction WPF default TreeView is very good, but many people still want it to have lines join each of its child elements, like Windows Forms T