<?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>Unni's Blog : Blend</title><link>http://blogs.msdn.com/unnir/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>TabletPC and the Blend menus</title><link>http://blogs.msdn.com/unnir/archive/2009/06/07/tabletpcs-and-the-blend-menus.aspx</link><pubDate>Mon, 08 Jun 2009 09:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9707583</guid><dc:creator>unnir</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/unnir/comments/9707583.aspx</comments><wfw:commentRss>http://blogs.msdn.com/unnir/commentrss.aspx?PostID=9707583</wfw:commentRss><description>&lt;P&gt;If you do run into a situation where the Blend flyout menus appear on the left instead of the right as shown below, the Tablet PC Settings panel is a good place to check.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG style="WIDTH: 539px; HEIGHT: 230px" src="http://drqowg.blu.livefilestore.com/y1pNsOYrqt83fNPqGANwMKZQCfwdpVNU4wNof5aTC-hJ7Va4FBoa0gfknt0A4dYoO5Mka6rKsGA3_UcZQWZRoHiSxSP3DvGLvT7/FlyoutDirection.png" width=539 height=230 mce_src="http://drqowg.blu.livefilestore.com/y1pNsOYrqt83fNPqGANwMKZQCfwdpVNU4wNof5aTC-hJ7Va4FBoa0gfknt0A4dYoO5Mka6rKsGA3_UcZQWZRoHiSxSP3DvGLvT7/FlyoutDirection.png"&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG style="WIDTH: 381px; HEIGHT: 432px" src="http://drqowg.blu.livefilestore.com/y1p8XvO9CAlixbqzXUNkzUpWNXn4J08I773JMbmls_IeddX09JO7fm_1vWrKFhaBzcQySTynBM01uNMzq6U5pXEzfaAjU8bJmHh/TabletPCSettings.png" width=381 height=432 mce_src="http://drqowg.blu.livefilestore.com/y1p8XvO9CAlixbqzXUNkzUpWNXn4J08I773JMbmls_IeddX09JO7fm_1vWrKFhaBzcQySTynBM01uNMzq6U5pXEzfaAjU8bJmHh/TabletPCSettings.png"&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9707583" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/unnir/archive/tags/Blend/default.aspx">Blend</category></item><item><title>Blend, WPF and resource references</title><link>http://blogs.msdn.com/unnir/archive/2009/03/31/blend-wpf-and-resource-references.aspx</link><pubDate>Wed, 01 Apr 2009 09:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9525570</guid><dc:creator>unnir</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/unnir/comments/9525570.aspx</comments><wfw:commentRss>http://blogs.msdn.com/unnir/commentrss.aspx?PostID=9525570</wfw:commentRss><description>&lt;P&gt;A number of people have sought more clarity around how Blend and resources references work inside WPF projects. Hope the following FAQs would&amp;nbsp;help with&amp;nbsp;some of your questions.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;a) Should I use Static or Dynamic resource lookup?&lt;BR&gt;&lt;/STRONG&gt;Blend def. plays better with dynamic resource lookups. You could use a&amp;nbsp;static resource lookup as long as the resource was not located or merged into App.xaml. People have raised&amp;nbsp;concerns around performance issues with dynamic resource lookups (you pay for what you get). While that might be true, an interesting data point is that the Expression Blend source code&amp;nbsp;uses a ton&amp;nbsp;uses dynamic resource lookups for our own UI (of course, we too use static resource lookups in places where the resource would never change, or where it not possible to use a dynamic resource extension, for example non-DPs).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;b) If I had to used a static resource lookup, why don't things work when the resource is located in App.xaml?&lt;BR&gt;&lt;/STRONG&gt;When a static resource lookup is done inside the Blend design surface, unfortunately, the resource ends up being looked inside the Application object of Blend (which is in itself a WPF application). This does not play well with the way we host the design surface - we don't want to merge the user resources into&amp;nbsp;the Blend&amp;nbsp;Application object to avoid conflicts with the Blend UI styles. Please be assured that solving this problem is pretty high our wish list (and we are working with the WPF team on a solution).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;c) How can I create a control library of resources and use those resources in a different project?&lt;BR&gt;&lt;/STRONG&gt;&lt;A href="http://home.comcast.net/~unnir/samples/ResourceApplication.zip" mce_href="http://home.comcast.net/~unnir/samples/ResourceApplication.zip"&gt;Here&lt;/A&gt; is an example solution that shows you the setup. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;d) What is&amp;nbsp;a recommended pattern for organization of resources into external resource dictionaries?&lt;BR&gt;&lt;/STRONG&gt;Where there is no single pattern that I have noticed and it really depends on your scenario, an interesting data point is that the Blend source code itself only consists of a few resource dictionaries - we have one for a bunch of colors and brushes, and one for the styles for the common controls we use in our UI. Of course, we have two sets of these - one each for the Expression Dark and Light themes. Of course, fewer number of resource dictionaries helps with better performance inside Expression Blend.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;e) What if I was instantiating resources from code? How can I make my application more design-time friendly?&lt;BR&gt;&lt;/STRONG&gt;&lt;A href="http://blogs.msdn.com/expression/archive/2008/04/09/creating-a-wpf-blend-project-that-loads-resources-in-code.aspx" mce_href="http://blogs.msdn.com/expression/archive/2008/04/09/creating-a-wpf-blend-project-that-loads-resources-in-code.aspx"&gt;Here&lt;/A&gt; is a blog post that might help.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9525570" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/unnir/archive/tags/Blend/default.aspx">Blend</category><category domain="http://blogs.msdn.com/unnir/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/unnir/archive/tags/Resources/default.aspx">Resources</category></item><item><title>Blend 3 Extensibility</title><link>http://blogs.msdn.com/unnir/archive/2009/03/17/blend-3-extensibility.aspx</link><pubDate>Wed, 18 Mar 2009 03:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9485345</guid><dc:creator>unnir</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/unnir/comments/9485345.aspx</comments><wfw:commentRss>http://blogs.msdn.com/unnir/commentrss.aspx?PostID=9485345</wfw:commentRss><description>&lt;P&gt;Based on popular customer feedback, we have added a number of new extensibility points in Blend 3 (sorry, no support for plugins, yet, but &lt;A class="" href="http://blogs.msdn.com/psiman/archive/2008/12/05/unify-for-expression-blend-2.aspx" mce_href="http://blogs.msdn.com/psiman/archive/2008/12/05/unify-for-expression-blend-2.aspx"&gt;who needs an officially supported extensibility model anyway&lt;/A&gt;? :) )&lt;/P&gt;
&lt;P&gt;Over the next few weeks, I will provide more information on these, including interesting use cases that are already starting to pop up. Here is a quick listing of what we currently support:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Project and item templates: We support the same formats as Visual Studio, with some very minor modifications to suite our user experience. User project and item templates can be copied into C:\users\username\Documents\Expression\Blend 3\ProjectTemplates and \ItemTemplates respectively. We do not support wizards yet.&lt;/LI&gt;
&lt;LI&gt;The Blend Asset Library&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;Ability to register your custom controls. For example, to register a control library Foo.dll, all you need to do is to add the path to the control library as a value of the following registry key - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Expression\Blend\v3.0\Toolbox\Silverlight\v3.0\MyCustomControlLibraryKey. If this were a WPF library, the key you would setup is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Expression\Blend\v3.0\Toolbox\WPF\v3.5\MyCustomControlLibraryKey&lt;/LI&gt;
&lt;LI&gt;Adding an asset adds necessary assemblies to your project&lt;/LI&gt;
&lt;LI&gt;Support for custom control icons&lt;/LI&gt;
&lt;LI&gt;Setting custom properties on your control when they get instantiated - &lt;A class="" title="MSDN Link" href="http://msdn.microsoft.com/en-us/library/microsoft.windows.design.model.defaultinitializer.aspx" mce_href="http://msdn.microsoft.com/en-us/library/microsoft.windows.design.model.defaultinitializer.aspx"&gt;DefaultInitializer&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;Design surface for custom controls&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;Custom context menu commands&lt;/LI&gt;
&lt;LI&gt;Adorners&lt;/LI&gt;
&lt;LI&gt;Selection/object manipulation APIs&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;Property grid extensibliity&amp;nbsp; - same support as Blend 2, with a few minor additions here and there&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Some other notes:&lt;/STRONG&gt;&lt;BR&gt;Blend 3 will share the same extensibility model as the next version of Visual Studio. &lt;/P&gt;
&lt;P&gt;As we live in a world where there is greater and greater parity between WPF and Silverlight, we wanted the same for these APIs wherein you could use the same design time code to target controls for both platforms. To accomodate this, we had to make some minor breaking changes to the VS 2008 APIs (hopefully the changes&amp;nbsp;will be very straightforward to adapt to) - I will try to post a number of samples to help out with this. By and large, the APIs remain the same as documented &lt;A class="" href="http://msdn.microsoft.com/en-us/library/bb546938.aspx" mce_href="http://msdn.microsoft.com/en-us/library/bb546938.aspx"&gt;here&lt;/A&gt; (the documentation will be updated to reflect the breaking changes&amp;nbsp;at a later date).&lt;/P&gt;
&lt;P&gt;The APIs are not final yet, and are subject to change. Hopefully, we can keep the changes to a minimum.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9485345" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/unnir/archive/tags/Blend/default.aspx">Blend</category><category domain="http://blogs.msdn.com/unnir/archive/tags/Extensibility/default.aspx">Extensibility</category></item><item><title>Team Foundation Server support in Blend 3</title><link>http://blogs.msdn.com/unnir/archive/2009/03/17/team-foundation-server-support-in-blend-3.aspx</link><pubDate>Wed, 18 Mar 2009 00:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9484940</guid><dc:creator>unnir</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/unnir/comments/9484940.aspx</comments><wfw:commentRss>http://blogs.msdn.com/unnir/commentrss.aspx?PostID=9484940</wfw:commentRss><description>&lt;P&gt;Expression Blend 3 Preview adds support for integration with Team Foundation Server, one of our top feature requests.&lt;BR&gt;&lt;BR&gt;Some examples of the various integration points:&lt;BR&gt;a) Saving a file automatically checks it out&lt;BR&gt;b) Adding a new UserControl or assets to a project automatically adds them to source control&lt;BR&gt;c) Renaming or deleting files automatically renames or deletes items under source control&lt;BR&gt;d) Right clicking on an item that has been modified under source control allows you to submit that particular change&lt;BR&gt;e) View history, get latest versions of files&amp;nbsp;or specific versions, undo changes, etc.&lt;BR&gt;&lt;BR&gt;To enable source control for a solution open inside Blend, the solution must be bound and residing in a valid&amp;nbsp;workspace on the client. You can refer to the Visual Studio documentation on how to setup a solution under TFS source control &lt;A class="" title="Working with Team Foundation Version Control" href="http://msdn.microsoft.com/en-us/library/ms181368.aspx" mce_href="http://msdn.microsoft.com/en-us/library/ms181368.aspx"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;While you don't need to have Visual Studio 2008 installed on the machine to avail TFS support inside Blend, you do need to install &lt;A class="" title="Visual Studio Team System 2008 Team Explorer" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0ed12659-3d41-4420-bbb0-a46e51bfca86&amp;amp;displaylang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0ed12659-3d41-4420-bbb0-a46e51bfca86&amp;amp;displaylang=en"&gt;Visual Studio Team System 2008 Team Explorer&lt;/A&gt;, a free download. You also need to install &lt;A class="" title="Microsoft Visual Studio 2008 Service Pack 1" href="http://www.microsoft.com/downloads/details.aspx?familyid=FBEE1648-7106-44A7-9649-6D9F6D58056E&amp;amp;displaylang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?familyid=FBEE1648-7106-44A7-9649-6D9F6D58056E&amp;amp;displaylang=en"&gt;SP1 of Team Explorer&lt;/A&gt;, and a hotfix for Team Explorer SP1 that enables TFS support inside Blend - you can download that from &lt;A class="" href="http://code.msdn.microsoft.com/KB967483" mce_href="http://code.msdn.microsoft.com/KB967483"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Project Pane in Blend 3" style="WIDTH: 325px; HEIGHT: 494px" height=494 alt="Project Pane in Blend 3" src="https://home.comcast.net/~unnir/images/ProjectPaneTFS.JPG" width=325 mce_src="https://home.comcast.net/~unnir/images/ProjectPaneTFS.JPG"&gt;&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9484940" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/unnir/archive/tags/Blend/default.aspx">Blend</category><category domain="http://blogs.msdn.com/unnir/archive/tags/TFS/default.aspx">TFS</category></item></channel></rss>