Silverlight / WPF and Blend: DataBind text box, but determines the value of development time?

Hope this is simple: I have a bunch of labels and text elements in a Silverlight application (for the DependencyProperties that I create in my class), but of course the text is empty at design time.

Nevertheless, I would like to have an idea of ​​how this will be laid out; is there any way to indicate the value of development time even if it is associated with data?

+3
source share
1 answer

The function you are looking for is an example of the data of an example expression. Sample data allows you to specify a data source of development time in which there are several sample fields (names, addresses, numbers, images, hierarchies, etc.).

Here's a good introduction article: http://silverzine.com/tutorials/how-to-create-sample-data-in-blend-3/

And here is a collection of links to Sample data: http://martinkruszynski.blogspot.com/2009/08/expression-blend-3-sample-data-data.html

The core of the Sample Data is that you use the mock design time datasource assembly as a blend (in the form of your data types), determine the sample data type, and the bindings are evaluated to give you meaningful development experience.

+4
source

Source: https://habr.com/ru/post/1729174/


All Articles