Windows phone 7 xml文件读取数据并将其绑定到按钮';s在wp7应用程序中单击事件

Windows phone 7 xml文件读取数据并将其绑定到按钮';s在wp7应用程序中单击事件,windows-phone-7,Windows Phone 7,我是WP7应用程序开发的新手,尝试在按钮的单击事件中读取xml文件数据并将其绑定到listbox控件 有人能帮我解决这个问题吗 以下是我的xml文件格式: 我想在单击按钮时将此xml的描述标记绑定到listbox控件 <ROOT> <COMPANY NAME="Mercedes Benz"> <Car NAME="A-Class—Hatchback"> <Description> <![CDATA[ Mercedes Benz will la

我是WP7应用程序开发的新手,尝试在按钮的单击事件中读取xml文件数据并将其绑定到listbox控件

有人能帮我解决这个问题吗

以下是我的xml文件格式: 我想在单击按钮时将此xml的描述标记绑定到listbox控件

<ROOT>
<COMPANY NAME="Mercedes Benz">
<Car NAME="A-Class—Hatchback">
<Description>
<![CDATA[ Mercedes Benz will launch the sporty A-Class hatchback, its entry level variant based on the MFA platform for the European market in September 2012.]]>
</Description> 
<COLOR>Red</COLOR>
<Car NAME="Mercedes-Benz G-Class">
<Description>
<![CDATA[ It's the midweek hump and for many a first day back to work, time to jump to action, here's a Mercedes-Benz G-Class in action to inspire to push on to the end of the week!]]>
</Description> 
<COLOR>BLACK</COLOR>
</COMPANY>
<COMPANY NAME="BMW">
<Car NAME="BMW X1">
<Description>
<![CDATA[ The sporty and elegant design of the all-new three-door model, along with additional engine choices, are distinguishing features that sharpen the unmistakable profile of the all-new BMW 1 Series (3-door) as the recognised standard of sheer driving pleasure in the premium compact car segment.]]>
</Description> 
<COLOR>BLUE</COLOR>
</COMPANY>
</ROOT>

红色
黑色
蓝色
如有任何帮助或建议,将不胜感激

谢谢,
Sudh

参见本教程,它将帮助您