How to: Create a new format for sample data in Blend/SketchFlow

by ondrejsv 17. January 2010 14:04

Microsoft Expression SketchFlow (part of the Expression Blend Product) is a great tool for quickly creating interactive low-fidelity prototypes. One of its features is sample data. You can either import data from an XML file, type in it manually within the SketchFlow user interface or let it populate automatically from the Blend sample data collection. The last option is very effective if you are experimenting with many screen mocks.

Note: You may use sample data feature equally well in the SketchFlow as well as in the Blend itself.

Blend supports four data types in sample data: string, number, boolean and image. If you create a new string property you can tell Blend what format you want to have the property in – e.g. name, url address, e-mail or color. Blend then create a sample data based on this (in our case it may be “Jamison, Jay”, http://www.graphicdesigninstitute.com/, someone-3@adventure-works.com, #FFFFED6F).

You can also create a new format if you often create screen mocks with some specific data. For example let’s say that I often mock administration module prototypes and I would find useful to have a login name format to let Blend create sample data for me.

All sample data is stored in the C:\Program Files\Microsoft Expression\Blend 3\SampleDataResources\en\Data\SampleStrings.csv.

Tip: If you are running Blend in other language than English, you may create a subfolder with your language code (instead of the en) and it takes precedence over the en folder.

This file is nothing more that a comma separated data file. I can add a new column to the header and then new columns do data rows (new columns are last):

Name,Phone Number,Email Address,Website URL,Address,Company Name,Date,Time, Price, Colors,Login
"Aaberg, Jesper",(111) 555-0100,someone@example.com,http://www.adatum.com/,"4567 Main St., Buffalo, NY 98052",A. Datum Corporation,"November 5, 2003",8:20:14 AM,$100,#FF8DD3C7,jesper.aaberg
"Adams, Ellen",(222) 555-0101,user@adventure-works.com,http://www.adventure-works.com/,"1234 Main St., Buffalo, NY 98052",Adventure Works,"December 29, 2006",7:06:05 AM,$29.99,#FFFFFFB3,ellen.adams
"Adams, Terry",(333) 555-0102,someone@adventure-works.com,http://www.adventure-works.com/ ,"2345 Main St., Buffalo, NY 98052",Adventure Works,"January 19, 2004",4:26:00 PM,$249.99,#FFBEBADA,terry.adams

and so on. Just remember to restart Blend if you finish modifying the sample dataset.

Note: You don’t need to supply a sample value for all rows but be sure to include a comma then. Otherwise Blend won’t load the file correctly.

After restart I can create a new string property with my new Login format:

image

and bind it to a DataGrid or any other control:

image

Happy mocking! :-)

kick it on DotNetKicks.com

Tags: ,

Comments

1/28/2010 3:01:35 PM #

trackback

DataBinding tooling: keeps getting better

2010 continues to find Silverlight/WPF in a very good place, and the beautiful thing is that we have

Rob Relyea - XAMLified | Reply

3/13/2010 2:22:34 PM #

pingback

Pingback from bachelorthesis.zdechovan.com

Silverlight & WCF RIA Services  » Blog Archive   » My experience with Expression SketchFlow

bachelorthesis.zdechovan.com | Reply

3/14/2010 8:35:10 PM #

trackback

How to: Create computed/custom properties for sample data in Blend/Sketchflow

How to: Create computed/custom properties for sample data in Blend/Sketchflow

ondrejsv | Reply

3/31/2010 5:01:06 PM #

ED

Really interesting articles. I enjoyed reading it. Are these genuine images or has the artwork been touched up they are truly. Thanks for sharing a nice info.

ED Russia | Reply

6/18/2010 12:30:28 PM #

view virtual trade shows and trade fairs online


Visit the world’s premier trade shows by BusinessGlobal.com. enables you to interact with suppliers, exporters, importers and buyers from all over the world in live virtual trade shows.

view virtual trade shows and trade fairs online United States | Reply

6/21/2010 11:15:35 AM #

jouer aux casinos de première classe

I have several data tables that contain appropriate sample data, so my real chore has how to easily get a subset of that data into the sample-data.xml file.

jouer aux casinos de première classe India | Reply

7/28/2010 12:01:10 PM #

Abu Dhabi Home

Thanks for sharing info. Keep up the good work...We hope you will visit our blog often as we discuss topics of interest to you.

Abu Dhabi Home U.A.E. | Reply

Add comment




  Country flag

E-mail address won't be published.
biuquote
  • Comment
  • Preview
Loading