Windows Phone相当于Android"工具:文本"

时间:2015-08-04 18:19:07

标签: windows-phone

在Android中创建布局时,我可以预览文本和其他属性,而无需使用工具attribute实际应用该值。对于Windows Phone有类似的东西吗?我想在不更改Binding属性的情况下预览布局。

1 个答案:

答案 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.