I am building a prototype of a windows phone 7 开发者_StackOverflow社区app using d:DesignData in the SampleData folder. I would like the same design data to appear at runtime since this is just a prototype. Is there a way to set the DataContext to the same data xaml as the DesignData at runtime?
If you included the sample data file in the project you could load it at runtime like any other XML file. You would need to deserialize or parse it yourself though.
精彩评论