如何将XML数据绑定到WPF中的listview? [英] How to bind XML data to listview in WPF?
本文介绍了如何将XML数据绑定到WPF中的listview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前我正在尝试在列表视图中添加XML中存在的数据。
有没有办法完成它。谢谢
问候,
Swapnali
我尝试了什么:
i目前尝试使用普通绑定方法。它没有帮助
Currently i am trying to add data in list view which is present in XML.
is there any way to get it done. thank you
regards,
Swapnali
What I have tried:
i have currently tried using normal binding method. its not helping
推荐答案
使用XPath - MSDN是你的朋友;)如何:使用XMLDataProvider和XPath查询绑定到XML数据 [ ^ ]
Use XPath - MSDN is your friend ;) How to: Bind to XML Data Using an XMLDataProvider and XPath Queries[^]
WPF:使用XML数据填充ListView - Ged Mead&#39博客 - vbCity - .NET开发人员社区 [ ^ ]
这篇关于如何将XML数据绑定到WPF中的listview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文