Treeview项目克隆 [英] Treeview item clone
本文介绍了Treeview项目克隆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何克隆树视图项目?
推荐答案
以下是有关克隆wpf对象的一些信息:
http://social.msdn.microsoft.com/Forums/zh/wpf/thread/209597f0-0e8b-4fbb-a69d-a6479ed96187 [
Here is some info on cloning wpf objects:
http://social.msdn.microsoft.com/Forums/en/wpf/thread/209597f0-0e8b-4fbb-a69d-a6479ed96187[^]
Aside from that - why clone treeitem node?
You do have a view-model? If you do, than I believe that''s where you you should do the cloning - if any ... if it''s the same data, but different composition - just reuse the objects by referencing them ..
Regards
Espen Harlinn
这篇关于Treeview项目克隆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文