<?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>Adrian Vinca's blog</title><link>http://blogs.msdn.com/b/adrianvinca/</link><description /><dc:language>en</dc:language><generator>Telligent Community 5.6.583.19199 (Build: 5.6.583.19199)</generator><item><title>SkyMap 1.5 Gets Mango Update, Adds Compass Support</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2011/10/07/skymap-1-5-gets-mango-update-adds-compass-support.aspx</link><pubDate>Fri, 07 Oct 2011 04:53:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10221433</guid><dc:creator>adrianvinca</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=10221433</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2011/10/07/skymap-1-5-gets-mango-update-adds-compass-support.aspx#comments</comments><description>&lt;p&gt;We’ve just published SkyMap 1.5, which is the first update that targets Windows Phone 7.5 (also known as mango). &lt;/p&gt;  &lt;p&gt;This update adds the most wanted feature – compass support! It is the feature that we wanted to add right from the first version, but it just wasn’t possible on the previous versions of the Windows Phone OS.&lt;/p&gt;  &lt;p&gt;You can find more details about the update &lt;a href="http://www.skymaponline.net/blog/post/2011/10/05/SkyMap-15-gets-mango-update-adds-compass-support.aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10221433" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/News/">News</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Apps/">Apps</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Windows+Phone/">Windows Phone</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/SkyMap/">SkyMap</category></item><item><title>SkyMap 1.2 for Windows Phone</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2011/05/26/skymap-1-2-for-windows-phone.aspx</link><pubDate>Thu, 26 May 2011 08:59:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10168580</guid><dc:creator>adrianvinca</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=10168580</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2011/05/26/skymap-1-2-for-windows-phone.aspx#comments</comments><description>&lt;p&gt;For the last few months, I’ve been working with a friend of mine, Ciprian, on this app. A few days ago, we released our third version (1.2). We are really happy about this release and we hope our customers will share our excitement.&lt;/p&gt;  &lt;p&gt;Our main focus in this release was the usability in the field (finally, we’ve got some good weather in Seattle, and that allowed us to spend more time using the application). We added a new map manipulation mode (rotation mode) that offers a much easier way to set the map orientation (which is very needed, because the current version of the OS doesn’t expose the compass functionality to applications).&lt;/p&gt;  &lt;p&gt;In anticipation of the next Windows Phone OS release (code name Mango) we included a beta version of the Point To Sky feature, that uses the tilt sensor.&lt;/p&gt;  &lt;p&gt;Another feature that we are really excited about is the Picture of The Day. NASA publishes one astronomy picture every day on the &lt;a href="http://apod.nasa.gov/"&gt;APOD website&lt;/a&gt;; those images are simply amazing, and they represent a great way to learn about the Universe.&lt;/p&gt;  &lt;p&gt;Other new features:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;flashlight (well, it really helps having a handy flashlight when watching the sky in complete darkness; and if you use the night mode, it will display a red color so that you don’t loose your eyes adaptation to darkness)&lt;/li&gt;    &lt;li&gt;map orientation lock&lt;/li&gt;    &lt;li&gt;help page&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;If you would like to find more about this release, you can check the following links:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://skymaponline.net/wp7.aspx" href="http://skymaponline.net/wp7.aspx"&gt;http://skymaponline.net/wp7.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="http://skymaponline.net/blog/post/2011/05/24/SkyMap-12-for-Windows-Phone.aspx" href="http://skymaponline.net/blog/post/2011/05/24/SkyMap-12-for-Windows-Phone.aspx"&gt;http://skymaponline.net/blog/post/2011/05/24/SkyMap-12-for-Windows-Phone.aspx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10168580" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/News/">News</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Apps/">Apps</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Windows+Phone/">Windows Phone</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/SkyMap/">SkyMap</category></item><item><title>Zune Clock 1.5</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2008/05/13/zune-clock-1-5.aspx</link><pubDate>Tue, 13 May 2008 12:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8499592</guid><dc:creator>adrianvinca</dc:creator><slash:comments>22</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=8499592</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2008/05/13/zune-clock-1-5.aspx#comments</comments><description>&lt;P&gt;A new evening away from GTA and a new version of the application. This time, I've added some media player capabilities to the player. I know, it may sound a little bit odd... or at least it did to me when somebody suggested me this on the forums. But it proved to be very easy to implement using the XNA. So finally, you can watch a clock while listening to some music on the Zune! 
&lt;P&gt;This time I won't post a photo because my camera is not currently charged. 
&lt;P&gt;You can download the latest version (and the older versions as well) from here: 
&lt;P&gt;&lt;A title=http://cid-a912b1c0a524f973.skydrive.live.com/browse.aspx/Zune%20Clock href="http://cid-a912b1c0a524f973.skydrive.live.com/browse.aspx/Zune%20Clock" mce_href="http://cid-a912b1c0a524f973.skydrive.live.com/browse.aspx/Zune%20Clock"&gt;http://cid-a912b1c0a524f973.skydrive.live.com/browse.aspx/Zune%20Clock&lt;/A&gt; 
&lt;H3&gt;New features and improvements:&lt;/H3&gt;
&lt;P&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - New feature: Media player&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Up/Down adjusts the volume&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Left/Right moves to the previous/next song&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Displays the album art&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Displays the artist and the song title&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - New feature: Can select a playlist to play it&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - New feature: Dim the background while in setting mode&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Update: Changed some controls for the setting mode (to make space for the pause button - which was needed for the media player):&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Click on the zune pad to enter the settings mode (previously it was the pause button)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Back button to exit settings mode (previousely also the pause button used to do that)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Bug: Fixed some possible crashes if the name of the background has non-latin characaters 
&lt;H3&gt;Features:&lt;/H3&gt;
&lt;P&gt;&lt;BR&gt;- Clock&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Displays the time&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Displays the date&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Allows setting the date/time&lt;BR&gt;- Media player&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Up/Down adjusts the volume&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Left/Right moves to the previous/next song&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Displays the album art&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Displays the artist and the song title&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Can select a playlist directly from the application (settings)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Can set the shuffle mode (settings)&lt;BR&gt;- Custom background&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Can specify any picture from the Zune as custom background (you need to have a few pictures first) 
&lt;H3&gt;Controls:&lt;/H3&gt;
&lt;P&gt;&lt;BR&gt;- Back Button - exits the application&lt;BR&gt;- Up/Down - Volume&lt;BR&gt;- Left/Right - Previous/Next song&lt;BR&gt;- Pause Button - Pause/resume&lt;BR&gt;- Click on the zune pad - enters setting mode&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Back - exits setting mode&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Up/Down - increments the selected setting&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Left/Right - cycles through the different settings (background, hours, minutes, seconds, days) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Click on the Zune pad - resets the current setting to the default value&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - When a playlist is selected - plays the selected playlist&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - When setting the time: sets the offset to 0 (so that you will see the hardware date/time)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - When setting the background: sets the background to "No background"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Pause/Back - exits setting mode&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8499592" width="1" height="1"&gt;</description><enclosure url="http://cid-a912b1c0a524f973.skydrive.live.com/self.aspx/Zune%20Clock/ZuneClock1.5.zip" length="22120" type="text/html; charset=utf-8" /><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Zune/">Zune</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/XNA/">XNA</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/ZuneClock/">ZuneClock</category></item><item><title>Zune Clock - My first XNA application</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2008/05/09/zune-clock-my-first-xna-application.aspx</link><pubDate>Fri, 09 May 2008 04:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8478639</guid><dc:creator>adrianvinca</dc:creator><slash:comments>16</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=8478639</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2008/05/09/zune-clock-my-first-xna-application.aspx#comments</comments><description>&lt;H3&gt;Zune Clock 1.1&lt;/H3&gt;
&lt;P&gt;Encouraged by the positive feedback I've received so far, I did my best to stay away from GTAIV during the weekend and did some more work on the Zune Clock. So, I've added a new feature: the the ability to customize the background.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/adrianvinca/WindowsLiveWriter/ZuneClockMyfirstXNAapplication_2069/IMG_2781.jpg"&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=244 alt=IMG_2781 src="http://blogs.msdn.com/blogfiles/adrianvinca/WindowsLiveWriter/ZuneClockMyfirstXNAapplication_2069/IMG_2781_thumb.jpg" width=196 border=0&gt;&lt;/A&gt;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; What's new in this version:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - New feature: Background customization (you need to have a few pictures on the Zune)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Bug: Fixed a bug which caused the settings data to become corrupt in some cases&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Bug: Performance improvements (application loops slower than initially - a clock doesn't need a very high refresh rate)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Update: Using white color for the settings (it makes the text more visible when having a custom background)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Update: The application version is displayed when in setting mode&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Code fix: Fixed the sources so that they compile fine on Debug&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Code fix: Refactored some of the settings code to make space for future settings&lt;/P&gt;
&lt;H3&gt;Zune Clock 1.0&lt;/H3&gt;
&lt;P&gt;A few days ago, I've decided to give a try to the XNA CTP which allows creating applications for the Zune. So, I've started going through the tutorials and I've decided to create a Clock application. I know, XNA is meant to be used for writing games... but I always wanted to have a clock on the Zune :). I was impressed to discover that the Zune has an internal clock, which works even when the Zune is shut down. The only issue I had was that the time was a little bit off, and there was no way to set the internal clock. So I've added the ability to "adjust" the time displayed. Basically, you define an offset which gets applied to the hardware clock. The value gets saved so that the next time when you start the application, it will still show the correct time.&lt;/P&gt;
&lt;P&gt;Description: Simple clock which displays the date and time. It allows adjusting the date and time displayed (it doesn't modify the internal hardware clock). The value gets saved and loaded the next time you start the application. 
&lt;P&gt;Features:&lt;BR&gt;- displays the time&lt;BR&gt;- displays the date&lt;BR&gt;- allows setting the date/time&lt;BR&gt;- the date/time adjustment is persisted so that the next time you start it you don't have to adjust it again. 
&lt;P&gt;Controls:&lt;BR&gt;- Back Button - exits the application&lt;BR&gt;- Pause Button - enters setting mode&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Up/Down - increments the selected setting&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Left/Right - cycles through the different settings (hours, minutes, seconds, days) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Click on the Zune pad - resets the adjustment to 0 (so that you will see the hardware date/time)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Pause/Back - exits setting mode 
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/adrianvinca/WindowsLiveWriter/ZuneClockMyfirstXNAapplication_2069/IMG_2770_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/adrianvinca/WindowsLiveWriter/ZuneClockMyfirstXNAapplication_2069/IMG_2770_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=184 alt=IMG_2770 src="http://blogs.msdn.com/blogfiles/adrianvinca/WindowsLiveWriter/ZuneClockMyfirstXNAapplication_2069/IMG_2770_thumb.jpg" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/adrianvinca/WindowsLiveWriter/ZuneClockMyfirstXNAapplication_2069/IMG_2770_thumb.jpg"&gt;&lt;/A&gt; &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&gt;&lt;A href="http://blogs.msdn.com/blogfiles/adrianvinca/WindowsLiveWriter/ZuneClockMyfirstXNAapplication_2069/IMG_2771_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/adrianvinca/WindowsLiveWriter/ZuneClockMyfirstXNAapplication_2069/IMG_2771_2.jpg"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=184 alt=IMG_2771 src="http://blogs.msdn.com/blogfiles/adrianvinca/WindowsLiveWriter/ZuneClockMyfirstXNAapplication_2069/IMG_2771_thumb.jpg" width=244 border=0 mce_src="http://blogs.msdn.com/blogfiles/adrianvinca/WindowsLiveWriter/ZuneClockMyfirstXNAapplication_2069/IMG_2771_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;I hope you will find this application useful.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDITED:&lt;/STRONG&gt; This article explains how to install Games on the Zune: &lt;A href="http://www.zuneboards.com/tip-of-the-week/how-to-install-games-on-your-zune.html"&gt;http://www.zuneboards.com/tip-of-the-week/how-to-install-games-on-your-zune.html&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8478639" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-08-47-86-39/ZuneClock1.1.zip" length="33153" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Zune/">Zune</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/XNA/">XNA</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/ZuneClock/">ZuneClock</category></item><item><title>How to detect if your code is being executed inside Expression Blend</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2007/07/27/how-to-detect-if-your-code-is-being-run-in-blend.aspx</link><pubDate>Fri, 27 Jul 2007 21:12:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4084018</guid><dc:creator>adrianvinca</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=4084018</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2007/07/27/how-to-detect-if-your-code-is-being-run-in-blend.aspx#comments</comments><description>&lt;h2&gt;Introduction&lt;/h2&gt; &lt;p&gt;In order to provide an editing experience as close as possible to the runtime, &lt;a href="http://www.microsoft.com/products/expression/en/Expression-Blend/default.mspx"&gt;Expression Blend&lt;/a&gt; executes some of the user defined code (it instantiates controls, data sources, sets properties,&amp;nbsp;etc.). But in some cases, you may want to avoid this behavior (if that code doesn't work properly when executed&amp;nbsp;inside Blend or&amp;nbsp;if it is a more time consuming experience).&lt;/p&gt; &lt;p&gt;This post explains how to detect if&amp;nbsp;your code is executed inside Blend and provide an alternate implementation for that case. For example your&amp;nbsp;datasource could connect to a database and extract the data, but, when running inside Blend, it could&amp;nbsp;generate a minimal sample data which can be used for creating some data templates).&lt;/p&gt; &lt;h2&gt;Solution&lt;/h2&gt; &lt;p&gt;The following sample uses a custom&amp;nbsp;TextBlock which displays&amp;nbsp;a different&amp;nbsp;message when the application is&amp;nbsp;loaded in a designer (in our case&amp;nbsp;&lt;a href="http://www.microsoft.com/products/expression/en/Expression-Blend/default.mspx"&gt;Expression Blend&lt;/a&gt;):&lt;/p&gt;&lt;pre&gt;	public class MyTextBlock : TextBlock
	{
		public MyTextBlock() : base()
		{
			if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
			{
				this.Text = "Design mode detected!";
			}
			else
			{
				this.Text = "No design mode";
			}
		}
	}
&lt;/pre&gt;
&lt;p&gt;For further&amp;nbsp;information you may check out the documentation for the &lt;a href="http://msdn2.microsoft.com/en-us/library/system.componentmodel.designerproperties.aspx"&gt;DesignerProperties Class&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4084018" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression+Blend/">Expression Blend</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Windows+Presentation+Foundation/">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Samples/">Samples</category></item><item><title>Expression Blend Beta 2 is available for download</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2007/01/31/expression-blend-beta-2-is-available-for-download.aspx</link><pubDate>Wed, 31 Jan 2007 12:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1564077</guid><dc:creator>adrianvinca</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=1564077</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2007/01/31/expression-blend-beta-2-is-available-for-download.aspx#comments</comments><description>&lt;P&gt;The new version can be donloaded from &lt;A class="" href="http://www.microsoft.com/products/expression/en/expression-blend/try.mspx" mce_href="http://www.microsoft.com/products/expression/en/expression-blend/try.mspx"&gt;here&lt;/A&gt;. Here are some of the changes:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Drag &amp;amp; drop to instantiate resources from the resources panel&lt;/LI&gt;
&lt;LI&gt;Better exception handling in the user code&lt;/LI&gt;
&lt;LI&gt;Better exception displayed in the scene: now you can investigate the InnerException, which, in many cases, will give more hints about what was the cause of the exception&lt;/LI&gt;
&lt;LI&gt;Font previews&lt;/LI&gt;
&lt;LI&gt;Many bugs fixes&lt;/LI&gt;&lt;/UL&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1564077" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression+Blend/">Expression Blend</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/News/">News</category></item><item><title>Expression Blend goes Beta!</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2006/12/04/expression-blend-goes-beta.aspx</link><pubDate>Mon, 04 Dec 2006 22:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1207488</guid><dc:creator>adrianvinca</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=1207488</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2006/12/04/expression-blend-goes-beta.aspx#comments</comments><description>&lt;P&gt;And it's coming with&amp;nbsp;lots of&amp;nbsp;new features, a completely new UI, and... a new name (previously it was known as Expression Interactive Designer)!&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/photos/adrianvinca/picture1207371.aspx" target=_blank mce_href="http://blogs.msdn.com/photos/adrianvinca/picture1207371.aspx"&gt;&lt;IMG src="http://blogs.msdn.com/photos/adrianvinca/images/1207371/482x375.aspx" border=0 mce_src="http://blogs.msdn.com/photos/adrianvinca/images/1207371/482x375.aspx"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You may find more &lt;A class="" href="http://blogs.msdn.com/expression/archive/2006/12/04/announcing-the-microsoft-expression-blend-beta.aspx" mce_href="http://blogs.msdn.com/expression/archive/2006/12/04/announcing-the-microsoft-expression-blend-beta.aspx"&gt;details&lt;/A&gt; on the &lt;A class="" href="http://blogs.msdn.com/expression" mce_href="http://blogs.msdn.com/expression"&gt;Expression Team Blog&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;But wait, there is more! A new CTP of &lt;A class="" href="http://www.microsoft.com/products/expression/en/Expression-Design/default.mspx" mce_href="http://www.microsoft.com/products/expression/en/Expression-Design/default.mspx"&gt;Expression&amp;nbsp;Design&lt;/A&gt; is available and... the final version of &lt;A class="" href="http://www.microsoft.com/products/expression/en/Expression-Web/default.mspx" mce_href="http://www.microsoft.com/products/expression/en/Expression-Web/default.mspx"&gt;Expression Web&lt;/A&gt;! Also, a new&amp;nbsp;member of&amp;nbsp;the Expression family (&lt;A class="" href="http://www.microsoft.com/products/expression/en/expression-studio/default.mspx" mce_href="http://www.microsoft.com/products/expression/en/expression-studio/default.mspx"&gt;Expression Studio&lt;/A&gt;)&amp;nbsp;was announced today: &lt;A class="" href="http://www.microsoft.com/products/expression/en/Expression-Media/default.mspx" mce_href="http://www.microsoft.com/products/expression/en/Expression-Media/default.mspx"&gt;Expression Media&lt;/A&gt;!&lt;/P&gt;
&lt;P&gt;And... don't forget to check out the new &lt;A class="" href="http://www.microsoft.com/products/expression/en/default.mspx" mce_href="http://www.microsoft.com/products/expression/en/default.mspx"&gt;Expression website&lt;/A&gt;&amp;nbsp;for more details!&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1207488" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression+Blend/">Expression Blend</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/News/">News</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression/">Expression</category></item><item><title>Check out Snoop - a very useful tool for debugging WPF applications</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2006/11/29/check-out-snoop-a-very-useful-tool-for-debugging-wpf-applications.aspx</link><pubDate>Wed, 29 Nov 2006 13:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1170903</guid><dc:creator>adrianvinca</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=1170903</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2006/11/29/check-out-snoop-a-very-useful-tool-for-debugging-wpf-applications.aspx#comments</comments><description>&lt;P&gt;Some time ago, &lt;A class="" href="http://www.blois.us/blog/" mce_href="http://www.blois.us/blog/"&gt;Peter Blois&lt;/A&gt; posted "Snoop", a tool which I find really useful for debugging&amp;nbsp;WPF applications. It allows you to:&lt;/P&gt;
&lt;LI&gt;Browse the visual tree of running WPF applications 
&lt;LI&gt;Inspect properties of elements at runtime 
&lt;LI&gt;Edit properties of elements at runtime 
&lt;LI&gt;Inspect RoutedEvents that are occurring, including the elements that handle them 
&lt;LI&gt;Magnify sections of the UI 
&lt;LI&gt;Find and debug binding errors&lt;/LI&gt;
&lt;P&gt;&lt;IMG title="Snoop screenshot" style="WIDTH: 700px; HEIGHT: 580px" height=580 alt="Snoop screenshot" src="http://www.blois.us/Snoop/pics/PrimaryView.PNG" width=700 mce_src="http://www.blois.us/Snoop/pics/PrimaryView.PNG"&gt;&lt;/P&gt;
&lt;P&gt;You may find more info and downloads on the Snoop&amp;nbsp;official&amp;nbsp;web page:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.blois.us/Snoop/"&gt;http://www.blois.us/Snoop/&lt;/A&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1170903" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression+Blend/">Expression Blend</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Windows+Presentation+Foundation/">Windows Presentation Foundation</category></item><item><title>Meet Funny Face and Mad Cow</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2006/06/02/614986.aspx</link><pubDate>Fri, 02 Jun 2006 23:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:614986</guid><dc:creator>adrianvinca</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=614986</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2006/06/02/614986.aspx#comments</comments><description>&lt;P&gt;Today I played a little bit more with &lt;a href="http://www.microsoft.com/products/expression/en/graphic_designer/default.mspx"&gt;Expression Graphic Designer&lt;/a&gt;... It was the first time when I used it more seriously for drawing things (I had used it before, but mainly for adjusting and stitching photos). So,&amp;nbsp;this is what I managed to draw in about one hour...&lt;/P&gt;
&lt;P&gt;&lt;IMG src="/photos/adrianvinca/images/614587/secondarythumb.aspx" border=0&gt;&lt;A HREF="/photos/adrianvinca/images/614589/original.aspx" target=_blank&gt;&lt;IMG src="/photos/adrianvinca/images/614589/secondarythumb.aspx" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=614986" width="1" height="1"&gt;</description></item><item><title>Check out Onfolio - the new addition to the Windows Live Toolbar</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2006/03/12/549709.aspx</link><pubDate>Sun, 12 Mar 2006 04:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:549709</guid><dc:creator>adrianvinca</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=549709</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2006/03/12/549709.aspx#comments</comments><description>&lt;P&gt;The new &lt;A href="http://toolbar.live.com/"&gt;Windows Live Toolbar&lt;/A&gt; includes, for free, &lt;A href="http://www.onfolio.com/"&gt;Onfolio&lt;/A&gt;, which is a very nice and useful feeds reader.&lt;/P&gt;
&lt;P&gt;&lt;A HREF="/photos/adrianvinca/Onfolio.aspx" target=_blank&gt;&lt;IMG src="/photos/adrianvinca/images/original/Onfolio.aspx" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;The features I like the most&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Easy to add and organize feeds (there is a button on the toolbar to search for a feed in the current page)&lt;/LI&gt;
&lt;LI&gt;Easy and fast to go through the news (just use the arrows to go up and down, keyboard shortcuts to mark the item as un read)&lt;/LI&gt;
&lt;LI&gt;Easy to e-mail the selected item&lt;/LI&gt;
&lt;LI&gt;Cool UI&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;For a more comprehensive list of features, you may take a look &lt;A href="http://www.onfolio.com/product/toolbaraddin/"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The Windows Live Toolbar can be downloaded from here: &lt;A href="http://toolbar.live.com/"&gt;http://toolbar.live.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;One more thing... don't forget to add the &lt;a href="http://blogs.msdn.com/expression"&gt;Expression Blog&lt;/a&gt; to&amp;nbsp;Onfolio ;)&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=549709" width="1" height="1"&gt;</description></item><item><title>How to use a custom ValueConverter in Microsoft Expression Interactive Designer</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2006/03/10/538409.aspx</link><pubDate>Fri, 10 Mar 2006 04:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:538409</guid><dc:creator>adrianvinca</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=538409</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2006/03/10/538409.aspx#comments</comments><description>One of the new databinding features in the March CTP of &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; is the ability to handle value converters. This article will explain how to databind 2 TextBox controls using a custom value converter which reverts the text. 
&lt;H4&gt;Step 1 - Create a custom value converter &lt;/H4&gt;We will create a very simple value converter which reverts a string. We will define the custom converter class in the code behind file for Scene1. &lt;BR&gt;So, copy paste the following code into the codebehind file (&lt;B&gt;scene1.xaml.cs&lt;/B&gt;), after the closing tag for the Scene1 class. &lt;PRE&gt;	[ValueConversion(typeof(string), typeof(string))]
	public class ReverseStringConverter: IValueConverter
	{
		public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			string source = value as string;
			return ReverseStringConverter.RevertString(source);
		}
 
		public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			string source = value as string;
			return ReverseStringConverter.RevertString(source);
		}
	
		private static string RevertString(string source)
		{
			int sourceLength = source.Length;
			char[] destination = new char[source.Length];
			
			for (int iterator = 0; iterator &amp;lt; sourceLength; iterator++)
			{
				destination[iterator] = source[sourceLength - iterator - 1];
			}
			
			return new string(destination);
		}
	}
&lt;/PRE&gt;The class ReverseStringConverter implements the &lt;A href="http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref30/html/t_system_windows_data_ivalueconverter.asp"&gt;IValueConverter&lt;/A&gt; converter interface (click the link for more information). In our example, both methods, &lt;STRONG&gt;Convert&lt;/STRONG&gt; and &lt;STRONG&gt;ConvertBack&lt;/STRONG&gt; call the same private method &lt;STRONG&gt;RevertString&lt;/STRONG&gt; which reverts&amp;nbsp;the specified&amp;nbsp;string. &lt;BR&gt;
&lt;H4&gt;Step 2 - Build project&lt;/H4&gt;Currently &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; requires the project to be built in order to use classed defined in the project. For that, in the main menu click on &lt;STRONG&gt;Project&lt;/STRONG&gt; -&amp;gt; &lt;STRONG&gt;Build Project&lt;/STRONG&gt; 
&lt;H4&gt;Step 3 - Create 2 TextBox controls in the scene&lt;/H4&gt;Switch to the Scene1.&lt;BR&gt;Bring up the Properties palette and create 2 TextBox controls in the scene. 
&lt;H4&gt;Step 4 - Create the databinding using the custom value converter&lt;/H4&gt;We are going to databind the &lt;STRONG&gt;Text&lt;/STRONG&gt; property of &lt;STRONG&gt;TextBox&lt;/STRONG&gt; to the &lt;STRONG&gt;Text&lt;/STRONG&gt; property of &lt;STRONG&gt;TextBox1&lt;/STRONG&gt;, using the custom value converter defined previously (ReverseStringConverter). Select the first TextBox (named TextBox) using the Selection tool.&lt;BR&gt;In the &lt;STRONG&gt;Properties&lt;/STRONG&gt; palette, click on the &lt;STRONG&gt;Text&lt;/STRONG&gt; property and select "&lt;STRONG&gt;Databind&lt;/STRONG&gt;" from the menu. The &lt;STRONG&gt;Create Data Binding&lt;/STRONG&gt; dialog will be displayed.&lt;BR&gt;Click on the "&lt;STRONG&gt;Element Property&lt;/STRONG&gt;". &lt;STRONG&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" color=#ff0000&gt;A&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR&gt;Select &lt;STRONG&gt;TextBox1&lt;/STRONG&gt; from the &lt;STRONG&gt;Scene Elements&lt;/STRONG&gt; section &lt;STRONG&gt;&lt;FONT color=#ff0000&gt;B&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR&gt;Select &lt;STRONG&gt;Text&lt;/STRONG&gt; from the &lt;STRONG&gt;Properties&lt;/STRONG&gt; section. &lt;STRONG&gt;&lt;FONT color=#ff0000&gt;C&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR&gt;Click on "&lt;STRONG&gt;More Binding Options&lt;/STRONG&gt;" expand button; this will show a few more advanced binding options. &lt;BR&gt;Click on the double arrow button to set the &lt;STRONG&gt;Binding Direction&lt;/STRONG&gt; as &lt;STRONG&gt;Two Way&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color=#ff0000&gt;D&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR&gt;Click on the "&lt;STRONG&gt;...&lt;/STRONG&gt;" button &lt;STRONG&gt;&lt;FONT color=#ff0000&gt;E&lt;/FONT&gt;&lt;/STRONG&gt; next to the &lt;STRONG&gt;ValueConverter&lt;/STRONG&gt;; the "&lt;STRONG&gt;Add value converter&lt;/STRONG&gt;" dialog will be displayed &lt;BR&gt;Expand the node coresponding to your project and select "&lt;STRONG&gt;ReverseStringConverter&lt;/STRONG&gt;" from there. Press on the &lt;STRONG&gt;OK&lt;/STRONG&gt; Button.&lt;BR&gt;At this point, the &lt;STRONG&gt;Create Data Binding&lt;/STRONG&gt; dialog should look like this: &lt;BR&gt;&lt;IMG src="/photos/adrianvinca/images/original/CreateDataBindingDialog.aspx" border=0&gt;&lt;BR&gt;Press the &lt;STRONG&gt;Finish&lt;/STRONG&gt; button &lt;BR&gt;
&lt;H4&gt;Step 5 - Build and run the application&lt;/H4&gt;For that, go into the main menu and select &lt;STRONG&gt;Project&lt;/STRONG&gt;-&amp;gt;&lt;STRONG&gt;Test Project&lt;/STRONG&gt;. &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; should build your application and a new window should be displayed &lt;BR&gt;Type in the first textbox. You notice that the text is automatically updated in the second textbox (and it is reverted). &lt;BR&gt;If you type in the second textbox, the first textbox will be updated &lt;BR&gt;. &lt;IMG src="/photos/adrianvinca/images/538418/561x480.aspx" border=0&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=538409" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression+Blend/">Expression Blend</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Tutorials/">Tutorials</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression/">Expression</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Designer+Tools/">Designer Tools</category></item><item><title>The March CTP of Expression Interactive Designer is available for download</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2006/03/10/547967.aspx</link><pubDate>Fri, 10 Mar 2006 04:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:547967</guid><dc:creator>adrianvinca</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=547967</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2006/03/10/547967.aspx#comments</comments><description>&lt;P&gt;Your wait is over! The March CTP version of &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; is available for download.&amp;nbsp;The download&amp;nbsp;instructions are available on the &lt;a href="http://blogs.msdn.com/expression"&gt;Expression Blog&lt;/a&gt; &lt;A HREF="/expression/archive/2006/03/09/543851.aspx"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=547967" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression+Blend/">Expression Blend</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/News/">News</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression/">Expression</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Designer+Tools/">Designer Tools</category></item><item><title>Displaying a graph using databinding and styles</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2006/03/07/simplegraphsample.aspx</link><pubDate>Tue, 07 Mar 2006 03:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:545016</guid><dc:creator>adrianvinca</dc:creator><slash:comments>6</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=545016</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2006/03/07/simplegraphsample.aspx#comments</comments><description>&lt;P&gt;This example shows&amp;nbsp;how&amp;nbsp;databinding and&amp;nbsp;styles&amp;nbsp;can be used for displaying a set of connected nodes.&amp;nbsp;To better illustrate this, I've added some basic interactivity: the nodes can be dragged using the mouse and databinding will update automatically the positions of the lines.&lt;/P&gt;
&lt;P&gt;For simplicity, I will use a set of predefined nodes and a set of predefined lines connecting those nodes (but,&amp;nbsp;the functionality could be easily exteded to create&amp;nbsp;them dynamically).&lt;/P&gt;
&lt;P&gt;I've used mainly &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; for creating this sample, but because of some limitations&amp;nbsp;in the current CTP, I had to tweak a few times the code manually. The project can be opened and edited by &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; without any problems.&lt;/P&gt;
&lt;P&gt;This time I won't create a step by step tutorial; I will explain shortly each part of the code and how everything works. So feel free to download the project, open it and Visual Studio or &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt;, run it and look through the code.&lt;/P&gt;
&lt;H4&gt;Canvas as the Document Root&lt;/H4&gt;
&lt;P&gt;We will use a Canvas as the DocumentRoot. Canvas is a simple layout container which allows positioning children by specifying X-Y coordinates.&lt;/P&gt;
&lt;P&gt;By default, &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; creates the DocumentRoot a Grid. In order to create a new scene with a Canvas, you need to uncheck the option "New Scene Creates a Grid" from the "Tools" menu. The scenes created after that will have a Canvas as the DocumentRoot&lt;/P&gt;
&lt;H4&gt;Defining a Style for a node&lt;/H4&gt;
&lt;P&gt;Styles represent a great way to reuse properties and events. This is what our style does:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Sets the Stroke to black 
&lt;LI&gt;Sets the Fill to red 
&lt;LI&gt;Sets the Width and Height to 50 
&lt;LI&gt;Sets a RenderTransform which translates to left and up with&amp;nbsp;25 px. This will cause the ellipse&amp;nbsp;to be centered around its top-left position. 
&lt;LI&gt;Defines event handlers for MouseUp and MouseDown&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;	&amp;lt;Canvas.Resources&amp;gt;
		&amp;lt;Style x:Key="NodeStyle" TargetType="{x:Type Ellipse}"&amp;gt;
			&amp;lt;Setter Property="Stroke" Value="#FF000000" /&amp;gt;
			&amp;lt;Setter Property="Fill" Value="sc#1, 1, 0, 0"/&amp;gt;
			&amp;lt;Setter Property="Width" Value="50" /&amp;gt;
			&amp;lt;Setter Property="Height" Value="50"/&amp;gt;
			&amp;lt;Setter Property="RenderTransform"&amp;gt;
				&amp;lt;Setter.Value&amp;gt;
					&amp;lt;TransformGroup&amp;gt;
						&amp;lt;TranslateTransform X="0" Y="0"/&amp;gt;
						&amp;lt;ScaleTransform ScaleX="1" ScaleY="1"/&amp;gt;
						&amp;lt;SkewTransform AngleX="0" AngleY="0"/&amp;gt;
						&amp;lt;RotateTransform Angle="0"/&amp;gt;
						&amp;lt;TranslateTransform X="0" Y="0"/&amp;gt;
						&amp;lt;TranslateTransform X="-25" Y="-25"/&amp;gt;
					&amp;lt;/TransformGroup&amp;gt;
				&amp;lt;/Setter.Value&amp;gt;
			&amp;lt;/Setter&amp;gt;
			
			&amp;lt;EventSetter Event="MouseDown" Handler="OnMouseDown" /&amp;gt;
			&amp;lt;EventSetter Event="MouseUp" Handler="OnMouseUp" /&amp;gt;
		&amp;lt;/Style&amp;gt;
	&amp;lt;/Canvas.Resources&amp;gt;
&lt;/PRE&gt;
&lt;H4&gt;Adding a few nodes&lt;/H4&gt;
&lt;P&gt;Now, when we create a new node, we just need to specify its style and its position, because all the other properties and the event handlers are defined inside the style. &lt;/P&gt;&lt;PRE&gt;	&amp;lt;Ellipse x:Name="Ellipse" Style="{DynamicResource NodeStyle}" Canvas.Left="448" Canvas.Top="133" /&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;You can also add new nodes using &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt;: 
&lt;UL&gt;
&lt;LI&gt;Draw a new ellipse 
&lt;LI&gt;Right click on it Edit Style - Apply Resource - NodeStyle; this will apply the existing style to the ellipse 
&lt;LI&gt;&lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; creates by default some attributes; the problem is that, in this case they override the values defined by the style; so we need to clear those attributes (in the Properties palette, click on the property and select "Clear/Default"): 
&lt;UL&gt;
&lt;LI&gt;Stroke 
&lt;LI&gt;Fill 
&lt;LI&gt;Width 
&lt;LI&gt;Height&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;/P&gt;
&lt;H4&gt;Defining the lines&lt;/H4&gt;
&lt;P&gt;We will define a set of predefined lines, and databind the coordinates of the two points to the coordinates of the nodes (the attached properties Canvas.Left and Canvas.Top). Unfortunately, the only way to do this step manually, because &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; has currently some limitations (we know about this issues and we hope that we will improve them in the next releases): 
&lt;UL&gt;
&lt;LI&gt;it doesn't allow to create a Line object. 
&lt;LI&gt;it doesn't support databinding to an attached property.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;A Line object has two pairs of values representing the coordinates for the two points: X1, Y1 and X2, Y2. Here is how we can bind one of the ends to the coordinates of one of the ellipses:&lt;/P&gt;&lt;PRE&gt;	&amp;lt;Line Stroke="#FF000000"
		X1="{Binding ElementName=Ellipse, Path=(Canvas.Left), Mode=Default}"
		Y1="{Binding ElementName=Ellipse, Path=(Canvas.Top), Mode=Default}" 
		X2="50" Y2="150" /&amp;gt;
&lt;/PRE&gt;
&lt;H4&gt;The logic for moving the nodes&lt;/H4&gt;
&lt;P&gt;First of all we will add an event handler for the MouseMove event of the DocumentRoot element. We will name it OnMouseMove. This step can be done using &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; by selecting the DocumentRoot and using the Events palette to add the event.&lt;/P&gt;
&lt;P&gt;We also need to add the events handler OnMouseUp and OnMouseDown defined in the style. Unfortunately this step needs to be done manually at this point.&lt;/P&gt;
&lt;P&gt;The logic is simple: when we get a MouseDown notification, we store in a private field the sender (the node) of that notification; in the MouseMove handler we will update the position of that node. This is the final code:&lt;/P&gt;&lt;PRE&gt;	public partial class Scene1
	{
		
		public Scene1()
		{
			// This assumes that you are navigating to this scene.
			// If you will normally instantiate it via code and display it
			// manually, you either have to call InitializeComponent by hand or
			// uncomment the following line.
			// this.InitializeComponent();

			// Insert code required on object creation below this point.
		}

		private FrameworkElement movingObject = null;

		private void OnMouseMove(object sender, System.Windows.Input.MouseEventArgs e)
		{
			if (this.movingObject != null)
			{
				Point mousePosition = Mouse.GetPosition(this.DocumentRoot);

				this.movingObject.SetValue(Canvas.LeftProperty, mousePosition.X);
				this.movingObject.SetValue(Canvas.TopProperty, mousePosition.Y);
			}
		}


		private void OnMouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
		{
			this.movingObject = sender as FrameworkElement;
		}


		private void OnMouseUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
		{
			this.movingObject = null;
		}
	}
&lt;/PRE&gt;
&lt;P&gt;This implementation could be improved (for example, if you click on the edge of an ellipse and move the mouse just a little bit, you will notice that the ellipse will "jump" so that it will be centered on the mouse pointer.&lt;/P&gt;
&lt;H4&gt;Running the application&lt;/H4&gt;
&lt;P&gt;Once you've got all the code in place, you just need to build and run the application. You can click and move different nodes and the lines will just update automatically.&lt;/P&gt;
&lt;P&gt;&lt;A href="/photos/adrianvinca/SimpleGraph.aspx" target=_blank&gt;&lt;IMG src="/photos/adrianvinca/images/545013/561x480.aspx" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Notes:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The attached project requires the Feb CTP of &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=F51C4D96-9AEA-474F-86D3-172BFA3B828B&amp;displaylang=en"&gt;WinFX Runtime Components Feb CTP&lt;/a&gt;. The corresponding version of &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; is the March CTP (which should be released soon) 
&lt;LI&gt;This sample shows a very simplistic implementation for the drag-drop behavior. A better approach is presented by &lt;a href="http://blogs.msdn.com/unnir/"&gt;Unni&lt;/a&gt; in&amp;nbsp;his article -&amp;nbsp;&lt;A href="/unnir/archive/2006/01/31/521065.aspx"&gt;"Panel Like" system&lt;/A&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=545016" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-00-54-50-16/SimpleGraph.zip" length="6054" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression+Blend/">Expression Blend</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Samples/">Samples</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression/">Expression</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Designer+Tools/">Designer Tools</category></item><item><title>The new WinFX Runtime Components (February CTP) is available for download</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2006/02/23/537512.aspx</link><pubDate>Thu, 23 Feb 2006 05:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:537512</guid><dc:creator>adrianvinca</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=537512</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2006/02/23/537512.aspx#comments</comments><description>&lt;P&gt;The February CTP of the WinFX Runtime Compoments is available for download.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note: &lt;/STRONG&gt;The current version of Microsoft Expression Interactive Designer doesn't support the new version of the WinFX runtime. For more details click &lt;A HREF="/expression/archive/2006/02/22/537105.aspx"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=537512" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Windows+Presentation+Foundation/">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/News/">News</category></item><item><title>Top Ten UI Development Breakthroughs In Windows Presentation Foundation</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2006/02/23/537501.aspx</link><pubDate>Thu, 23 Feb 2006 05:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:537501</guid><dc:creator>adrianvinca</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=537501</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2006/02/23/537501.aspx#comments</comments><description>Here is an interesting article presenting some of the cool WinFx features:
&lt;BR&gt;
&lt;A href="http://msdn.microsoft.com/windowsvista/building/presentation/default.aspx?pull=/msdnmag/issues/06/01/windowspresentationfoundation/default.aspx"&gt;Top Ten UI Development Breakthroughs In Windows Presentation Foundation&lt;/A&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=537501" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Windows+Presentation+Foundation/">Windows Presentation Foundation</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/News/">News</category></item><item><title>Creating a simple style with one trigger</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2006/02/16/532949.aspx</link><pubDate>Thu, 16 Feb 2006 05:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:532949</guid><dc:creator>adrianvinca</dc:creator><slash:comments>5</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=532949</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2006/02/16/532949.aspx#comments</comments><description>&lt;P&gt;This article describes how to create a simple style with one trigger in &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt;. We will create a blue rectangle which becomes red when the mouse is over it.&lt;/P&gt;
&lt;H4&gt;Step 1 - Create a rectangle&lt;/H4&gt;
&lt;P&gt;Draw a rectangle using the "&lt;STRONG&gt;Rectangle&lt;/STRONG&gt;" tool from the Tools palette&lt;BR&gt;Click on the "&lt;STRONG&gt;Selection&lt;/STRONG&gt;" tool on the tools palette&lt;/P&gt;
&lt;H4&gt;Step 2 - Clear the Fill property&lt;/H4&gt;
&lt;P&gt;EID by default sets a Fill to your rectangle which would override our Style settings, so we need to delete that property (if you switch to the xaml view, you will notice that there is a Fill attribute specified for the rectangle): &lt;BR&gt;In the &lt;STRONG&gt;Properties&lt;/STRONG&gt; palette, Click on the &lt;STRONG&gt;Fill&lt;/STRONG&gt; property and Select "&lt;STRONG&gt;Clear/Default&lt;/STRONG&gt;" - &lt;BR&gt;this should clear the property&lt;/P&gt;
&lt;H4&gt;Step 3 - Create a Style for the rectangle&lt;/H4&gt;
&lt;P&gt;In the timeline, right click on your rectangle-&amp;gt;&lt;STRONG&gt;Edit Style&lt;/STRONG&gt;-&amp;gt;&lt;STRONG&gt;Create Empty Style &lt;/STRONG&gt;(usually you should be able to do this in the scene, but now, because the Fill property is not set, the rectangle&amp;nbsp;may not selectable in the scene - known issue)&lt;/P&gt;
&lt;P&gt;Click "&lt;STRONG&gt;Ok&lt;/STRONG&gt;" in the "&lt;STRONG&gt;Create Style Resource&lt;/STRONG&gt;" dialog&lt;/P&gt;
&lt;H4&gt;Step 4 - Set a default Fill for the rectangle inside the Style&lt;/H4&gt;
&lt;P&gt;Bring up the "&lt;STRONG&gt;Timeline&lt;/STRONG&gt;" palette - note that we are currently editing the style (the node displayed should be "Style"). In order to get the mouse events at runtime, our rectangle will need a Fill; so we will set a Fill in the Style.&lt;/P&gt;
&lt;P&gt;In the &lt;STRONG&gt;Appearance&lt;/STRONG&gt; palette, set the &lt;STRONG&gt;Fill&lt;/STRONG&gt; to "blue" (because we are in the Style editing mode, this will create a Setter inside the style)&lt;/P&gt;
&lt;H4&gt;Step 5 - Add a Trigger&amp;nbsp;for the IsMouseOver&lt;/H4&gt;Click on the "&lt;STRONG&gt;Create New State&lt;/STRONG&gt;" button; a new tab called "&lt;STRONG&gt;[No Triggers]&lt;/STRONG&gt;" is displayed in the timeline; Click on it &lt;BR&gt;Bring up the "&lt;STRONG&gt;Timeline Properties&lt;/STRONG&gt;" palette (using the "View" menu)&lt;BR&gt;Create a new trigger: Click on the "&lt;STRONG&gt;Add&lt;/STRONG&gt;" button in the "&lt;STRONG&gt;Timeline Properties&lt;/STRONG&gt;" to add a new trigger; in the first textbox type "&lt;STRONG&gt;IsMouseOver&lt;/STRONG&gt;" and "&lt;STRONG&gt;true&lt;/STRONG&gt;" in the second one; now the tab is called "&lt;STRONG&gt;IsMouseOver&lt;/STRONG&gt;"&lt;BR&gt;Ensure that the "&lt;STRONG&gt;IsMouseOver&lt;/STRONG&gt;" tab is selected and change the "Fill" color in the "Appearance" palette to your desired color (e.g. "red")&lt;BR&gt;Click the "&lt;STRONG&gt;Return Scope To Root&lt;/STRONG&gt;" button (in the Timeline palette) to end the style editing mode&lt;BR&gt;&lt;BR&gt;
&lt;H4&gt;The final xaml&lt;/H4&gt;The final xaml looks like:
&lt;pre&gt;
	&amp;lt;Grid.Resources&gt;
		&amp;lt;Storyboard x:Key="OnLoaded"/&gt;
		&amp;lt;Style x:Key="RectangleStyle1" TargetType="{x:Type Rectangle}"&gt;
			&amp;lt;Setter Property="Fill" Value="sc#1, 0, 0, 1"/&gt;
			&amp;lt;Style.Triggers&gt;
				&amp;lt;MultiTrigger&gt;
					&amp;lt;MultiTrigger.Conditions&gt;
						&amp;lt;Condition Property="IsMouseOver" Value="True"/&gt;
					&amp;lt;/MultiTrigger.Conditions&gt;
					&amp;lt;Setter Property="Fill" Value="sc#1, 1, 0, 0"/&gt;
				&amp;lt;/MultiTrigger&gt;
			&amp;lt;/Style.Triggers&gt;
		&amp;lt;/Style&gt;
	&amp;lt;/Grid.Resources&gt;
&lt;/pre&gt;

&lt;pre&gt;
&amp;lt;Rectangle Stroke="#FF000000" Style="{DynamicResource RectangleStyle1}"
	Width="Auto" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
	MinWidth="0" MinHeight="0" Margin="128,99,183,202" x:Name="Rectangle"
	RenderTransformOrigin="0.5,0.5"/&gt;
&lt;/pre&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=532949" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression+Blend/">Expression Blend</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Tutorials/">Tutorials</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression/">Expression</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Designer+Tools/">Designer Tools</category></item><item><title>Creating a simple master details list</title><link>http://blogs.msdn.com/b/adrianvinca/archive/2006/02/15/532449.aspx</link><pubDate>Wed, 15 Feb 2006 13:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:532449</guid><dc:creator>adrianvinca</dc:creator><slash:comments>5</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/adrianvinca/rsscomments.aspx?WeblogPostID=532449</wfw:commentRss><comments>http://blogs.msdn.com/b/adrianvinca/archive/2006/02/15/532449.aspx#comments</comments><description>&lt;P&gt;This article describes how to create a master details list using &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt; (and guess what: no code needed!). We are going to use databinding to achieve this.&lt;/P&gt;
&lt;H4&gt;The data-source&lt;/H4&gt;
&lt;P&gt;We will use a simple xml, containing the list of products from the Expression family, and a short description for each of them. Download the attached "&lt;STRONG&gt;products.xml&lt;/STRONG&gt;" and save it on your local machine. &lt;/P&gt;
&lt;P&gt;Start &lt;a href="http://www.microsoft.com/products/expression/en/interactive_designer/default.mspx"&gt;Microsoft Expression Interactive Designer&lt;/a&gt;. We will use the empty project created by default &lt;/P&gt;
&lt;P&gt;Add &lt;STRONG&gt;products.xml&lt;/STRONG&gt; as an XML Data source. For that, in the "&lt;STRONG&gt;Data&lt;/STRONG&gt;" palette, click on the "&lt;STRONG&gt;Add XML Data Source&lt;/STRONG&gt;" and Browse to the "&lt;STRONG&gt;products.xml&lt;/STRONG&gt;". Press &lt;STRONG&gt;Ok&lt;/STRONG&gt;. Now the Data Palette will show the new data source (its default name is "&lt;STRONG&gt;ProductsDS&lt;/STRONG&gt;").&lt;/P&gt;
&lt;H4&gt;The master list&lt;/H4&gt;
&lt;P&gt;Expand the "&lt;STRONG&gt;ProductsDS&lt;/STRONG&gt;" data source and "&lt;STRONG&gt;Product[n]&lt;/STRONG&gt;" node on the scene. Choose &lt;STRONG&gt;ListBox&lt;/STRONG&gt; from the context menu. Press "&lt;STRONG&gt;Ok&lt;/STRONG&gt;" at the first dialog; in the second one, uncheck "&lt;STRONG&gt;Description&lt;/STRONG&gt;" (we want to show only the name in the list) and press &lt;STRONG&gt;Ok&lt;/STRONG&gt;. At this point, you should have a list displaying the names of the products.&lt;/P&gt;
&lt;H4&gt;The details&lt;/H4&gt;
&lt;P&gt;We want to display the description of the selected item in a separate TextBox.&lt;/P&gt;
&lt;P&gt;Create a &lt;STRONG&gt;TextBlock&lt;/STRONG&gt; control from the &lt;STRONG&gt;Library&lt;/STRONG&gt; Palette&lt;/P&gt;
&lt;P&gt;In the "&lt;STRONG&gt;Properties&lt;/STRONG&gt;" palette, click on the "&lt;STRONG&gt;Data Context&lt;/STRONG&gt;" property and select "&lt;STRONG&gt;Databind&lt;/STRONG&gt;". Click on the "&lt;STRONG&gt;Element Property&lt;/STRONG&gt;" button, select the "&lt;STRONG&gt;ListBox&lt;/STRONG&gt;" as the scene element (left side) and "&lt;STRONG&gt;Selected Item&lt;/STRONG&gt;" as the property (right side). Press "&lt;STRONG&gt;Finish&lt;/STRONG&gt;". This way we set the Data Context to the Selected Item of the Listbox.&lt;/P&gt;
&lt;P&gt;In the "&lt;STRONG&gt;Properties&lt;/STRONG&gt;" palette, click on the "&lt;STRONG&gt;Text&lt;/STRONG&gt;" property and select "&lt;STRONG&gt;Databind&lt;/STRONG&gt;". Click on the "&lt;STRONG&gt;Explicit Data Context&lt;/STRONG&gt;" button and expand the tree and select "&lt;STRONG&gt;Description&lt;/STRONG&gt;". Press &lt;STRONG&gt;Finish&lt;/STRONG&gt;. This way we specify what exactly we want to display as the Text.&lt;/P&gt;
&lt;H4&gt;Run the project&lt;/H4&gt;
&lt;P&gt;The only thing left: run the project (In the main menu, Project click on "Run Project"). The application will be compiled and executed. The Description textbox shows the Description of the selected item.&lt;/P&gt;
&lt;H4&gt;Why is the textbox empty in Expression Interactive Designer ?&lt;/H4&gt;
&lt;P&gt;That's because, by default, there is no item selected in the list. To do that, select the listbox and set the &lt;STRONG&gt;SelectedIndex&lt;/STRONG&gt; property to 0 (by default it is -1).&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=532449" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-00-53-24-49/products.xml" length="1032" type="text/xml" /><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression+Blend/">Expression Blend</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Tutorials/">Tutorials</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Expression/">Expression</category><category domain="http://blogs.msdn.com/b/adrianvinca/archive/tags/Designer+Tools/">Designer Tools</category></item></channel></rss>
