<p>We are trying out Visual Studio 2008 and Expression Blend on a new project. The goal is to clearly define the role of the developer and designer as separate, but reap the benefit of the developer being able to directly consume the XAML produced by the designer.</p>

<p>For the most part this has worked great, and I really like the possibilities. One difficulty we have come across though is designing against DataBindings. In many cases, the GUI does not populate rows, or other data structures unless the application is run, and a database call is made. Consequently the designer does not have access to the visual layout of the GUI.</p>

<p>What I would like to do, is somehow create some simple stubbed or mocked data that the designer can use to work on the design. The big goal is to have that stubbed data show up in Expression Blend, but then be applied to the real collection at runtime.</p>

<p>Has anyone found a solid method of doing this?</p>

[{'answer_id': 67050, 'author': 'palehorse', 'author_id': 312, 'author_profile': 'https://Stackoverflow.com/users/312', 'pm_score': 3, 'selected': True, 'text': '<p>I would suggest reading <a href="http://www.galasoft.ch/mydotnet/articles/article-2007091401.html" rel="nofollow noreferrer">this blog</a>.  The final method seems to work well, your test data shows up in Blend very nicely.  Just keep in mind that you have to compile the DLL before it will display the data.</p>\n'}, {'answer_id': 94961, 'author': 'SmartyP', 'author_id': 18005, 'author_profile': 'https://Stackoverflow.com/users/18005', 'pm_score': 0, 'selected': False, 'text': '<p>I would look into creating XML data islands which emulate the structure of the objects you will eventually bind the UI to. This way your designer can bind the root element of the page (or user control, etc.) to the top level of your fake XML data island and all the relative paths will stay the same when you swap that data island out for the real DataContext binding. </p>\n\n<p>there will be some degree of refactoring to attach to the real object when you are ready, but that is why your developers should at least know enough XAML to know how to modify the bindings properly.</p>\n\n<p>it looks like the commenter above me has a link to an example of this.</p>\n'}]
['https://Stackoverflow.com/questions/66486', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9058/']