Search code examples
windows-phone

Windows Phone equivalent to Android "tools:text"


When creating layout in Android I can preview texts and others properties without actually applying the value using tools attribute. There something like that for Windows Phone ? I want to preview how my layout without change the Binding properties.


Solution

  • 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.