在Android中创建布局时,我可以预览文本和其他属性,而无需使用工具attribute实际应用该值。对于Windows Phone有类似的东西吗?我想在不更改Binding属性的情况下预览布局。
答案 0 :(得分:1)
If I understand what the Android attributes do correctly the similar feature to allow fake data in the Xaml designer is design-time attributes. You can apply attributes such as d:DataContext and d:DesignSource to provide preview data in the designer.
See Displaying Data in the Designer in MSDN's data binding overview for example code.