Answered by:
Visual Studio Express 2013: Binding a REST Feed to an XAML Visual Basic Store App - GroupedItemsPage (From Template)

Question
-
I would like to know if anyone has had any luck or knows how bind a simple REST XML feed to a Visual Studio 2013 GroupedItemsPage.xaml. I really can't find anything on it anywhere that explains this at all.
The feed I want to bind is something like this:
http://www.nhtsa.gov/webapi/api/Recalls/vehicle/modelyear/2012/make/bmw/model/3-series?format=xml
If someone can assist in providing guidance on hooking into an external XML feed in Visual Basic (not JavaScript or C).
Thanks all
M. Frenchik Developer At Large
Thursday, May 29, 2014 12:05 PM
Answers
-
Hi,
You can deserialize the XML into a List and bind it to the ItemsSource of the GridView/ ListView in GroupedItemsPage.xaml .You can refer to the links to know how to deseralize in WinRT:
http://www.kunal-chowdhury.com/2012/11/win8dev-tutorial-windows-store-winrt-xml-serialization.html
See how to bind list to GridView:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh780650.aspx
And also you can refer to the link below:
http://www.codeproject.com/Articles/599505/Databind-XML-Feed-in-Windows
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Marked as answer by Anne Jing Monday, June 9, 2014 1:16 AM
Friday, May 30, 2014 1:28 AM
All replies
-
Hi,
You can deserialize the XML into a List and bind it to the ItemsSource of the GridView/ ListView in GroupedItemsPage.xaml .You can refer to the links to know how to deseralize in WinRT:
http://www.kunal-chowdhury.com/2012/11/win8dev-tutorial-windows-store-winrt-xml-serialization.html
See how to bind list to GridView:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh780650.aspx
And also you can refer to the link below:
http://www.codeproject.com/Articles/599505/Databind-XML-Feed-in-Windows
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Marked as answer by Anne Jing Monday, June 9, 2014 1:16 AM
Friday, May 30, 2014 1:28 AM -
I appreciate the links. They are what I am looking for in concept, but they again are in C. I am looking for some guidance on how to do this in Visual Basic.
Thanks in advance for the assist.
M. Frenchik Developer At Large
Friday, May 30, 2014 11:18 AM -
Hi,
VB and C# are extremely similar. You should be able to read the C# and make the adjustments as they use the exact same objects.
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.Wednesday, June 4, 2014 9:44 AM