<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Rénald's Blog - Visual Studio 2010</title>
    <link>http://www.renaldnollet.com/blog/</link>
    <description />
    <language>en-us</language>
    <copyright>Rénald Nollet</copyright>
    <lastBuildDate>Tue, 06 Jul 2010 10:24:16 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>rno.rno.rno@gmail.com</managingEditor>
    <webMaster>rno.rno.rno@gmail.com</webMaster>
    <item>
      <trackback:ping>http://www.renaldnollet.com/blog/Trackback.aspx?guid=e46acf19-d671-49e7-87d9-ac4ab5a2a139</trackback:ping>
      <pingback:server>http://www.renaldnollet.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.renaldnollet.com/blog/PermaLink,guid,e46acf19-d671-49e7-87d9-ac4ab5a2a139.aspx</pingback:target>
      <dc:creator>Rénald Nollet</dc:creator>
      <wfw:comment>http://www.renaldnollet.com/blog/CommentView,guid,e46acf19-d671-49e7-87d9-ac4ab5a2a139.aspx</wfw:comment>
      <wfw:commentRss>http://www.renaldnollet.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=e46acf19-d671-49e7-87d9-ac4ab5a2a139</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
If you've Firefox 3.6.4 or above installed on your computer and if you use it as your
default browser, you'll probably meet some problems while trying to debug a Silverlight
application in Visual Studio. 
</p>
        <p>
The Mozilla team has changed security settings for plugins. 
</p>
        <p>
I found the solution in the <a href="http://forums.silverlight.net/forums/t/188434.aspx">Silverlight
forum</a> (Thanks to MisterGoodcat!). 
</p>
        <p>
Here is what you to do : 
</p>
        <ul style="margin-left: 43pt;">
          <li>
Type "about:config" into Firefox address bar 
</li>
          <li>
Accept the warning (if applicable) 
</li>
          <li>
Search for the entry "dom.ipc.plugins.enabled.npctrl.dll" 
</li>
          <li>
Change its value from "true" to "false" (by double-clicking it) 
</li>
          <li>
Restart the browser</li>
        </ul>
        <img width="0" height="0" src="http://www.renaldnollet.com/blog/aggbug.ashx?id=e46acf19-d671-49e7-87d9-ac4ab5a2a139" />
      </body>
      <title>Silverlight debugging with Firefox 3.6.4 or above</title>
      <guid isPermaLink="false">http://www.renaldnollet.com/blog/PermaLink,guid,e46acf19-d671-49e7-87d9-ac4ab5a2a139.aspx</guid>
      <link>http://www.renaldnollet.com/blog/2010/07/06/SilverlightDebuggingWithFirefox364OrAbove.aspx</link>
      <pubDate>Tue, 06 Jul 2010 10:24:16 GMT</pubDate>
      <description>&lt;p&gt;
If you've Firefox 3.6.4 or above installed on your computer and if you use it as your
default browser, you'll probably meet some problems while trying to debug a Silverlight
application in Visual Studio. 
&lt;/p&gt;
&lt;p&gt;
The Mozilla team has changed security settings for plugins. 
&lt;/p&gt;
&lt;p&gt;
I found the solution in the &lt;a href="http://forums.silverlight.net/forums/t/188434.aspx"&gt;Silverlight
forum&lt;/a&gt; (Thanks to MisterGoodcat!). 
&lt;/p&gt;
&lt;p&gt;
Here is what you to do : 
&lt;/p&gt;
&lt;ul style="margin-left: 43pt;"&gt;
&lt;li&gt;
Type "about:config" into Firefox address bar 
&lt;/li&gt;
&lt;li&gt;
Accept the warning (if applicable) 
&lt;/li&gt;
&lt;li&gt;
Search for the entry "dom.ipc.plugins.enabled.npctrl.dll" 
&lt;/li&gt;
&lt;li&gt;
Change its value from "true" to "false" (by double-clicking it) 
&lt;/li&gt;
&lt;li&gt;
Restart the browser&lt;/li&gt;
&lt;/ul&gt;
&lt;img width="0" height="0" src="http://www.renaldnollet.com/blog/aggbug.ashx?id=e46acf19-d671-49e7-87d9-ac4ab5a2a139" /&gt;</description>
      <comments>http://www.renaldnollet.com/blog/CommentView,guid,e46acf19-d671-49e7-87d9-ac4ab5a2a139.aspx</comments>
      <category>Debugging</category>
      <category>Silverlight 4.0</category>
      <category>Visual Studio 2010</category>
    </item>
    <item>
      <trackback:ping>http://www.renaldnollet.com/blog/Trackback.aspx?guid=35676706-0507-4bdb-8001-47be8ee36471</trackback:ping>
      <pingback:server>http://www.renaldnollet.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.renaldnollet.com/blog/PermaLink,guid,35676706-0507-4bdb-8001-47be8ee36471.aspx</pingback:target>
      <dc:creator>Rénald Nollet</dc:creator>
      <wfw:comment>http://www.renaldnollet.com/blog/CommentView,guid,35676706-0507-4bdb-8001-47be8ee36471.aspx</wfw:comment>
      <wfw:commentRss>http://www.renaldnollet.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=35676706-0507-4bdb-8001-47be8ee36471</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
The new Enterprise Library 5.0 was launched a few days before and I decided to use
this new version in my projects. One of the main application block I'm using is the
Logging Application Block. 
</p>
        <p>
I went to use it in a WCF Service Library into Visual Studio 2010. Everything was
fine until I decided to use a Database Trace Listener. Of course, I referenced the <em>Microsoft.Practices.EnterpriseLibrary.Logging.Database</em> in
my project. But it always failed to run with this message: 
</p>
        <p>
          <em>"Invalid TraceListenerData type in configuration 'listenerDataType=\"Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData,
Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.414.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35\"'." </em>
        </p>
        <p>
Finally, I found that you need to work with the .NET 4.0 Full Framework and not only
the Client Profile. Some assemblies are needed by the Database Trace Listener that
are not present in the Client Profile (to learn more about the differences between
the Full Framework and the Client profile, go <a href="http://blogs.msdn.com/pmarcu/archive/2010/04/15/the-net-framework-4-installer-improvements.aspx">here</a>). 
</p>
        <p>
So, just target your project to the .NET Framework 4 and everything will be fine. 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/050210_1956_EnterpriseL1.png" alt="" />
        </p>
        <img width="0" height="0" src="http://www.renaldnollet.com/blog/aggbug.ashx?id=35676706-0507-4bdb-8001-47be8ee36471" />
      </body>
      <title>Enterprise Library 5.0 Logging Application Block Database Trace Listener and .NET 4 Client Profile</title>
      <guid isPermaLink="false">http://www.renaldnollet.com/blog/PermaLink,guid,35676706-0507-4bdb-8001-47be8ee36471.aspx</guid>
      <link>http://www.renaldnollet.com/blog/2010/05/02/EnterpriseLibrary50LoggingApplicationBlockDatabaseTraceListenerAndNET4ClientProfile.aspx</link>
      <pubDate>Sun, 02 May 2010 19:58:27 GMT</pubDate>
      <description>&lt;p&gt;
The new Enterprise Library 5.0 was launched a few days before and I decided to use
this new version in my projects. One of the main application block I'm using is the
Logging Application Block. 
&lt;/p&gt;
&lt;p&gt;
I went to use it in a WCF Service Library into Visual Studio 2010. Everything was
fine until I decided to use a Database Trace Listener. Of course, I referenced the &lt;em&gt;Microsoft.Practices.EnterpriseLibrary.Logging.Database&lt;/em&gt; in
my project. But it always failed to run with this message: 
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;"Invalid TraceListenerData type in configuration 'listenerDataType=\"Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData,
Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.414.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35\"'." &lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
Finally, I found that you need to work with the .NET 4.0 Full Framework and not only
the Client Profile. Some assemblies are needed by the Database Trace Listener that
are not present in the Client Profile (to learn more about the differences between
the Full Framework and the Client profile, go &lt;a href="http://blogs.msdn.com/pmarcu/archive/2010/04/15/the-net-framework-4-installer-improvements.aspx"&gt;here&lt;/a&gt;). 
&lt;/p&gt;
&lt;p&gt;
So, just target your project to the .NET Framework 4 and everything will be fine. 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/050210_1956_EnterpriseL1.png" alt=""&gt; 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.renaldnollet.com/blog/aggbug.ashx?id=35676706-0507-4bdb-8001-47be8ee36471" /&gt;</description>
      <comments>http://www.renaldnollet.com/blog/CommentView,guid,35676706-0507-4bdb-8001-47be8ee36471.aspx</comments>
      <category>EnterpriseLibrary</category>
      <category>Visual Studio 2010</category>
    </item>
    <item>
      <trackback:ping>http://www.renaldnollet.com/blog/Trackback.aspx?guid=916bfaf8-af3a-4a3d-a579-0f34cfd273b4</trackback:ping>
      <pingback:server>http://www.renaldnollet.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.renaldnollet.com/blog/PermaLink,guid,916bfaf8-af3a-4a3d-a579-0f34cfd273b4.aspx</pingback:target>
      <dc:creator>Rénald Nollet</dc:creator>
      <wfw:comment>http://www.renaldnollet.com/blog/CommentView,guid,916bfaf8-af3a-4a3d-a579-0f34cfd273b4.aspx</wfw:comment>
      <wfw:commentRss>http://www.renaldnollet.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=916bfaf8-af3a-4a3d-a579-0f34cfd273b4</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Imagine this simple custom list created in Sharepoint 2010 : 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI1.png" alt="" />
        </p>
        <p>
If you want to add an item to this list, here is the dialog that will be shown: 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI2.png" alt="" />
        </p>
        <p>
To easily customize this form: 
</p>
        <p>
Go in the List Tools &gt; List in the Ribbon: 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI3.png" alt="" />
        </p>
        <p>
You can then choose the « Customize Form » icon : 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI4.png" alt="" />
        </p>
        <p>
Or, if you go in the Library Settings, you can use the "Form Settings" link. 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI5.png" alt="" />
        </p>
        <p>
Infopath will open with the form you asked to customize. 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI6.png" alt="" />
        </p>
        <p>
Here is my customisation (I will probably isn't it ?) 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI7.png" alt="" />
        </p>
        <p>
Now, when you create or edit an item in the list, here is the form that will be shown : 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI8.png" alt="" />
        </p>
        <p>
And if you browse your list in Sharepoint Designer 2010, you will find the template.xsn
in the Item folder of your list. 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI9.png" alt="" />
        </p>
        <img width="0" height="0" src="http://www.renaldnollet.com/blog/aggbug.ashx?id=916bfaf8-af3a-4a3d-a579-0f34cfd273b4" />
      </body>
      <title>Sharepoint &amp; Infopath 2010 : custom forms for adding/editing items in lists/libraries.</title>
      <guid isPermaLink="false">http://www.renaldnollet.com/blog/PermaLink,guid,916bfaf8-af3a-4a3d-a579-0f34cfd273b4.aspx</guid>
      <link>http://www.renaldnollet.com/blog/2010/04/28/SharepointInfopath2010CustomFormsForAddingeditingItemsInListslibraries.aspx</link>
      <pubDate>Wed, 28 Apr 2010 20:00:04 GMT</pubDate>
      <description>&lt;p&gt;
Imagine this simple custom list created in Sharepoint 2010 : 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI1.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
If you want to add an item to this list, here is the dialog that will be shown: 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI2.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
To easily customize this form: 
&lt;/p&gt;
&lt;p&gt;
Go in the List Tools &amp;gt; List in the Ribbon: 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI3.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
You can then choose the «&amp;nbsp;Customize Form&amp;nbsp;» icon&amp;nbsp;: 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI4.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
Or, if you go in the Library Settings, you can use the "Form Settings" link. 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI5.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
Infopath will open with the form you asked to customize. 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI6.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
Here is my customisation (I will probably isn't it&amp;nbsp;?) 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI7.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
Now, when you create or edit an item in the list, here is the form that will be shown&amp;nbsp;: 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI8.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
And if you browse your list in Sharepoint Designer 2010, you will find the template.xsn
in the Item folder of your list. 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/042810_1952_SharepointI9.png" alt=""&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.renaldnollet.com/blog/aggbug.ashx?id=916bfaf8-af3a-4a3d-a579-0f34cfd273b4" /&gt;</description>
      <comments>http://www.renaldnollet.com/blog/CommentView,guid,916bfaf8-af3a-4a3d-a579-0f34cfd273b4.aspx</comments>
      <category>Visual Studio 2010</category>
    </item>
    <item>
      <trackback:ping>http://www.renaldnollet.com/blog/Trackback.aspx?guid=9916b889-beb6-40ee-bd6c-77d2978e6184</trackback:ping>
      <pingback:server>http://www.renaldnollet.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.renaldnollet.com/blog/PermaLink,guid,9916b889-beb6-40ee-bd6c-77d2978e6184.aspx</pingback:target>
      <dc:creator>Rénald Nollet</dc:creator>
      <wfw:comment>http://www.renaldnollet.com/blog/CommentView,guid,9916b889-beb6-40ee-bd6c-77d2978e6184.aspx</wfw:comment>
      <wfw:commentRss>http://www.renaldnollet.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=9916b889-beb6-40ee-bd6c-77d2978e6184</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Element to element binding was new with Silverlight 3.0. 
</p>
        <p>
To know more about it, I invite you to read <a href="http://www.wintellect.com/CS/blogs/jprosise/archive/2009/03/27/silverlight-3-s-new-element-data-binding.aspx">this
post</a> from Jeff Prosise. 
</p>
        <p>
Some improvements are made in Blend 4 Beta and Visual Studio 2010 RC to improve your
everyday work on this point. 
</p>
        <p>
          <span style="font-size: 14pt;">
            <strong>The old way (Blend 3.0/Visual Studio 2008) </strong>
          </span>
        </p>
        <p>
Suppose that you want to bind the value of a Slider to a TextBlock text : 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp1.png" alt="" />
        </p>
        <p>
In Blend 3.0, you must select the TextBlock, go into the common properties, select
the Text property and the Data Binding in the contextual menu : 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp2.png" alt="" />
        </p>
        <p>
Once this is made, you must select the Element Property, browse the three to find
the element and the property to bind to. 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp3.png" alt="" />
        </p>
        <p>
In Visual Studio 2008, there was nothing to help you to generate this simple XAML
piece: 
</p>
        <p>
          <span style="font-family: Courier New; font-size: 10pt;">
            <span style="color: blue;">&lt;</span>
            <span style="color: rgb(163, 21, 21);">TextBlock</span>
            <span style="color: red;"> Height</span>
            <span style="color: blue;">="32"</span>
            <span style="color: red;"> Margin</span>
            <span style="color: blue;">="8,0,12,8"</span>
            <span style="color: red;"> VerticalAlignment</span>
            <span style="color: blue;">="Bottom"</span>
            <span style="color: red;"> Text</span>
            <span style="color: blue;">="{</span>
            <span style="color: rgb(163, 21, 21);">Binding</span>
            <span style="color: red;"> Value</span>
            <span style="color: blue;">,</span>
            <span style="color: red;"> ElementName</span>
            <span style="color: blue;">=slider,</span>
            <span style="color: red;"> Mode</span>
            <span style="color: blue;">=OneWay}"</span>
            <span style="color: red;">TextWrapping</span>
            <span style="color: blue;">="Wrap"/&gt;</span>
          </span>
        </p>
        <p>
          <span style="font-size: 14pt;">
            <strong>The new way (Blend 4.0 beta/VS 2010 RC) </strong>
          </span>
        </p>
        <p>
In Blend 4.0, you still have the same option. But you also have a more friendly option
with the new "Element Property Binding" option. 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp4.png" alt="" />
        </p>
        <p>
Choosing that item, you only have to select the element you want to bind to with your
mouse : 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp5.png" alt="" />
        </p>
        <p>
A new dialog then opens to ask you which property you want to bind to : 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp6.png" alt="" />
        </p>
        <p>
In Visual Studio 2010 RC, you also now have now the option to work with the properties
window to do the same thing. 
</p>
        <p>
Go to the Text property in the Properties window. Click on the small Value Source
icon : 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp7.png" alt="" />
        </p>
        <p>
Select "Apply Data Binding" 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp8.png" alt="" />
          <strong>
          </strong>
        </p>
        <p>
In the dialog that appears, select an ElementName source, choose the slider : 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp9.png" alt="" />
          <strong>
          </strong>
        </p>
        <p>
Then in the Path, choose the property you want to bind to : 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp10.png" alt="" />
          <strong>
          </strong>
        </p>
        <img width="0" height="0" src="http://www.renaldnollet.com/blog/aggbug.ashx?id=9916b889-beb6-40ee-bd6c-77d2978e6184" />
      </body>
      <title>Element Property Binding Improvements in Blend 4 Beta and Visual Studio 2010 RC</title>
      <guid isPermaLink="false">http://www.renaldnollet.com/blog/PermaLink,guid,9916b889-beb6-40ee-bd6c-77d2978e6184.aspx</guid>
      <link>http://www.renaldnollet.com/blog/2010/04/06/ElementPropertyBindingImprovementsInBlend4BetaAndVisualStudio2010RC.aspx</link>
      <pubDate>Tue, 06 Apr 2010 20:57:17 GMT</pubDate>
      <description>&lt;p&gt;
Element to element binding was new with Silverlight 3.0. 
&lt;/p&gt;
&lt;p&gt;
To know more about it, I invite you to read &lt;a href="http://www.wintellect.com/CS/blogs/jprosise/archive/2009/03/27/silverlight-3-s-new-element-data-binding.aspx"&gt;this
post&lt;/a&gt; from Jeff Prosise. 
&lt;/p&gt;
&lt;p&gt;
Some improvements are made in Blend 4 Beta and Visual Studio 2010 RC to improve your
everyday work on this point. 
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 14pt;"&gt;&lt;strong&gt;The old way (Blend 3.0/Visual Studio 2008) &lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
Suppose that you want to bind the value of a Slider to a TextBlock text : 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp1.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
In Blend 3.0, you must select the TextBlock, go into the common properties, select
the Text property and the Data Binding in the contextual menu : 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp2.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
Once this is made, you must select the Element Property, browse the three to find
the element and the property to bind to. 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp3.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
In Visual Studio 2008, there was nothing to help you to generate this simple XAML
piece: 
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-family: Courier New; font-size: 10pt;"&gt;&lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;TextBlock&lt;/span&gt;&lt;span style="color: red;"&gt; Height&lt;/span&gt;&lt;span style="color: blue;"&gt;="32"&lt;/span&gt;&lt;span style="color: red;"&gt; Margin&lt;/span&gt;&lt;span style="color: blue;"&gt;="8,0,12,8"&lt;/span&gt;&lt;span style="color: red;"&gt; VerticalAlignment&lt;/span&gt;&lt;span style="color: blue;"&gt;="Bottom"&lt;/span&gt;&lt;span style="color: red;"&gt; Text&lt;/span&gt;&lt;span style="color: blue;"&gt;="{&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;Binding&lt;/span&gt;&lt;span style="color: red;"&gt; Value&lt;/span&gt;&lt;span style="color: blue;"&gt;,&lt;/span&gt;&lt;span style="color: red;"&gt; ElementName&lt;/span&gt;&lt;span style="color: blue;"&gt;=slider,&lt;/span&gt;&lt;span style="color: red;"&gt; Mode&lt;/span&gt;&lt;span style="color: blue;"&gt;=OneWay}"&lt;/span&gt; &lt;span style="color: red;"&gt;TextWrapping&lt;/span&gt;&lt;span style="color: blue;"&gt;="Wrap"/&amp;gt;&lt;/span&gt; &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="font-size: 14pt;"&gt;&lt;strong&gt;The new way (Blend 4.0 beta/VS 2010 RC) &lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
In Blend 4.0, you still have the same option. But you also have a more friendly option
with the new "Element Property Binding" option. 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp4.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
Choosing that item, you only have to select the element you want to bind to with your
mouse : 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp5.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
A new dialog then opens to ask you which property you want to bind to : 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp6.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
In Visual Studio 2010 RC, you also now have now the option to work with the properties
window to do the same thing. 
&lt;/p&gt;
&lt;p&gt;
Go to the Text property in the Properties window. Click on the small Value Source
icon : 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp7.png" alt=""&gt; 
&lt;/p&gt;
&lt;p&gt;
Select "Apply Data Binding" 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp8.png" alt=""&gt;&lt;strong&gt; &lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
In the dialog that appears, select an ElementName source, choose the slider : 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp9.png" alt=""&gt;&lt;strong&gt; &lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
Then in the Path, choose the property you want to bind to : 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/041110_2057_ElementProp10.png" alt=""&gt;&lt;strong&gt; &lt;/strong&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.renaldnollet.com/blog/aggbug.ashx?id=9916b889-beb6-40ee-bd6c-77d2978e6184" /&gt;</description>
      <comments>http://www.renaldnollet.com/blog/CommentView,guid,9916b889-beb6-40ee-bd6c-77d2978e6184.aspx</comments>
      <category>Blend 4.0</category>
      <category>Visual Studio 2010</category>
    </item>
  </channel>
</rss>