开发者

Is there a way to use d:DesignData xaml at runtime?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜