<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jaime Rodriguez  : blend</title><link>http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx</link><description>Tags: blend</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Design-time data in Expression Blend</title><link>http://blogs.msdn.com/jaimer/archive/2009/02/20/design-time-data-in-blend.aspx</link><pubDate>Fri, 20 Feb 2009 20:20:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9436281</guid><dc:creator>jaimer</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/9436281.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=9436281</wfw:commentRss><description>&lt;p&gt;Well- behaved, unobtrusive design-time data is essential for designers to create high-fidelity data templates and get a comprehensive view of the scene they are designing. If you agree, here is a must read on the common approaches to implementing design-time data inside blend (and Cider); the write-up covers: &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;The common ways to use ObjectDataProvider for design-time data. Pros &amp;amp; cons for each. &lt;/li&gt;    &lt;li&gt;My favorite way to do design-time data via an Attached behavior..      &lt;br /&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;The source is available &lt;a href="http://www.cookingwithxaml.com/content/blenddata/blenddata.zip" target="_blank"&gt;here&lt;/a&gt;.&amp;#160; The paper is here on&amp;#160; &lt;a href="http://www.cookingwithxaml.com/content/blenddata/blenddata.htm" target="_blank"&gt;HTML&lt;/a&gt;,&amp;#160; &lt;a href="http://www.cookingwithxaml.com/content/blenddata/blenddata.xps" target="_blank"&gt;XPS&lt;/a&gt;, and &lt;a href="http://www.cookingwithxaml.com/content/blenddata/blenddata.docx" target="_blank"&gt;DOCX&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;Let me know if I missed any thing.. &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9436281" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/Windows+Presentation+Foundation/default.aspx">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/xaml/default.aspx">xaml</category></item><item><title>Using Uris in Expression Blend</title><link>http://blogs.msdn.com/jaimer/archive/2009/02/15/using-uris-in-expression-blend.aspx</link><pubDate>Mon, 16 Feb 2009 10:07:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9425438</guid><dc:creator>jaimer</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/9425438.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=9425438</wfw:commentRss><description>&lt;p&gt;Last week, &lt;a href="http://blogs.msdn.com/expression" target="_blank"&gt;Unni&lt;/a&gt; and &lt;a href="http://www.blois.us/blog/" target="_blank"&gt;Pete&lt;/a&gt; explained to me how Blend resolves Uris. In this post, I will attempt to explain the details and the possible solution.&amp;#160;&amp;#160; &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;Details: &lt;/strong&gt;    &lt;br /&gt;We already knew that at design-time, Blend loads your window, usercontrols, or what every you are designing, in its main process (and main AppDomain).&amp;#160; &lt;br /&gt;In the default scenario, this would imply that all Uris will not work (since they resolve relative to Blend’s application) but there is some special handling in Blend to handle Uris &lt;u&gt;in XAML&lt;/u&gt;. Blend reads the XAML and alters the Uri references so that they resolve relative to the file:// path of the designed application, instead of relative to Blend’s application.&amp;#160; &lt;br /&gt;    &lt;br /&gt;For the most part, Blend does a good job and from XAML your Uris will work fine, but you will notice issues when you are resolving Uris that are not in the parsed XAML:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;If you have design-time data, and the Uri’s are coming from data bindings, then blend can not intercept these and fix them. &lt;/li&gt;    &lt;li&gt;If your Uris are coming from code that is executing while in design-time then Blend has no way of fixing them and your code is likely going to throw an exception or not resolve. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Solution: &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;As you already know, I like absolute Uris and the pack syntax; so I am going to stick with it, but now I have to emphasize that you use the full syntax (including the component part) on the Uri.&amp;#160; If you do this,&amp;#160; Blend seems to resolve very well on most scenarios, including code and bindings!! &lt;/p&gt;  &lt;p&gt;I will say it again, full Uri including component part. For example: &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;pack://application:,,,/Images/happyface.png&amp;#160; is wrong.&amp;#160; This will work from XAML, but not from code.&amp;#160; It needs to be &lt;/li&gt;    &lt;li&gt;pack://&lt;strong&gt;application:,,,/WpfApplication6;component&lt;/strong&gt;/Images/happyface.png&amp;#160;&amp;#160;&amp;#160; If you do this, Blend resolves well all the time!       &lt;br /&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Note: I labeled it possible solution because I am aware that not every one likes the full pack syntax. It can be cumbersome. I also have to explain, that not every one needs this solution, you only need it when the Uris come from code and are needed at design-time (in Blend). Mixing and matching Uris might be a good compromise.&amp;#160;&amp;#160; &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Want to see more? &lt;/strong&gt;    &lt;br /&gt;This &lt;a href="http://www.cookingwithxaml.com/recipes/blendUris/WpfApplication6.zip" target="_blank"&gt;sample&lt;/a&gt; shows all kinds of different paths to resolve an image.     &lt;br /&gt;As you can see, at design-time, the binding ones and the ones that come from code, do work when using a full path.&amp;#160; &lt;/p&gt;  &lt;table border="1" align="center"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td align="center"&gt;&lt;em&gt;Blend, design-time&lt;/em&gt; &lt;/td&gt;        &lt;td align="center"&gt;&lt;em&gt;Run-time&lt;/em&gt; &lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;&lt;a href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/UsingpackURIsinBlend_11CF7/image_4.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/UsingpackURIsinBlend_11CF7/image_thumb_1.png" width="387" height="299" /&gt;&lt;/a&gt; &lt;/td&gt;        &lt;td&gt;&amp;#160; &lt;a href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/UsingpackURIsinBlend_11CF7/image_6.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/UsingpackURIsinBlend_11CF7/image_thumb_2.png" width="350" height="295" /&gt;&lt;/a&gt; &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;Happy blending!!    &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9425438" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/Windows+Presentation+Foundation/default.aspx">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/expression/default.aspx">expression</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category></item><item><title>"The New iteration" a paper on designer/developer collaboration using XAML...</title><link>http://blogs.msdn.com/jaimer/archive/2007/12/07/the-new-iteration-a-paper-on-designer-developer-collaboration-using-xaml.aspx</link><pubDate>Fri, 07 Dec 2007 23:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6697639</guid><dc:creator>jaimer</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/6697639.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=6697639</wfw:commentRss><description>&lt;P&gt;&lt;A class="" href="http://karlshifflett.wordpress.com/mole-visual-studio-visualizer-for-wpf/" mce_href="http://karlshifflett.wordpress.com/mole-visual-studio-visualizer-for-wpf/"&gt;Karl&lt;/A&gt; (of mole fame) emails me about &lt;A class="" href="http://windowsclient.net/wpf/white-papers/thenewiteration.aspx" mce_href="http://windowsclient.net/wpf/white-papers/thenewiteration.aspx"&gt;"The new iteration"&lt;/A&gt; article that &lt;A class="" href="http://www.rhizohm.net/irhetoric/" mce_href="http://www.rhizohm.net/irhetoric/"&gt;Karsten &lt;/A&gt;and I wrote a while ago...&amp;nbsp;&lt;BR&gt;&lt;BR&gt;The paper attempts to do a lot in a few pages: &amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Introduce XAML ( in the context of HTML, SVG and the likes) for those not familiar with WPF. &lt;/LI&gt;
&lt;LI&gt;Introduce the workflow you can get when developers and designers create UI using XAML: You get a common language that stream lines collaboration between these two roles. This reduces duplicate work and&amp;nbsp;allows each role to use tools optimized for their specific tasks ( Blend for designers, VS 2008 for developers).. &lt;/LI&gt;
&lt;LI&gt;Provide high level advise on roles and skills when you collaborate to this extent.. &lt;/LI&gt;
&lt;LI&gt;Share a few of our lessons learned from many WPF early adopter projects..&amp;nbsp;&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;Provide tactical advise for those who already took the journey to WPF and XAML.. &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Please do send us your feedback .. there were a lot of topics we know we did not get to,&amp;nbsp; I am hoping I can tackle some of these via blog posts or screencasts.. &lt;/P&gt;
&lt;P&gt;Going back to my old notes on every thing we did not get to I had: &lt;BR&gt;Controls, Styles, Templates FAQ &lt;BR&gt;Tips &amp;amp; Tricks on Blend..&amp;nbsp;&amp;nbsp; way &lt;A class="" href="http://blogs.msdn.com/jaimer/archive/2007/01/21/tweaking-your-wpf-code-to-run-in-expression-blend.aspx" mce_href="http://blogs.msdn.com/jaimer/archive/2007/01/21/tweaking-your-wpf-code-to-run-in-expression-blend.aspx"&gt;Beyond this very old article.. &lt;/A&gt;&lt;BR&gt;Tips &amp;amp; tricks on Blend&amp;nbsp;+ Cider, &lt;A class="" href="http://blogs.msdn.com/jaimer/archive/2007/08/19/a-screencast-on-what-s-new-on-wpf-designer-cider-beta2.aspx" mce_href="http://blogs.msdn.com/jaimer/archive/2007/08/19/a-screencast-on-what-s-new-on-wpf-designer-cider-beta2.aspx"&gt;way beyond this intro old intro stuff.. &lt;BR&gt;&lt;/A&gt;Expression Designer (there was a lot we just did not get into) &lt;BR&gt;Tips &amp;amp; trickcs on creating data-driven apps..( I guess this overlaps w/ tips &amp;amp; tricks above).. &lt;/P&gt;
&lt;P&gt;What else do you want to hear about?? Let us know; I am keeping a list and even if I move really, really slow...&amp;nbsp;&amp;nbsp; I will eventually get to it..&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6697639" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/Windows+Presentation+Foundation/default.aspx">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/cider+designer/default.aspx">cider designer</category></item><item><title>Expression Blend2 Sept Preview released.. a must 'upgrade' for WPF and silverlighters .</title><link>http://blogs.msdn.com/jaimer/archive/2007/09/17/expression-blend2-sept-preview-released-a-must-upgrade-for-wpf-and-silverlighters.aspx</link><pubDate>Tue, 18 Sep 2007 07:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4969585</guid><dc:creator>jaimer</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/4969585.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=4969585</wfw:commentRss><description>&lt;P&gt;Blend2 &amp;nbsp;Sept Preview was released last friday to the public...&amp;nbsp;&amp;nbsp; An overview of the new features is in the &lt;A href="http://blogs.msdn.com/expression/archive/2007/09/14/expression-blend-2-september-preview-is-now-available.aspx" target=_blank mce_href="http://blogs.msdn.com/expression/archive/2007/09/14/expression-blend-2-september-preview-is-now-available.aspx"&gt;Expression team's blog&lt;/A&gt;...&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Please do not miss the &lt;A href="http://www.microsoft.com/expression/products/features.aspx?key=blend2preview" target=_blank mce_href="http://www.microsoft.com/expression/products/features.aspx?key=blend2preview"&gt;link to the videos&lt;/A&gt; that showcase the new features; watching all the&amp;nbsp;videos takes approx 20 mins and you will get a lot out of them.&lt;/P&gt;
&lt;P&gt;My experience so far after a week of internal use: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The new vertex animation stuff just rocks...&amp;nbsp; it makes things so much easier..&amp;nbsp; 
&lt;LI&gt;I have been using the ability to create reverse storyboards for triggers quite a bit; that was a must do...&amp;nbsp; 
&lt;LI&gt;The ability to edit KeyFrames is much better explained in the video than in the blog post;&amp;nbsp; the blog description is accurate, but you don't get the part of "graphically modifying the splines"..&amp;nbsp;&amp;nbsp; (or was it just me that did not get it the first time? Splines are above my level any way :( ) 
&lt;LI&gt;On object manipulation, the "Ctrl-drag" to copy is very handy too.. and the multi-object transform is useful too .. 
&lt;LI&gt;Splitview is very handy...&amp;nbsp;&amp;nbsp;love it since Cider beta2.. 
&lt;LI&gt;BreadCrumbBar is handy -- but if you are looking for it in Silverlight, I don't think it is there.. it seems to be WPF only... &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Overall the release rocks.. It feels solid; I did not get crashes or instability...&amp;nbsp; &lt;BR&gt;For you WPFers, there is just too much goodness to pass; I would say even if you had RTM of 1.0 you should give this a try..&amp;nbsp; &lt;BR&gt;For you silverlighters, you should continue to pick CTPs as there will continue to be improvements to the alpha ..&lt;/P&gt;
&lt;P&gt;My immediate wishlist is for next CTP is "Selection sync" in the splitview like Cider does ....&amp;nbsp;&amp;nbsp; Christmas is coming.. cross your fingers&amp;nbsp; or send my buddy &lt;A class="" href="http://blogs.msdn.com/unnir/" mce_href="http://blogs.msdn.com/unnir/"&gt;unni &lt;/A&gt;some &lt;STRIKE&gt;cash&lt;/STRIKE&gt; emai.. &lt;/P&gt;
&lt;P&gt;PS -- { I did not know there were videos in the external post, &amp;nbsp;so I had just created a few lame 5 min samples of what I can do now with vertex animations in silverlight . Since I ftped them, might as well link to them ...&amp;nbsp; &lt;A href="http://jaimersamples.members.winisp.net/silverlight/10/blend/chart/default.html" target=_blank mce_href="http://jaimersamples.members.winisp.net/silverlight/10/blend/chart/default.html"&gt;Chart&lt;/A&gt;,&amp;nbsp; &lt;A href="http://jaimersamples.members.winisp.net/silverlight/10/blend/arrow/default.html" target=_blank mce_href="http://jaimersamples.members.winisp.net/silverlight/10/blend/arrow/default.html"&gt;Arrow&lt;/A&gt;, &lt;A href="http://jaimersamples.members.winisp.net/silverlight/10/blend/circle/default.html" target=_blank mce_href="http://jaimersamples.members.winisp.net/silverlight/10/blend/circle/default.html"&gt;Circle&lt;/A&gt; ...&amp;nbsp; ... this is your chance to show off... create some thing cooler, that should not be hard, and email me a 'you oughta take a design class dude' email...&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Happy blending &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4969585" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/Windows+Presentation+Foundation/default.aspx">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/silverlight/default.aspx">silverlight</category></item><item><title>Getting Expression Blend May Preview to launch Visual Studio when you click on a JS file.. </title><link>http://blogs.msdn.com/jaimer/archive/2007/07/02/getting-expression-blend-may-preview-to-launch-visual-studio-when-you-click-on-a-js-file.aspx</link><pubDate>Mon, 02 Jul 2007 16:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3644261</guid><dc:creator>jaimer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/3644261.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=3644261</wfw:commentRss><description>&lt;P&gt;When working on Silverlight 1.0 projects.. it kind of annoyed me that&amp;nbsp; Blend launches notepad to edit my JS file...&amp;nbsp;&amp;nbsp;&amp;nbsp; I tried going into Windows and tell it to always "open" JS files with Visual Studio...&amp;nbsp;&amp;nbsp; (via OpenWith in the shell ) ... but Blend kept launching notepad..&amp;nbsp; why?? &lt;/P&gt;
&lt;P&gt;The shell associates the "open" command with VS .. that was working fine.. but blend used the "Edit" command instead of "open" ...&amp;nbsp; So,&amp;nbsp;I had to configure Windows to "edit"&amp;nbsp; .JS files with Visual Studio by editing the registry&amp;nbsp; entry at &lt;BR&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;HKEY_CLASSES_ROOT\JSFile\Shell\Edit\Command\(Default), the command is set to Notepad and I had to edit the registry entry and change it to point to devenv.exe: &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [for a default location VS 2005&amp;nbsp; install] &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;or C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe&amp;nbsp;&amp;nbsp; [for a default location VS 2008 "Orcas" installed" ] ... &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;&amp;nbsp;Now, when I double click on a JS file in Blend May Preview, it launches VS ... &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3644261" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/silverlight/default.aspx">silverlight</category></item><item><title>Expression Design tips...</title><link>http://blogs.msdn.com/jaimer/archive/2007/06/26/expression-design-tips.aspx</link><pubDate>Wed, 27 Jun 2007 06:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3559074</guid><dc:creator>jaimer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/3559074.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=3559074</wfw:commentRss><description>&lt;P&gt;Expression Design tips I learned while at the&amp;nbsp; &lt;A class="" href="https://www.regonline.com/EventInfo.asp?EventId=130030" mce_href="https://www.regonline.com/EventInfo.asp?EventId=130030"&gt;Express Yourself contest&lt;/A&gt; in San Fran last week.. : &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The list of features that design does not support when importing Adobe illustrator files is in the readme ... It is &lt;A class="" href="http://www.microsoft.com/expression/products/readme.aspx?key=design#ai" mce_href="http://www.microsoft.com/expression/products/readme.aspx?key=design#ai"&gt;here&lt;/A&gt;..&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;To use the Clipboard ( Cut&amp;nbsp; &amp;amp; Paste ) between Design with Expression Blend, you should set the options under Edit -&amp;gt; Options -&amp;gt; Clipboard (XAML)...&amp;nbsp;&amp;nbsp; here you get options similar to what you do when selecting File-&amp;gt; Export XAML&amp;nbsp; ... The default settings are for WPF... so if doing silverlight you need to change these... &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;Along with those two tips there a few common issues that you will have to workaround ...&amp;nbsp; [the design team is on top of these, but likely needs to wait for a Service pack or similar] &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Design works in WPF device independent units 1/96 of an inch.. It does all conversions for you .. So highly recommended you work at 96 DPI ..&amp;nbsp; If you work at say 72 DPI you are going to see your export to be 4/3 the size you expected...&amp;nbsp;&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;Design puts an &amp;lt;?xml &amp;gt;&amp;nbsp; directive on top of their files..&amp;nbsp; Though this is still valid XML ...&amp;nbsp; CreateFromXaml ( ) does not parse it ...&amp;nbsp;&amp;nbsp; [this applies to using downloaded object and creating from XAML in a file..&amp;nbsp; I believe it works fine if you use the Xaml files as a Source.. &lt;/LI&gt;
&lt;LI&gt;Design automatically generates names ...&amp;nbsp; (Group1, Group2,&amp;nbsp; Path1, etc. ) which can be an issue for Silverlight since it likes Unique names...&amp;nbsp;&amp;nbsp; [this is only issue if loading two files into single object ... a simple&amp;nbsp; replace of x:Name="&amp;nbsp; to x:Name="prefix&amp;nbsp;&amp;nbsp; does the trick .. .&lt;/LI&gt;&lt;/OL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS -- The contest results were quite impressive... stay tuned at the VisitMix.com blog where I think they will show the videos of the competition .. &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3559074" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/expression/default.aspx">expression</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/silverlight/default.aspx">silverlight</category></item><item><title>tool to create motion path animations for silverlight...</title><link>http://blogs.msdn.com/jaimer/archive/2007/06/20/using-blend-to-creating-motion-path-animations-for-silverlight.aspx</link><pubDate>Thu, 21 Jun 2007 05:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3388133</guid><dc:creator>jaimer</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/3388133.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=3388133</wfw:commentRss><description>&lt;P&gt;One animation that is in WPF and not silverlight is&amp;nbsp; AnimationUsingPath ..&amp;nbsp;&amp;nbsp; [you create a path, and have an element animate following &amp;nbsp;that path] ..&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For quick prototypes, I thought it would be handy to fake path animations by capturing the keyframes and replaying them in silverlight...&amp;nbsp; I can do it all with out code or math, which is nice for designer's doing rapid prototyping..&lt;BR&gt;The gist: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create an animation in Blend for a WPF project .. &lt;/LI&gt;
&lt;LI&gt;Add the control in the sample code below to the WPF page that has your animation..&amp;nbsp;&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;[optional] configure a couple of settings if the control guesses them wrong.. &lt;/LI&gt;
&lt;LI&gt;Click Capture -- &lt;/LI&gt;
&lt;LI&gt;Now you have KeyFrames you can cut &amp;amp; paste into a Silverlight animation...&amp;nbsp;&lt;/LI&gt;
&lt;OL&gt;
&lt;LI&gt;Create a dummy translate animation in Silverlight project for your same element.. &lt;/LI&gt;
&lt;LI&gt;Replace the keyFrames inside the animation with the ones from the tool ..&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;An extra nicety is that once you have done that, you can replay the silverlight animation using blend.. &lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what the control looks like: &lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/CreatingAnimationUsingPathforsilverligh_9827/image_3.png" mce_href="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/CreatingAnimationUsingPathforsilverligh_9827/image_3.png" atomicselection="true"&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=259 alt=image src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/CreatingAnimationUsingPathforsilverligh_9827/image_thumb_3.png" width=499 border=0 mce_src="http://blogs.msdn.com/blogfiles/jaimer/WindowsLiveWriter/CreatingAnimationUsingPathforsilverligh_9827/image_thumb_3.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;The settings: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Animation Name == name of storyboard you want it to run..&amp;nbsp; (used to call begin on it ) &lt;/LI&gt;
&lt;LI&gt;Element to Animate == name of UIElement target of the animation: ( used to capture its transform at each keyframe) &lt;/LI&gt;
&lt;LI&gt;KeyFrame type:&amp;nbsp; Spline or Linear? &lt;/LI&gt;
&lt;LI&gt;Frames per second -- how often to sample..&amp;nbsp;&amp;nbsp; &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;If you are a coder, all of these properties can be set programmatically via dependency properties ...&amp;nbsp; Look at Page3.xaml in the harness attached with the source. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are a couple of quick samples of results: &lt;A class="" href="http://jaimersamples.members.winisp.net/silverlight/10/animationpath/balltim.html" mce_href="http://jaimersamples.members.winisp.net/silverlight/10/animationpath/balltim.html"&gt;ball&lt;/A&gt; and &lt;A class="" href="http://jaimersamples.members.winisp.net/silverlight/10/animationpath/flytim.html" mce_href="http://jaimersamples.members.winisp.net/silverlight/10/animationpath/flytim.html"&gt;fly&lt;/A&gt;.. [created by SysTim, thanks bro] ... and my original &lt;A class="" href="http://jaimersamples.members.winisp.net/silverlight/10/animationpath/ball.html" mce_href="http://jaimersamples.members.winisp.net/silverlight/10/animationpath/ball.html"&gt;ball&lt;/A&gt; and &lt;A class="" href="http://jaimersamples.members.winisp.net/silverlight/10/animationpath/fly.html" mce_href="http://jaimersamples.members.winisp.net/silverlight/10/animationpath/fly.html"&gt;fly&lt;/A&gt; &lt;BR&gt;Disclaimer: the paths were created rather quickly and&amp;nbsp;I sampled at only 30 fps ..&amp;nbsp;&amp;nbsp;you likely need to tweak the settings and paths for a smoother experience..&amp;nbsp; and do some math and code for perfect/production smoothness .. but for prototypes the tool is handy and you can tweak the animation before and after in blend.. &lt;/P&gt;
&lt;P&gt;The source code for the control is &lt;A class="" href="http://jaimersamples.members.winisp.net/silverlight/10/animationpath/pathanimation.zip" mce_href="http://jaimersamples.members.winisp.net/silverlight/10/animationpath/pathanimation.zip"&gt;here&lt;/A&gt; ..&amp;nbsp; If you create a better showcase animation let me know or put a comment pointing to it. &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3388133" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/silverlight/default.aspx">silverlight</category></item><item><title>Interesting posts for week of 6/4 to 6/10 ...</title><link>http://blogs.msdn.com/jaimer/archive/2007/06/10/interesting-posts-for-week-of-6-4-to-6-10.aspx</link><pubDate>Mon, 11 Jun 2007 08:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3223602</guid><dc:creator>jaimer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/3223602.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=3223602</wfw:commentRss><description>&lt;P&gt;I traveled most of the week so did not blog ... from the blogs, I read here are some of my 'faves' for the week.. &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Glenn Plock shares details on &lt;A class="" href="http://blogs.msdn.com/gblock/archive/2007/06/06/acropolis-the-future-of-smart-client.aspx" mce_href="http://blogs.msdn.com/gblock/archive/2007/06/06/acropolis-the-future-of-smart-client.aspx"&gt;the future or Smart Client Software factory and migration to Acropolis&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;Jon galloway shares his &lt;A class="" href="http://weblogs.asp.net/jgalloway/archive/2007/06/05/silverlight-and-xaml-have-you-guys-met-old-man-svg.aspx" mce_href="http://weblogs.asp.net/jgalloway/archive/2007/06/05/silverlight-and-xaml-have-you-guys-met-old-man-svg.aspx"&gt;thoughts&amp;nbsp;on SVG and XAML &lt;/A&gt;...&amp;nbsp;&amp;nbsp; &lt;BR&gt;Only addition to his thoughts/concerns &amp;nbsp;would be that it is very doable to use Illustrator to get to XAML ...Illustrator has a free 30 day trial.. Once in illustrator, not only try the plug-in to export... you can also try opening the ai file with &lt;A class="" href="http://www.microsoft.com/expression/products/overview.aspx?key=design" mce_href="http://www.microsoft.com/expression/products/overview.aspx?key=design"&gt;Expression Design&lt;/A&gt;... and exporting the xaml from there...&amp;nbsp;&amp;nbsp;I have great results lately with Design's capability to read AI and export as xaml. &lt;BR&gt;{note: expression design also has a 30 day trial, this whole thing is still free} &lt;/LI&gt;
&lt;LI&gt;Free designer training ( Blend and Design ) from lynda.com ... &lt;A class="" href="http://blogs.msdn.com/tims/archive/2007/06/05/hours-of-free-training-on-expression-blend-and-design.aspx" mce_href="http://blogs.msdn.com/tims/archive/2007/06/05/hours-of-free-training-on-expression-blend-and-design.aspx"&gt;Tim has the details&lt;/A&gt;.. &lt;/LI&gt;
&lt;LI&gt;Dwayne blogged &lt;A class="" href="http://blogs.msdn.com/dwayneneed/archive/2007/04/26/multithreaded-ui-hostvisual.aspx" mce_href="http://blogs.msdn.com/dwayneneed/archive/2007/04/26/multithreaded-ui-hostvisual.aspx"&gt;about HostVisual and creating non-interactive WPF UI in background threads &lt;/A&gt;...&amp;nbsp; good stuff, I subscribed to his blog in hopes he continues to post.. &lt;/LI&gt;
&lt;LI&gt;Microsoft User eXperience Evangelist (UXEs)&amp;nbsp; are aggregating their blog at &lt;A href="http://design-for-innovation.com/"&gt;http://design-for-innovation.com/&lt;/A&gt;&amp;nbsp;...&amp;nbsp; These are sharp designers who know a lot about user experience; though the aggregation is still in the works , it might be worth keeping an eye on it .. &lt;/LI&gt;
&lt;LI&gt;Peggi wrote the most &lt;A class="" href="http://msdn2.microsoft.com/en-us/library/aa905327.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/aa905327.aspx"&gt;complete article in writing a WIC enabled codec&lt;/A&gt;. I worked with an ISV that wrote a WIC Codec for their Vista version of their software; they were quite happy with the 'benefits' ... which Peggi summarizes much better than I ever would:&lt;BR&gt;&lt;EM&gt;"Building your CODEC on the Windows Imaging Component platform makes it possible for all applications built on WIC to get the same platform support for your image format as they get for the common image formats shipped with the platform. It also enables the Windows Vista Photo Gallery, Explorer, and Photo Viewer to display thumbnails and previews of images in your format using the decoder that you provide. For Raw formats, it enables more sophisticated imaging applications to take advantage of your decoder's Raw processing capabilities. Depending on the encoder options you support, you can also expose unique capabilities of your encoder to enable applications to take full advantage of the advanced features of your image format" ...&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;[FYI, WPF is built on WIC, so once you have the codec you will be able to open your custom image format with an &amp;lt;Image Source=".. " /&amp;gt; tag&amp;nbsp; ...] &lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cool stuff I heard about : &lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;BBC &lt;A class="" href="http://news.com.com/8301-10784_3-9726867-7.html?part=rss&amp;amp;subj=news&amp;amp;tag=2547-1_3-0-20" mce_href="http://news.com.com/8301-10784_3-9726867-7.html?part=rss&amp;amp;subj=news&amp;amp;tag=2547-1_3-0-20"&gt;is using Photosynth 3D &lt;/A&gt;to create a&amp;nbsp; show ..&amp;nbsp; has good links to photosynth stuff.. &lt;BR&gt;Darren David (ex-Fluid, Northface kiosk extraordinaire) talks about a &lt;A class="" href="http://blog.lookorfeel.com/index.php/2007/06/04/hp-multi-touch-interactive-canvas-launched-at-d5/" mce_href="http://blog.lookorfeel.com/index.php/2007/06/04/hp-multi-touch-interactive-canvas-launched-at-d5/"&gt;very&amp;nbsp;impressive WPF app he worked on &lt;/A&gt;..&amp;nbsp; &lt;BR&gt;He mentions the challenge of&amp;nbsp; Multi-input UI ...&amp;nbsp; which&amp;nbsp; the &lt;A class="" href="http://www.microsoft.com/surface/" mce_href="http://www.microsoft.com/surface/"&gt;Surface team have solved for their platform&lt;/A&gt; ...&amp;nbsp; I wonder if Microsoft will ever expose the implementation for use outside of Surface?? &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;[Movies] &lt;/STRONG&gt;&lt;/P&gt;&lt;STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;/STRONG&gt;I watched Hannibal rising on the plane from NY to seattle ( my hands cramp if I type on plane) ...&amp;nbsp;&amp;nbsp; fell asleep..&amp;nbsp; the first 15 mins were interesting cause it explained the 'why?' ... the rest was gory fill-time.. &lt;/LI&gt;
&lt;LI&gt;I went to theater for "Ocean's 13" ... I was a fan of Ocean's 11 so I had to go see this one..&amp;nbsp; Though I laughed a few times, quite a bit of the movie was a little too far fetched for me ...&amp;nbsp;&amp;nbsp; I wish I had waited for video instead of theater.. &lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3223602" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/Windows+Presentation+Foundation/default.aspx">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/Personal/default.aspx">Personal</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/Client+in+general+/default.aspx">Client in general </category><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category></item><item><title>Desktop matters conference report ..</title><link>http://blogs.msdn.com/jaimer/archive/2007/03/14/desktop-matters-conference-report.aspx</link><pubDate>Wed, 14 Mar 2007 23:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1882493</guid><dc:creator>jaimer</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/1882493.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=1882493</wfw:commentRss><description>&lt;P&gt;&lt;A href="http://blogs.msdn.com/tims" mce_href="http://blogs.msdn.com/tims"&gt;Tim Sneath&lt;/A&gt; (&amp;nbsp;my work boss)&amp;nbsp;&amp;nbsp;emailed me asking how it went , and since I am typing if for my team I thought: "what the heck ... just publish it..." &lt;/P&gt;
&lt;P&gt;I had the pleasure of attending and presenting at &lt;A href="http://www.desktopmatters.com/" mce_href="http://www.desktopmatters.com/"&gt;Desktop Matters&lt;/A&gt; last Friday .. It is the "hard-corest" Java conference I have ever attended (disclaimer, I have only attended 2 java conferences: JavaOne and OSCON) ...&amp;nbsp; The conference focuses on client java technologies,&amp;nbsp; a lot of people from Sun's Java2D and Swing team presented..&amp;nbsp; Also, some influentials building interesting java stuff.. &lt;/P&gt;
&lt;P&gt;Here are my thoughts: &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;On the conference: &lt;BR&gt;&lt;/STRONG&gt;it was awesome...&amp;nbsp;A small group of Java influentials talking with the Java leaders (&lt;A href="http://weblogs.java.net/blog/hansmuller/" mce_href="http://weblogs.java.net/blog/hansmuller/"&gt;Hans Muller&lt;/A&gt;, &lt;A href="http://weblogs.java.net/blog/chet/" mce_href="http://weblogs.java.net/blog/chet/"&gt;Chet Haase&lt;/A&gt;,&amp;nbsp; &lt;A href="http://weblogs.java.net/blog/rbair/" mce_href="http://weblogs.java.net/blog/rbair/"&gt;Richard Bair&lt;/A&gt;, etc.)&amp;nbsp;.. there was nothing held back either direction.. The Sun team shared challenges and road-map... the community provided good feedback.. I had a blast and learned a lot ...&amp;nbsp;&amp;nbsp; Read some of &lt;A href="http://galbraiths.org/blog/2007/03/13/desktop-matters-final-wrap-up/" mce_href="http://galbraiths.org/blog/2007/03/13/desktop-matters-final-wrap-up/"&gt;their reports here&lt;/A&gt;.. &lt;BR&gt;The event reminded me of what at Microsoft we call Software Design Reviews ( SDRs ) ... Some of you reading this post might have attended one of these ...&amp;nbsp; You know that it is hard to buy that kind of access, well on the Java client community you might have the answer in this conference..&amp;nbsp;&amp;nbsp; &lt;BR&gt;A nice touch different from the SDR was &lt;A href="http://galbraiths.org/blog/category/desktop-matters/" mce_href="http://galbraiths.org/blog/category/desktop-matters/"&gt;Ben Galbraith&lt;/A&gt; the organizer who kept it light .. making equal fun of every one there&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;On Java SE and Swing:&lt;/STRONG&gt;&amp;nbsp; &lt;BR&gt;I was surprised and (as a technologist) happy to see progress on java and Swing ; their 'filthy rich' demos looked pretty good ; That said, I still think they are very far behind Microsoft (both Windows forms but specially WPF) in tooling, customization, richness, etc..&amp;nbsp; You can definitely do good stuff on Java, if you are willing to write a bit of code or hire experienced devs..&amp;nbsp; [yes, I&amp;nbsp;of course acknowledge they do it for the cross-platform promise.. if you must go x-platform and can't go AJAX, I think that is one of the best choices out there] &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;On my presentation/message: &lt;BR&gt;&lt;/STRONG&gt;When I arrived, I had a deck with 40 slides covering the ins of WPF ( templates, styles, resources, etc.)&amp;nbsp; by the second day I had changed it&amp;nbsp; based on a private conversation with Hans Muller - I pitched him on XAML and he seemed overwhelmed with properties, triggers, styles, etc.. but he really got the "oh, makes better tools" idea.. &lt;/P&gt;
&lt;P&gt;So, in the end, I presented a simple (much slower-paced ): &amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Why is MS doing WPF..?&amp;nbsp;&amp;nbsp;&amp;nbsp; It is ALL about User Experience; I elaborated&amp;nbsp;that UX is business value to the everyone. &lt;BR&gt;On day 1, the Java folks listed why write client software and the list was usability, richness, performance, leverage local resources, etc..&amp;nbsp;&amp;nbsp; most of these are factors of user experience.. so it resonated.. &lt;BR&gt;UX is also business value for the Dev/ISV/SI selling the solution... It provides differentiation opportunity,&amp;nbsp;branding, pride of ownership, etc.&amp;nbsp;&lt;BR&gt;&amp;nbsp; 
&lt;LI&gt;How is MS we improving UX with WPF?&amp;nbsp;&amp;nbsp; 
&lt;OL&gt;
&lt;LI&gt;Integration of all our UI Stacks ( Text, 2D, 3D, Video, etc.) 
&lt;LI&gt;Declaratively;&amp;nbsp; we invested in a declarative model to optimize toolability and fully incorporate the designer role into application development .. this is the silver bullet in the long-run; along with &lt;A href="http://blogs.msdn.com/jaimer/archive/2007/02/19/creating-user-interfaces-declaratively-using-wpf.aspx" mce_href="http://blogs.msdn.com/jaimer/archive/2007/02/19/creating-user-interfaces-declaratively-using-wpf.aspx"&gt;rich services to embrace the declarative model&lt;/A&gt;l... &lt;/LI&gt;&lt;/OL&gt;
&lt;LI&gt;What are we doing on x-platform? &lt;BR&gt;(IMHO)&amp;nbsp; WPF/E is a huge step for Microsoft. Not because of what we are delivering in Version1, but because it is a commitment to innovate in client software that runs x-platform.&amp;nbsp;&amp;nbsp;&amp;nbsp; MS is best positioned [we have the framework, WPF, XAML, etc. to act quickly in that space, since we have a lot of the lessons learned - and the code ;)&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;I did two demos: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The Healthcare demo I was short on time and wanted to keep it focused -- check for a post on that demo later today or tomorrow there is some good news there--..&amp;nbsp; I think this summarizes well WPF integration since it shows most UI stacks..&amp;nbsp;&amp;nbsp; 
&lt;LI&gt;I spend 15 to 20 mins in Expression blend building stuff from scratch ; &lt;/LI&gt;
&lt;OL&gt;
&lt;LI&gt;created the data templates for the healthcare demo ...&amp;nbsp; and 
&lt;LI&gt;created a 3D button with animation ( triggers on mouse over)&amp;nbsp; ...&amp;nbsp; the latter was mostly to make explain how we compare to Chet's animation engine for his book... &lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;The feedback&lt;/STRONG&gt;&lt;BR&gt;I was very surprised on the 'kudos' ... Quite a few people came to me afterwards and shared kind thoughts...&amp;nbsp;&amp;nbsp; I got a lot of "I get your experience message";&amp;nbsp; and "I love what WPF can do", "XAML seems very neat", etc..&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My best two take aways...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;An interesting cross-platform combo in the interim? : &lt;BR&gt;While sitting there listening to their challenges, goals, etc. and after receiving the feedback on my presentation I was thinking...&amp;nbsp; what if "XAML was a standard" and the Java community embraced it to create UI? ....&amp;nbsp; They could keep their performant cross platform engine .. but use our tooling to create rich apps" .... does it sound crazy??&amp;nbsp;&amp;nbsp; I think it is a good interim while MS gets a strong x-platform client out (if we ever do, I can't confirm nor deny, only hope )...&amp;nbsp;&amp;nbsp; The type of apps these folks are writing requires rich development frameworks, rich programming languages, and powerful drawing engines...&amp;nbsp;&amp;nbsp; I can't think of a good solution for that today if you include a good tooling/debug story. &lt;BR&gt;
&lt;LI&gt;Some lower hanging, more realistic&amp;nbsp;takeaway for Microsoft: &lt;BR&gt;I think we need to re-visit simple styles and create several "cool" versions of simple styles...&amp;nbsp;&amp;nbsp;&amp;nbsp;We have the designer tools.. but there will be teams out there that do not have designers.. We need to pony up for a few good design templates that developers can use to create "cool looking apps" with out a lot of designer support...&amp;nbsp; If MS provides &amp;nbsp;styled primitives then developers could put screens build on these simple styled controls...&amp;nbsp;&amp;nbsp; For example,&amp;nbsp; I recently downloaded the "Roxio" client, nice gradients, stylish controls, yet nothing extreme (other than a few cool vector graphics that could have been images) ..&amp;nbsp;&amp;nbsp; I think with "cool simple styles" this could be accomplish with out much design work...&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is it ...&amp;nbsp; I hope the conference repeats next year ....&amp;nbsp; If it does,&amp;nbsp; I would recommend it if you are a Java client developer ...&lt;BR&gt;I also hope I don't get fired for a post w/ the word java so much ...&amp;nbsp;My first test to see how far I can take it ....&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1882493" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/Windows+Presentation+Foundation/default.aspx">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/Personal/default.aspx">Personal</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/Client+in+general+/default.aspx">Client in general </category><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category></item><item><title>tweaking your wpf code to run in Expression Blend... </title><link>http://blogs.msdn.com/jaimer/archive/2007/01/21/tweaking-your-wpf-code-to-run-in-expression-blend.aspx</link><pubDate>Sun, 21 Jan 2007 11:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1501801</guid><dc:creator>jaimer</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/jaimer/comments/1501801.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jaimer/commentrss.aspx?PostID=1501801</wfw:commentRss><description>&lt;P&gt;beta 1 of Expression Blend ( aka Expression Interactive Designer, codename Sparkle)&amp;nbsp; went out&amp;nbsp; a month ago...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I hope you are using it now..&amp;nbsp; I have used it for a while beforexe it went out, it has been very useful for creating animations, templates, styles, etc..&amp;nbsp; &lt;/P&gt;
&lt;P&gt;If you have tried to use Blend with existing ( arguably very large) projects coded prior to Blend, you might have seen 'errors' or even crashes when opening&amp;nbsp;your project&amp;nbsp;in blend; &amp;nbsp;don't give up yet! imho blend is not too unstable,&amp;nbsp;once you&amp;nbsp;understand their design-time rules..&amp;nbsp;&amp;nbsp;&amp;nbsp; (read below to learn some of these).. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Background:&amp;nbsp;&amp;nbsp; &lt;BR&gt;&lt;/STRONG&gt;Blend is a WPF application and as such it runs all user interface in a single AppDomain;&amp;nbsp; there fore when you design your app in blend, it tries to load [and run] your code in their executable... so be careful what you feed it :( ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;How and why does it run your code? &lt;BR&gt;&lt;/STRONG&gt;There are two instantiation patterns i see in expresssion: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Blend&amp;nbsp;will instantiate the base type of the root element&amp;nbsp;on the design surface..&amp;nbsp;so for your Window, or UserControl or similar, it is mostly OK.. &lt;/LI&gt;
&lt;LI&gt;If you have a UserControl (UC)&amp;nbsp;or Custom control you are droppping into a root document ( the root element described above)..&amp;nbsp; then&amp;nbsp;Blend instantiates YOUR control, and at the minimum runs your constructor ....&amp;nbsp;&amp;nbsp;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;if inside your constructor you have code that subscribes to any other events, like&amp;nbsp;&amp;nbsp; Initialized,&amp;nbsp; Loaded, or CompositionTarget.Rendering&amp;nbsp; then you are already telling the UI to call you back for this events [so yet more code to run] ...&amp;nbsp; if any of your code throws an exception, Blend will throw an error... &lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;
&lt;P&gt;Here is an example:&amp;nbsp; comments in &lt;FONT color=#d00be8&gt;D00BE8&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#d00be8 size=2&gt;
&lt;P&gt;&amp;lt;!--&amp;nbsp; This is what I referred to above as "root element", here it instantiates Window class instead of&amp;nbsp; your Window1 class, so not your code --&amp;gt; &lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;Window &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;xmlns&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;http://schemas.microsoft.com/winfx/2006/xaml/presentation&lt;/FONT&gt;&lt;FONT size=2&gt;" &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;xmlns:x&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;http://schemas.microsoft.com/winfx/2006/xaml&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;xmlns:ExpresssionTests&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;clr-namespace:ExpresssionTests&lt;/FONT&gt;&lt;FONT size=2&gt;" &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;x:Class&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ExpresssionTests.Window1&lt;/FONT&gt;&lt;FONT size=2&gt;" &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Title&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ExpresssionTests&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Height&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;377&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Width&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;362&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;Grid&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#d00be8 size=2&gt;&amp;lt;!-- Here because you are inside the document (in this case window, it will instantiate your control directly, running the constructor for UserControl1, myTextBox and MyPanel&amp;nbsp; it does not matter if they are user controls or custom controls &amp;nbsp;--&amp;gt; &lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;ExpresssionTests:UserControl1&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Margin&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;32,51,161,0&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;VerticalAlignment&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Top&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Height&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;108&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;/&amp;gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;ExpresssionTests:MyTextBox&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Margin&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;32,21,0,0&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;VerticalAlignment&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Top&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Height&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;26&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Text&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;MyTextBox&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;TextWrapping&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Wrap&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;HorizontalAlignment&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Left&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Width&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;113&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;/&amp;gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;ExpresssionTests:MyPanel&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Margin&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;42,0,161,58&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;VerticalAlignment&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Bottom&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt; &lt;/FONT&gt;&lt;FONT color=#ff0000 size=2&gt;Height&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;=&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;92&lt;/FONT&gt;&lt;FONT size=2&gt;"&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;/&amp;gt;&lt;BR&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;Grid&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;Window&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;So, it calls your constructor (and executes your code).. why should you care? Your app works great when launched stand-alone (or debugger in VS)..&amp;nbsp;&lt;BR&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;For a lot of your code, this will be fine...&amp;nbsp;&amp;nbsp; for that slight percentage that it is not find, there are&amp;nbsp;a few possible&amp;nbsp;bad outcomes from it running your code:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Your code does some thing that throws an unhandled exception and crashes Blend.. &lt;/LI&gt;
&lt;LI&gt;Your code does some thing that throws an exception and blend handles it, but you get a generic error like "Can not create instance of UserControl1" &lt;/LI&gt;
&lt;LI&gt;Your code might appear to be running OK in blend but it is consuming resources it should not ( e.g. if you are designing a Video Player, and in your player, you are telling it to "autoplay" when loaded,&amp;nbsp; so now you have a video playing at design-time.. [this is not only annoying but consuming resources, so your system slows down :( ] &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;"Jaime, did you not read that 'my code works fine, I don't expect crashes.' "&lt;BR&gt;&lt;/EM&gt;&lt;/STRONG&gt;Hear ya,&amp;nbsp;but there are a few valid scenarios where your perfect code behaves different when run from within blend.. here are a few commone ones: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Your application is data-driven and&amp;nbsp;your control assumes the context and data models is available at design-time, but it is not ...&amp;nbsp; or your app tries to connect to its datasource and it fails .. &lt;/LI&gt;
&lt;LI&gt;Your application uses the pack syntax ... [ I will come back to this] &lt;/LI&gt;
&lt;LI&gt;Your code tries to access the global Application class or it's MainWindow (but since you are running in Blend, you get Blend's Application class).. &lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;&lt;EM&gt;"OK, I get it, how can I get around this?.." &lt;/EM&gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR&gt;&lt;/STRONG&gt;Blend and Cider team added a System.ComponentModel.DesignerProperties class to WPF so you can query if you are in 'design mode'..&amp;nbsp; &lt;BR&gt;You can call &lt;FONT size=2&gt;System.ComponentModel.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;DesignerProperties&lt;/FONT&gt;&lt;FONT size=2&gt;.GetIsInDesignMode(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;DependencyObject element&amp;nbsp;&lt;/FONT&gt;&lt;FONT size=2&gt;)&amp;nbsp;&amp;nbsp;with any valid DependencyObject -translated pretty much any visual- , and find out if you are in the designer;&amp;nbsp; &lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT size=2&gt;if you &lt;/FONT&gt;&lt;FONT size=2&gt;don't have a DependencyObject&amp;nbsp;( e.g. if you are in your business object and don't want to couple if with UI) then &lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;((&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;bool&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;DependencyPropertyDescriptor&lt;/FONT&gt;&lt;FONT size=2&gt;.FromProperty(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;DesignerProperties&lt;/FONT&gt;&lt;FONT size=2&gt;.IsInDesignModeProperty, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;typeof&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;DependencyObject&lt;/FONT&gt;&lt;FONT size=2&gt;)).Metadata.DefaultValue)&amp;nbsp;&amp;nbsp;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT size=2&gt;can do the trick to tell you if you are in design-mode.. even when you don't have a visual * .. &lt;/FONT&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;lt;sideline&amp;gt; &lt;A class="" href="http://blogs.msdn.com/jnak" mce_href="http://blogs.msdn.com/jnak"&gt;Jim Nakashima&lt;/A&gt;&amp;nbsp;and &lt;A class="" href="http://www.urbanpotato.net/" mce_href="http://www.urbanpotato.net/"&gt;Brian Pepin&lt;/A&gt;&amp;nbsp;are good sources for info in this design&amp;nbsp;mode property &amp;lt;/sideline&amp;gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;&lt;EM&gt;"This sounds messy!&amp;nbsp;&amp;nbsp;I don't want to be crowding code with design-time checks ... what should&amp;nbsp;I do?" &lt;BR&gt;&lt;/EM&gt;&lt;/STRONG&gt;At first, I thought that too ... but it is really not too bad.. in fact, now I would argue it has made my code slightly better: I used to have projects where there was a bit more code than needed in the constructor.. [this code should have been in the Initialized or Loaded events] ... so you just need to refactor your code a little bit..&amp;nbsp; you can then use the design-time check to possibly not wire these other while in design-time... &lt;BR&gt;&lt;BR&gt;Another lazy workaround I used for those more complex projects with lots of transitions where I did need code in the constructor or had too much code and did not want to compromise run-time code readability w/ design-time checks was a put a very big&amp;nbsp; try&amp;nbsp;{ } catch in the&amp;nbsp; constructor or event being called...&amp;nbsp;&amp;nbsp; in the catch, I check if I am in design time and just not bubble ( re-throw ) the exception ....&amp;nbsp; not ideal but it does the trick.. e.g. &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;try&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;/// Lots of code would go here...&amp;nbsp; as long as it gets caught below Expression will be fine..&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;// I like to log them so that&amp;nbsp; I can clean up once a week.. &lt;BR&gt;// This will no longer be necessary soon...&amp;nbsp;Blend &amp;nbsp;will start letting you see the stack traces in the next public build&amp;nbsp;&amp;nbsp;&lt;BR&gt;// it also re-throws if this is run-time&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpressionWorkAround.DesignTimeHelper.LogException(ex); &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;"... the explanation is fine, but I can't even open my project in Blend... &lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;I don't think it is getting far enough to run any code.. "&amp;nbsp;&lt;/STRONG&gt;...&lt;/EM&gt;&amp;nbsp; &lt;BR&gt;Almost every time I think this, I look and it is getting far enough,&amp;nbsp; here is what happens: &amp;nbsp;Blend opens the solution and then it starts opening the windows I had opened last time in the designer, and crashes while executing my code..&amp;nbsp;&amp;nbsp;Here are a few tips on opening projects:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;You can pass your full project path to blend from command-line ...&amp;nbsp; when you do this, blend simply opens the project/solution.. It does not automatically open any of your Windows (or scenes) in the designer&amp;nbsp; ... you will just need to double click in the window/control and it will then open it in the designer [possibly reproducing the crash] ... &lt;BR&gt;&lt;BR&gt;&lt;EM&gt;c:\Program Files\Microsoft Expression\Blend Beta 1\Blend.exe "c:\mypath\myproj.csproj" &lt;BR&gt;&lt;/EM&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;If you open blend from command line, you can pass the /exceptionlog parameter and if it crashes, it will show you the exception's call stack ...&amp;nbsp; so you know where to look. This is of course useful even if your project is not crashing when opening.. it will log the exception when ever it happens.. &lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P mce_keep="true"&gt;&lt;EM&gt;c:\Program Files\Microsoft Expression\Blend Beta 1\Blend.exe /logException&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;&lt;/EM&gt;Then you open your project and run as usual ... &lt;BR&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;"OK., I am getting it .. any more tips?" &lt;BR&gt;&lt;/STRONG&gt;Yes, but getting late and I am going to bed :( so here is the last one..&amp;nbsp;&amp;nbsp; as mentioned Blend is a WPF app and it loads your code in it.. so&amp;nbsp; if you are getting design time errors and want to troubleshoot you can open good old Visual Studio,&amp;nbsp;open your project in both VS and blend, and from VS attach to blend and debug, stepping through it, etc...&amp;nbsp; pretty useful for complex stuff ..&amp;nbsp; &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Open your project in Blend &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Open your project in VS .. &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;From VS attach to Expression Blend&amp;nbsp;... (Attach Process, proc name is blend.exe ) ... &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;[Optional] In VS, tell it to break on any thrown Exceptions..&amp;nbsp; &lt;/DIV&gt;&lt;/LI&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;via&amp;nbsp; the Menus: Debug -&amp;gt; Exceptions &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Check the "thrown" box i nthe Common Language&amp;nbsp; Runtine exceptions&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;[Optional] if don't want to stop at all exceptions, then put a breakpoint in your code.. &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Now, in Blend close &amp;amp; open the scene (window, user control) you want to debug. &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;If you are not getting it to hit your breakpoint, some times I have to do a Rebuild all in blend... before it catches on .. &lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;One last remark...&amp;nbsp;&lt;BR&gt;&lt;/STRONG&gt;if you are a designer, or new to Blend and reading this, don't freak yet...&amp;nbsp;&amp;nbsp; for designers, most of this&amp;nbsp;stuff above happens when devs start putting code in places they might not need to so you are likely not to run into it...&amp;nbsp; for&amp;nbsp;new projects also, it might not be an issue.. it is&amp;nbsp; those large projects that have 10s of thousands of lines of code in hand-coded XAML and or C# code...&amp;nbsp;&amp;nbsp; Also, note that a lot of the troubleshooting tips above get much easier in later versions of Blend (I think beta2)... I mostly wanted you to get the behavior and how blend loads your code.. so you understand what up... &lt;/P&gt;
&lt;P mce_keep="true"&gt;I will try to come back w/ a blend tips &amp;amp; tricks ...&amp;nbsp;&amp;nbsp; In the mean time, there is a small project with some sample code to illustrate points above &lt;A class="" href="http://jaimersamples.members.winisp.net/expression/expresssiontests.zip" mce_href="http://jaimersamples.members.winisp.net/expression/expresssiontests.zip"&gt;here&lt;/A&gt;..&amp;nbsp;&amp;nbsp;&amp;nbsp;Do a search for &lt;EM&gt;//TODO: interesting&amp;nbsp; &lt;/EM&gt;comments .... you can check them out, run the code, etc...&amp;nbsp;&amp;nbsp; if you run it simultaneously w/ dbgview, you should be able to see the Debug.WriteLine ()s&amp;nbsp; that tell you a little of what's going on ... &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;Good luck ... &lt;/P&gt;
&lt;P mce_keep="true"&gt;* &lt;FONT size=2&gt;[disclaimer, I should credit some one for the tip on using IsInDesignMode dep property with out a dep object, but can't recall who it was that shared this.. my guess would have been Unni or John Gossman. Sorry!&amp;nbsp; Do check their blogs though :) &lt;/FONT&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1501801" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jaimer/archive/tags/Windows+Presentation+Foundation/default.aspx">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/jaimer/archive/tags/blend/default.aspx">blend</category></item></channel></rss>