0
votes

Sorry if this is something that is easy an i and missing but im the first to admit that im not the best programmer in the world.

What I am looking to do is customise the SampleDataSource that is used in the VS2012 templates, more specifically im looking to replace the ItemContent with the content of a text file.

I have spent many hours looking for a solution to this problem and havent been able to figure it out so though it best to ask the experts.

Thanks in advance.

1
which template have you used? - J.B
I have been using the "Grid App" template this data that the SapleDataSource lay out is perfect for my needs the problem that I am having is that I would like to replace the ITEM_COTENT field of each item with text that I have in a file. - cfoxleyevans
Are you saying you just want to customize the SampleDataSource provided by the template with your data and it's ITEM_CONTENT field? - 123 456 789 0

1 Answers

0
votes

Check out the following post by my fellow Microsoft technical evangelist, Bruno Terkaly:

http://blogs.msdn.com/b/brunoterkaly/archive/2012/06/14/how-to-provide-cloud-based-json-data-to-windows-8-metro-grid-applications-part-2.aspx

In the post, he walks through the structure of the SampleDataSource.cs file which provides data for several of the built-in templates in C#/XAML apps, and in a subsequent post (linked at the top of this post) shows you how to replace the existing SampleDataSource.cs with a version that retrieves JSON data via HTTP.

Between the two posts, you may be able to get sufficient background on the topic to accomplish the task you've outlined.

Hope that helps.