LINQ TO XML:如何使用linq在Silverlight中将控件绑定到xml中的数据 [英] LINQ TO XML : How to bind a control to data from xml in silverlight using linq
本文介绍了LINQ TO XML:如何使用linq在Silverlight中将控件绑定到xml中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将数据绑定到从d xml检索数据的datagrid.如果xml不属于层级且xml仅包含一个子代,然后具有公共属性和元素,则可以做到这一点.但是,如果xml在整个过程中不是统一的,我将无法绑定它..请帮我举一个合适的例子.
I want to bind data to datagrid retrieving data from d xml.. um able to do it if the xml is not hierarical and the xml contains on;ly one descendant and then common attributes and elements. but if the xml is not uniform throughout i am unable to bind it.. pls help me with a suitable example.
推荐答案
这应该对您有所帮助http://stackoverflow.com/questions/627979/how-to-bind-xml -to-a-datagrid-in-silverlight
这篇关于LINQ TO XML:如何使用linq在Silverlight中将控件绑定到xml中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文