This project has moved and is read-only. For the latest updates, please go here.

Design time data in Blend

May 1, 2012 at 6:55 AM

I have opened Chapter14ToDoListPrinting and can see the design time data in VS2010 for TaskGrid.xaml.  But if I open TaskGrid.xaml in the Blend 5 preview I don't see the sample data.  Is there a way to create sample data once (I like the idea of having separate design-time VMs) but be able to see it when using either the VS designer or Blend?


May 1, 2012 at 10:41 AM

Most design-time data should appear in both. I'll have to check that specific example but most of the design-time processing should work the same in Blend and Cider. Are you getting any exception when you load the control?

May 1, 2012 at 12:06 PM

Seems like it might be a known problem

May 1, 2012 at 12:32 PM

I have found a workaround, if anyone else bumps into this issue.  Declare the DesignTaskGridReportViewModel as a resource and then bind to that


and then
<Grid x:Name="LayoutRoot" 
         d:DataContext="{StaticResource ReportDesignData}">

This seems to work in both VS2010 and Blend5 preview.

May 1, 2012 at 1:24 PM


Just wanted to say I appreciate all of your help and efforts with looking into these items - I know it is especially helpful to other readers who may have encountered similar issues. Thanks for sharing your solutions here and for all of your feedback!

May 2, 2012 at 3:27 AM

I just want to add that other visitors to this forum should not get the impression that there are problems with the book.  It is just that I don't post when there are three crystal clear explanations on every page and one great insight every 5 pages.  The great bits far, far outnumber the trivial problems.  The problems that I have bumped in to are truely minor and should not discourage anyone from getting a copy of this book.