<?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>Visual Studio Data</title><link>http://blogs.msdn.com/vsdata/default.aspx</link><description>Building data-centric business applications with Visual Studio &lt;/br&gt;
&lt;font size="2"&gt;
&lt;a href="http://msdn.com/vstudio"&gt;Visual Studio Developer Center&lt;/a&gt; | &lt;a href="http://msdn.com/data"&gt;Data Developer Center&lt;/a&gt; | &lt;a href="http://msdn2.microsoft.com/en-us/vbasic/bb466226.aspx"&gt;How-Do-I Videos&lt;/a&gt; | &lt;a href="http://code.msdn.microsoft.com/"&gt;Code Gallery&lt;/a&gt; | &lt;a href="http://channel9.msdn.com/tags/Visual++Studio/"&gt;VS on Channel 9&lt;/a&gt;&lt;/font&gt; </description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Customize format of DateTime string in WPF and WinForm data binding</title><link>http://blogs.msdn.com/vsdata/archive/2009/07/07/customize-format-of-datetime-string-in-wpf-and-winform-data-binding.aspx</link><pubDate>Tue, 07 Jul 2009 03:17:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9821316</guid><dc:creator>Yang Cao</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9821316.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9821316</wfw:commentRss><description>&lt;p&gt;Drag-and-drop data binding helps you build business applications very easily, however sometimes you still need to customize the layout or format after data binding is set. For example, I built a simple application to display all the Customers, and for each Customer, the related Orders are loaded into a DataGrid control:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_7.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_thumb_2.png" width="366" height="319" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Of course the data in Birthday field is fake :) and of course I don’t want to show the time part &lt;i&gt;12:00:00 AM&lt;/i&gt; in the text. To customize the string format, first let’s go to the XAML file and locate the TextBlock which binds to Birthday:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: #a31515; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;TextBlock&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Grid.Column&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Grid.Row&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=&amp;quot;3&amp;quot;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Height&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=&amp;quot;21&amp;quot;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; HorizontalAlignment&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=&amp;quot;Left&amp;quot;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Margin&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=&amp;quot;3&amp;quot;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Name&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=&amp;quot;birthdayTextBlock&amp;quot;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Text&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: #a31515; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;Binding&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Path&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=Birthday}&amp;quot;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; VerticalAlignment&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=&amp;quot;Center&amp;quot;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Width&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=&amp;quot;120&amp;quot; /&amp;gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt"&gt;        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;You could write a converter to convert the string. Another simpler way is to insert a StringFormat property to the Text Binding and set it to only display the Date &lt;i&gt;1/1/2222&lt;/i&gt;:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;Text&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: #a31515; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;Binding&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt; Path&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;=Birthday,&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt; StringFormat&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;=d}&amp;quot;&lt;/span&gt; &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Similarly, if you set StringFormat to the “Order Date” and “Preferred Delivery Time” column:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri" lang="ZH-CN"&gt;…&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;        &lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: #a31515; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;TextBlock&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Text&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: #a31515; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;Binding&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Path&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=OrderDate,&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; StringFormat&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;={}{&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;0&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: #a31515"&gt;dddd&lt;/span&gt;&lt;span style="color: red"&gt; MMMM dd&lt;/span&gt;&lt;span style="color: blue"&gt;}}&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-ascii-font-family: nsimsun"&gt;&amp;#160;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 12pt; mso-fareast-font-family: nsimsun"&gt;…&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt"&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: #a31515; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;TextBlock&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Text&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=&amp;quot;{&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: #a31515; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;Binding&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; Path&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=DeliveryDate,&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt; StringFormat&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri"&gt;=t}&amp;quot; /&amp;gt;&lt;/span&gt;&lt;span style="font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-ascii-font-family: nsimsun"&gt;&amp;#160;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt"&gt;        &lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri" lang="ZH-CN"&gt;…&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;StringFormat&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;={}{&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;0&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: #a31515"&gt;dddd&lt;/span&gt;&lt;span style="color: red"&gt; MMMM dd&lt;/span&gt;&lt;span style="color: blue"&gt;} &lt;/span&gt;&lt;/span&gt;it will display the DateTime in your specified format; &lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: red; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;StringFormat&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;NSimSun&amp;quot;,&amp;quot;serif&amp;quot;; color: blue; font-size: 9pt; mso-bidi-font-family: nsimsun; mso-fareast-font-family: nsimsun; mso-hansi-font-family: calibri; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;=t&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt; mso-fareast-font-family: simsun; mso-ansi-language: en-us; mso-fareast-language: zh-cn; mso-bidi-language: ar-sa"&gt;&amp;#160;&lt;/span&gt;will only display short time. Now the form looks like this:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_5.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_thumb.png" width="366" height="310" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Now you might ask, how about &lt;b&gt;WinForms&lt;/b&gt;? It is just as easy.     &lt;br /&gt;On the left is the WinForm Designer surface. Set focus on the DateTimePicker control and find Format property in Properties window. Change the Format to Short so that Birthday TextBlock will only display the Date:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_9.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_thumb_3.png" width="576" height="406" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;To set OrderDate column and PreferredDeliveryDate column to display in the format as in the WPF example above, click on the DataGridView control and click on the little smarttag button to open &lt;i&gt;DataGridView Tasks&lt;/i&gt;:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_11.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_thumb_4.png" width="535" height="374" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Select Edit Columns to invoke &lt;i&gt;Edit Columns&lt;/i&gt; dialog, and in Bound Column Properties, select DefaultCellStyle to launch CellStyle Builder:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_13.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_thumb_5.png" width="382" height="240" /&gt;&lt;/a&gt; &lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_15.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_thumb_6.png" width="383" height="392" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;There are some other customizations in this dialog, now let’s just focus on the Format. You could input Format like “dddd MM dd”, or launch Format String Dialog to set the string format. After setting format for both OrderDate column and PreferredDeliveryTime column, the final windows form is:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_19.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/CustomizeformatofDateTimefieldindatabind_CD85/image_thumb_8.png" width="366" height="345" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Well, isn’t it simple to change string format in data binding for both WPF and WinForm? To learn more about formatting (not only formatting DateTime string), please see: &lt;a href="http://msdn.microsoft.com/en-us/library/fbxft59x.aspx"&gt;http://msdn.microsoft.com/en-us/library/fbxft59x.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9821316" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Data+Binding/default.aspx">Data Binding</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/WinForm/default.aspx">WinForm</category></item><item><title>Tips: Using “Navigate To…” for search in Visual Studio</title><link>http://blogs.msdn.com/vsdata/archive/2009/07/02/tips-using-navigate-to-for-search-in-visual-studio.aspx</link><pubDate>Thu, 02 Jul 2009 07:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9813327</guid><dc:creator>Yaohai</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9813327.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9813327</wfw:commentRss><description>&lt;P&gt;Visual Studio 2010 Beta1 provides a great feature called “Navigate To”. You can find this feature under the “Edit” menu or use the keyboard shortcut “Ctrl + COMMA” to bring up the “Navigate To” dialog. This feature provides search-as-you-type support for files, types, and members to match the input string. Following is a snapshot of the “Navigate To” dialog: &lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TipsUsingNavigateToforsearchinVisualStud_DEF2/image_8.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TipsUsingNavigateToforsearchinVisualStud_DEF2/image_8.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TipsUsingNavigateToforsearchinVisualStud_DEF2/image_thumb_3.png" width=426 height=422 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/TipsUsingNavigateToforsearchinVisualStud_DEF2/image_thumb_3.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Here are some summaries for this feature: &lt;/P&gt;
&lt;P&gt;1. If the search string contains uppercase characters, the search is case-sensitive; otherwise not. &lt;BR&gt;2. The white space between characters will be treated as an '&lt;STRONG&gt;and&lt;/STRONG&gt;' relationship. &lt;BR&gt;3. The search does not support wildcard.&lt;/P&gt;
&lt;P&gt;This feature becomes extremely handy when your solution/project is complex. The search result comes very quickly even for large solutions.&lt;/P&gt;
&lt;P&gt;You can find more information about this feature at the following link: &lt;A href="http://msdn.microsoft.com/en-us/library/4sadchd3(VS.100).aspx" mce_href="http://msdn.microsoft.com/en-us/library/4sadchd3(VS.100).aspx"&gt;How to: Search for Objects, Definitions, and References (Symbols)&lt;/A&gt;. &lt;/P&gt;
&lt;P&gt;Also, a walkthrough is provided: &lt;A href="http://blogs.msdn.com/vbteam/archive/2008/12/19/walkthrough-quick-search-for-files-and-symbols-in-visual-studio-2010-lisa-feigenbaum.aspx" mce_href="http://blogs.msdn.com/vbteam/archive/2008/12/19/walkthrough-quick-search-for-files-and-symbols-in-visual-studio-2010-lisa-feigenbaum.aspx"&gt;Walkthrough: Quick Search for Files and Symbols in Visual Studio 2010&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9813327" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Tips/default.aspx">Tips</category></item><item><title>Hello, TechEd 2009!</title><link>http://blogs.msdn.com/vsdata/archive/2009/06/30/hello-teched-2009.aspx</link><pubDate>Tue, 30 Jun 2009 02:06:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9809096</guid><dc:creator>RongLu</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9809096.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9809096</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HelloTechEd2009_8A52/clip_image002_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HelloTechEd2009_8A52/clip_image002_thumb.jpg" width="246" height="127" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;May 11 – 15, 2009. Los Angeles.&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;It is always exciting to attend conferences like TechEd and talk to the users like you! I attended &lt;a href="https://www.msteched.com/teched/default.aspx"&gt;Teched 2009 North America&lt;/a&gt;, which took place in Los Angeles last month, as a Visual Studio staff, and spent 20+ hours standing at Visual Studio booth. I really enjoyed experiencing TechEd once again and enjoyed the moments when you told us the products are helping to do your daily work more efficiently. Hearing your feedback is also very important to us, and it is exactly the reason why we are there at the conference! For those who were also at TechEd this year, I hope you enjoyed the sunshine in LA and liked hundreds of sessions there!&lt;/p&gt;  &lt;p&gt;This year, Windows 7 and Windows Server 2008 R2 drew a lot of attentions. Mark Russinovich, who is a Technical Fellow at Microsoft, demoed quite some new Windows 7 features at keynote on the first day. &lt;/p&gt;  &lt;p&gt;- One of my favorite features in Windows 7 is the &lt;a href="http://technet.microsoft.com/en-us/windows/dd320286.aspx"&gt;Problem Steps Recorder&lt;/a&gt; which helps customers (or friends, or family) to easily record what they did and what happened on their machine instead describing the repro steps, therefore it’ll largely help the ITPros to understand and troubleshoot the problems. &lt;/p&gt;  &lt;p&gt;- Another highlight in Windows 7 is &lt;a href="http://technet.microsoft.com/en-us/windows/dd320283.aspx"&gt;AppLocker&lt;/a&gt; feature, which helps IT Admins to easily specify what is allowed to run on user desktops and creates a secure environment.&lt;/p&gt;  &lt;p&gt;Windows 7 demo is followed by Windows Server 2008 R2 demos by Iain McDonald, including &lt;a href="https://msevents.microsoft.com/CUI/WebCastRegistrationConfirmation.aspx?culture=en-US&amp;amp;RegistrationID=1302218564&amp;amp;Validate=false"&gt;the File Classification Infrastructure&lt;/a&gt; which helps ITPros to establish policies for classifying files and then performing common administrative tasks based on the classification.&lt;/p&gt;  &lt;p&gt;Another hot topic at TechEd was Silverlight 3. (download &lt;a href="http://silverlight.net/getstarted/silverlight3/default.aspx"&gt;Silverlight 3 Beta 1&lt;/a&gt;) If you are still wondering if you should choose Silverlight to build line of business applications, you should definitely try out Silverlight 3! Silverlight 3 has made Silverlight ready for building data-driven applications than ever before! A few Silverlight 3 controls that you might be interested in your business applications:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;ChildWindow &lt;/li&gt;    &lt;li&gt;DataForm&amp;#160; &lt;/li&gt;    &lt;li&gt;DataGrid &lt;/li&gt;    &lt;li&gt;DataPager &lt;/li&gt;    &lt;li&gt;Navigation (Frame, Page, Deeplinking..etc.) &lt;/li&gt;    &lt;li&gt;Validation UI (ErrorSummary)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a name="_Sessions"&gt;&lt;/a&gt;These controls are available for download at &lt;a href="http://silverlight.net/samples/sl3/toolkitcontrolsamples/run/default.html"&gt;Silverlight Toolkit Sample&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Besides Silverlight 3 new controls, .NET RIA Services (download &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=76bb3a07-3846-4564-b0c3-27972bcaabce"&gt;&amp;quot;.NET Ria Services&amp;quot; March 2009 preview&lt;/a&gt;) is the other essential piece that makes build Silverlight business applications much easier. In short -&lt;/p&gt;  &lt;p&gt;&lt;i&gt;Microsoft .NET RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. The RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data&lt;b&gt; &lt;/b&gt;validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.&lt;/i&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=76bb3a07-3846-4564-b0c3-27972bcaabce"&gt;&amp;quot;.NET Ria Services&amp;quot; March 2009 preview&lt;/a&gt; provides a great overview document that introduces .NET RIA Services in details, and it also described an end to end walkthrough for you to get started. Start building your Silverlight business applications today!&lt;/p&gt;  &lt;p&gt;It is great to see .NET RIA Services generated huge interests at TechEd, as our team is also working on some of the features in there. :) Please let us know if you have any comments and suggestions once you have tried it out. You are more than welcome to leave comments here or post at &lt;a href="http://silverlight.net/forums/53.aspx"&gt;.NET RIA Services forum&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Next year, TechEd will be back in New Orleans, June 7-11, 2010.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HelloTechEd2009_8A52/clip_image003_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image003" border="0" alt="clip_image003" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HelloTechEd2009_8A52/clip_image003_thumb.jpg" width="294" height="204" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;See you there!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9809096" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/Conference/default.aspx">Conference</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/.NET+RIA+Services/default.aspx">.NET RIA Services</category></item><item><title>Build Your Own Navigation Bar for Data Navigation in WPF</title><link>http://blogs.msdn.com/vsdata/archive/2009/06/22/build-your-own-navigation-bar-for-data-navigation-in-wpf.aspx</link><pubDate>Mon, 22 Jun 2009 06:12:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9797163</guid><dc:creator>XiaoyingGuo</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9797163.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9797163</wfw:commentRss><description>&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;You may have known that drag-drop data-binding experience has been introduced to WPF application development story from VS2010 Beta1, thanks to a lot of posts before this one. The whole experience in WPF is pretty similar to what we’ve already had with WinForms: developers configure the bindings in Data Source Window and associate controls with data entities or properties, and drag-and-drop from Data Source Window to the designer generates controls with data binding set in the code. All looks familiar. But wait a second, you may find there is still something missing if you tend to generate a DataGrid or DetailsView for a data entity. You are right. In WPF, there’s no navigation bar facility, so drag-and-drop will only leave the exact control you are binding with the entity. However, using WPF, you will find it’s easy to do data navigation, thanks to the &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.data.collectionviewsource.aspx"&gt;&lt;font size="2"&gt;CollectionViewSource&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt;. So why not build your own one and make it as whatever you like?&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;In this article, we will build a simple navigation bar leveraging &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.data.collectionviewsource.aspx"&gt;&lt;font size="2"&gt;CollectionViewSource&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt;. Below is what it looks like:&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/BuildYourOwnNavigationBarforDataNavigati_9AFE/clip_image002_8.jpg"&gt;&lt;font size="2"&gt;&lt;img title="clip_image002" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="244" alt="clip_image002" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/BuildYourOwnNavigationBarforDataNavigati_9AFE/clip_image002_thumb_2.jpg" width="233" border="0" v:shapes="Picture_x0020_1" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;To start, we use drag-drop WPF data-binding feature in VS2010 Beta 1 to generate a Details View of Employee entity. We use EDM here as data source. Let’s update the generated code behind a little bit and declare the entity, the &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.data.collectionviewsource.aspx"&gt;&lt;font size="2"&gt;CollectionViewSource&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt;, and the query in a class wide. We also need to declare an int field member to get the total row counts of an entity, which looks like below:&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;partial&lt;/span&gt; &lt;span style="color: blue"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Window1&lt;/span&gt; : &lt;span style="color: #2b91af"&gt;Window&lt;/span&gt;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; WpfDataNavigationApplication.&lt;span style="color: #2b91af"&gt;NorthwindEntities&lt;/span&gt; northwindEntities = &lt;span style="color: blue"&gt;new&lt;/span&gt; WpfDataNavigationApplication.&lt;span style="color: #2b91af"&gt;NorthwindEntities&lt;/span&gt;();        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; System.Windows.Data.&lt;span style="color: #2b91af"&gt;CollectionViewSource&lt;/span&gt; employeesViewSource__NorthwindEntities;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; System.Data.Objects.&lt;span style="color: #2b91af"&gt;ObjectQuery&lt;/span&gt;&amp;lt;WpfDataNavigationApplication.&lt;span style="color: #2b91af"&gt;Employee&lt;/span&gt;&amp;gt; employeesQuery;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;int&lt;/span&gt; totalRowCount;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&lt;/span&gt;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; Window1()        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;InitializeComponent();        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;     &lt;p&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; System.Data.Objects.&lt;span style="color: #2b91af"&gt;ObjectQuery&lt;/span&gt;&amp;lt;&lt;span style="color: #2b91af"&gt;Employee&lt;/span&gt;&amp;gt; GetEmployeesQuery(&lt;span style="color: #2b91af"&gt;NorthwindEntities&lt;/span&gt; northwindEntities)        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: green"&gt;// Auto generated code&lt;/span&gt;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;System.Data.Objects.&lt;span style="color: #2b91af"&gt;ObjectQuery&lt;/span&gt;&amp;lt;WpfDataNavigationApplication.&lt;span style="color: #2b91af"&gt;Employee&lt;/span&gt;&amp;gt; employeesQuery = northwindEntities.Employees;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: green"&gt;// Returns an ObjectQuery. &lt;/span&gt;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;return&lt;/span&gt; employeesQuery;         &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;     &lt;p&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; Window_Loaded(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af"&gt;RoutedEventArgs&lt;/span&gt; e)        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;employeesViewSource__NorthwindEntities = ((System.Windows.Data.&lt;span style="color: #2b91af"&gt;CollectionViewSource&lt;/span&gt;)(&lt;span style="color: blue"&gt;this&lt;/span&gt;.FindResource(&lt;span style="color: #a31515"&gt;&amp;quot;employeesViewSource__NorthwindEntities&amp;quot;&lt;/span&gt;)));        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;employeesQuery = &lt;span style="color: blue"&gt;this&lt;/span&gt;.GetEmployeesQuery(northwindEntities);        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;employeesViewSource__NorthwindEntities.Source = employeesQuery.Execute(System.Data.Objects.&lt;span style="color: #2b91af"&gt;MergeOption&lt;/span&gt;.AppendOnly);        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 9.5pt; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;br /&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;Then it’s the time to build the navigation bar! Let’s start with UI design and make something like this:&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/BuildYourOwnNavigationBarforDataNavigati_9AFE/clip_image004_8.jpg"&gt;&lt;font size="2"&gt;&lt;img title="clip_image004" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="30" alt="clip_image004" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/BuildYourOwnNavigationBarforDataNavigati_9AFE/clip_image004_thumb_2.jpg" width="210" border="0" v:shapes="Picture_x0020_3" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;From the left to the right, they are buttons for navigation to the first row, the previous row, the next row, and the last row; a text box for users to input the index of the row for navigation; a label to show how many row in all; and a button for navigation to the specific row based on what users input into the text box. We also add event handler for each button. The XAML of this navigation bar looks like below:&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;StackPanel&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Height&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;28&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; HorizontalAlignment&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Left&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Margin&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;10,12,0,0&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Name&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;stackPanel1&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; VerticalAlignment&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Top&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Width&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;206&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Orientation&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Horizontal&amp;quot;&amp;gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Button&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Content&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;|&amp;amp;lt;&amp;amp;lt;&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Height&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;23&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Name&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;goToFirstButton&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Width&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Auto&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; FontWeight&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Background&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;BlanchedAlmond&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Click&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;goToFirstButton_Click&amp;quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Button&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Button&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Content&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;&amp;amp;lt;&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Height&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;23&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Name&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;goToPreviousButton&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Width&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Auto&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; FontWeight&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Background&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;BlanchedAlmond&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Click&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;goToPreviousButton_Click&amp;quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Button&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Button&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Content&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;&amp;amp;gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Height&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;23&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Name&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;goToNextButton&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Width&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Auto&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; FontWeight&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Background&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;BlanchedAlmond&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Click&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;goToNextButton_Click&amp;quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Button&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Button&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Content&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;&amp;amp;gt;&amp;amp;gt;|&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Height&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;23&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Name&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;goToLastButton&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Width&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Auto&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; FontWeight&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Background&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;BlanchedAlmond&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Click&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;goToLastButton_Click&amp;quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Button&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;TextBox&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Height&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;23&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Name&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;goTextBox&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Width&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;37&amp;quot; /&amp;gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Label&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Content&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;of &amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Height&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;28&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Name&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;label1&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Width&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;20&amp;quot; /&amp;gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Label&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Height&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;28&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Name&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; &lt;span style="color: blue"&gt;totalRowCount&amp;quot;&lt;/span&gt;&lt;span style="color: red"&gt; Width&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;25&amp;quot; /&amp;gt;&lt;/span&gt;        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Button&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Content&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Go!&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Height&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;23&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Name&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;goButton&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Width&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Auto&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Background&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;BlanchedAlmond&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; FontWeight&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;Bold&amp;quot;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: red; font-family: &amp;quot;Courier New&amp;quot;"&gt; Click&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;=&amp;quot;goButton_Click&amp;quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; font-family: &amp;quot;Courier New&amp;quot;"&gt;Button&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;       &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: #a31515; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: #a31515; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;"&gt;StackPanel&lt;/span&gt;&lt;span style="font-size: 9.5pt; color: blue; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;And in the code behind, we get a set of event handler methods for each button’s Click event.&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;Now it’s the time to implement navigation! Still remember we load data into a &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.data.collectionviewsource.aspx"&gt;&lt;font size="2"&gt;CollectionViewSource&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt;? Now it’s the time to leverage its power. &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.data.collectionviewsource.aspx"&gt;&lt;font size="2"&gt;CollectionViewSource&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; is actually a XAML proxy for &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.data.collectionview.aspx"&gt;&lt;font size="2"&gt;CollectionView&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; class, which represents a View for grouping, sorting, filtering and navigating a data collection. The View provides a currency point and allows you to move the pointer. As a proxy of &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.data.collectionview.aspx"&gt;&lt;font size="2"&gt;CollectionView&lt;/font&gt;&lt;/a&gt;&lt;font size="2"&gt; class, CollectionViewSource has a View property, which is a dependency property. We’ll use this to move the currency and do navigation. So, for each Click event handler, the implementation is somewhat like below:&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;font face="Arial"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&lt;font face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; GoToFirstButton_Click(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af"&gt;RoutedEventArgs&lt;/span&gt; e)          &lt;p&gt;&lt;/p&gt;       &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;employeesViewSource_NorthwindEntities.View.MoveCurrentToFirst();        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;     &lt;p&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; GoToPreviousButton_Click(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af"&gt;RoutedEventArgs&lt;/span&gt; e)        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;employeesViewSource_NorthwindEntities.View.MoveCurrentToPrevious();        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;     &lt;p&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; GoToNextButton_Click(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af"&gt;RoutedEventArgs&lt;/span&gt; e)        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;employeesViewSource_NorthwindEntities.View.MoveCurrentToNext();        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;     &lt;p&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; GoToLastButton_Click(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af"&gt;RoutedEventArgs&lt;/span&gt; e)        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;employeesViewSource_NorthwindEntities.View.MoveCurrentToLast();        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;     &lt;p&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; GoButton_Click(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af"&gt;RoutedEventArgs&lt;/span&gt; e)        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;int&lt;/span&gt; position;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; int&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;.TryParse(goTextBox.Text, out position);         &lt;p&gt;&lt;/p&gt;       &lt;/span&gt;&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (position &amp;gt; 0 &amp;amp;&amp;amp; position &amp;lt;= totalRowCount)&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0pt 0.5in; text-indent: 0.5in; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;{       &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0pt 1in; text-indent: 0.5in; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;employeesViewSource_NorthwindEntities.View.MoveCurrentToPosition(position - 1);       &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-tab-count: 2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}          &lt;p&gt;&lt;/p&gt;       &lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;else         &lt;p&gt;&lt;/p&gt;       &lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-tab-count: 2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: #2b91af"&gt;MessageBox&lt;/span&gt;.Show(&lt;span style="color: #a31515"&gt;&amp;quot;The input index is not valid.&amp;quot;&lt;/span&gt;);        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-tab-count: 2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 9.5pt; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;To get the total row counts, we need to use the Count method in entity’s ObjectSet. Let’s put the following code into the Window_Loaded method:&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; totalRowCount = northwindEntities.Employees.Count();         &lt;p&gt;&lt;/p&gt;       &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 9.5pt; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;totalRowCountLabel.Content = totalRowCount;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;So far, we’ve already had our navigation work. Pretty simple, isn’t it?&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;To make it even better, let’s do something more on the button, and disable the button when it doesn’t make sense to click it. We’ll add a new method here to set buttons’ ability:&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; SetButtonIsEnabled()        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoCommentText" style="margin-bottom: 0pt"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-tab-count: 1"&gt;&lt;/span&gt;&lt;span style="color: blue"&gt;bool&lt;/span&gt; isFirst = (employeesViewSource__NorthwindEntities.View.CurrentPosition == 0);&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoCommentText" style="margin-bottom: 0pt"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;span style="font-size: 9.5pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;bool&lt;/span&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; isLast&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;= employeesViewSource__NorthwindEntities.View.CurrentPosition &amp;gt; (totalRowCounts - 1);        &lt;p&gt;&lt;/p&gt;     &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoCommentText" style="margin-bottom: 0pt"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;     &lt;p&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;   &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoCommentText" style="margin-bottom: 0pt"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;goToFirstButton.IsEnabled = goToPreviousButton.IsEnabled = !isFirst;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;goToNextButton.IsEnabled = goToLastButton.IsEnabled = !isLast;        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt"&gt;&lt;span style="font-size: 9.5pt; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;Also, we’d like the index input text box always shows the corresponding index number for the current selection. So we need another method here:&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; SetGoTextBoxOnCurrentPosition()        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;{        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;span style="font-size: 9.5pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;goTextBox.Text = (employeesViewSource__NorthwindEntities.View.CurrentPosition + 1).ToString();        &lt;p&gt;&lt;/p&gt;     &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 9.5pt; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;Then we can call these two methods in the Click event handler methods (or wrap these two methods into a new method, say UpdateNavigatorUI, and call the method), and we’ll get a complete functionality of a basic navigation bar. The full code can be found &lt;a href="http://blogs.msdn.com/vsdata/pages/full-sample-code-behind-in-data-navigatior.aspx"&gt;here&lt;/a&gt;.&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0pt; line-height: normal; mso-layout-grid-align: none"&gt;&lt;font size="2"&gt;Based on that, we can add even more features into our navigation bar. To make it more powerful, you can also add CRUD functionality into it. However, hmm… In this article, the navigation bar we build only work for one page and one entity. There still some work we can do to make this useful utility more reusable. How we can do that? Bingo! Building a user control. And we will talk about that in the future post. Wait and see!&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9797163" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Data+Binding/default.aspx">Data Binding</category></item><item><title>WPF Data Binding: Lookup tables</title><link>http://blogs.msdn.com/vsdata/archive/2009/06/18/wpf-data-binding-lookup-tables.aspx</link><pubDate>Thu, 18 Jun 2009 03:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9771358</guid><dc:creator>MilindLele</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9771358.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9771358</wfw:commentRss><description>&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;A few weeks ago I wrote about &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/vsdata/archive/2009/05/20/wpf-data-binding-creating-a-master-details-form-in-visual-studio-2010.aspx" mce_href="http://blogs.msdn.com/vsdata/archive/2009/05/20/wpf-data-binding-creating-a-master-details-form-in-visual-studio-2010.aspx"&gt;&lt;FONT size=2 face=Verdana&gt;creating a master-details form&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2 face=Verdana&gt;, where we looked at an example of a database used for tracking orders, as part of an order management system. We had used the Customers and Orders tables and built a master-details form that showed a list of customers and for each selected customer, their orders. Another common scenario for binding &lt;EM&gt;related&lt;/EM&gt; tables on a form involves look up tables.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;Beth Massi wrote about &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/bethmassi/archive/2009/04/30/data-binding-wpf-lookup-combobox-values-to-ef-entities.aspx" mce_href="http://blogs.msdn.com/bethmassi/archive/2009/04/30/data-binding-wpf-lookup-combobox-values-to-ef-entities.aspx"&gt;&lt;FONT size=2 face=Verdana&gt;how to data bind WPF lookup comboboxes to entities&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2 face=Verdana&gt; using VS2008. She uses describes the XAML and the code behind one needs to write to accomplish this. In VS2010, it’s considerably easier. Here’s how:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;We will use the same Customers and Orders tables and entities that Beth uses (and we’ve used in my previous master-details post). Once we create a WPF application and add an entity model to to it as described in earlier posts, we should be able to browse the entity model in the data sources window. In the data sources window:&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size=2 face=Verdana&gt;Expand the Orders node and under it set the FK_Orders_Customer to a combobox &lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_4.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_4.png"&gt;&lt;FONT size=2 face=Verdana&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_thumb_1.png" width=220 height=143 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_thumb_1.png"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2 face=Verdana&gt; &lt;BR&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size=2 face=Verdana&gt;Select the Orders node and set the control to Details view &lt;BR&gt;&lt;BR&gt;&amp;nbsp;&lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_6.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_6.png"&gt;&lt;FONT size=2 face=Verdana&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_thumb_2.png" width=194 height=158 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_thumb_2.png"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2 face=Verdana&gt; &lt;BR&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size=2 face=Verdana&gt;Drag and drop the Orders entity to the WPF form &lt;BR&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size=2 face=Verdana&gt;Now drag and drop the LastName property under FK_Orders_Customer to the combobox on the form.&lt;/FONT&gt; &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;Just these four simple steps will get the look up binding setup. The application, when run, would look something like this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_8.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_8.png"&gt;&lt;FONT size=2 face=Verdana&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_thumb_3.png" width=244 height=182 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingLookuptables_100B8/image_thumb_3.png"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2 face=Verdana&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;The XAML for the combobox is something like this:&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2 face=Verdana&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;ComboBox&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; Name&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="CustomerComboBox"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;Height&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="23"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; Width&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="120"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;HorizontalAlignment&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="Left" &lt;FONT color=#ff0000&gt;VerticalAlignment&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="Center" &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Margin&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="3"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#ff0000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayMemberPath&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="Customer.LastName"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;ItemsSource&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="{&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;Binding&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;}"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9771358" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Data+Binding/default.aspx">Data Binding</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Entity+Framework/default.aspx">Entity Framework</category></item><item><title>WPF 4 Beta 1 Designer Video Series on Channel 9</title><link>http://blogs.msdn.com/vsdata/archive/2009/06/17/wpf-4-beta-1-designer-video-series-on-channel-9.aspx</link><pubDate>Wed, 17 Jun 2009 01:24:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9763695</guid><dc:creator>Yang Cao</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9763695.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9763695</wfw:commentRss><description>&lt;p&gt;I was browsing &lt;a href="http://channel9.msdn.com/" target="_blank"&gt;Channel 9&lt;/a&gt; today, and saw the video &lt;a href="http://twitter.com/MarkPavWT" target="_blank"&gt;Mark Wilson-Thomas&lt;/a&gt; demonstrating the easy drag-and-drop way of creating a Master Detail Form in WPF. Please check it out &lt;a href="http://channel9.msdn.com/shows/Continuum/WPF4Beta1DesignerForms/" target="_blank"&gt;here&lt;/a&gt;. In &lt;a href="http://channel9.msdn.com/posts/ContinuumNews/WPF-4-Beta-1-video-series-on-Channel-9-is-now-complete/" target="_blank"&gt;some other videos&lt;/a&gt;, he also talked about &lt;a href="http://channel9.msdn.com/shows/Continuum/WPF4Beta1DesignerLookingForward/" target="_blank"&gt;the future of WPF designer&lt;/a&gt;, which is pretty cool.    &lt;br /&gt;Milind Lele also made two videos talking about the VS2010 drag-drop data binding feature. Any feedback or suggestion would be much appreciated!&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://channel9.msdn.com/posts/funkyonex/Drag-Drop-Data-Binding-Comes-to-WPF-in-Visual-Studio-2010/"&gt;Drag-Drop Data Binding Comes to WPF in Visual Studio 2010&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://channel9.msdn.com/posts/funkyonex/WPF-Improvements-in-Visual-Studio-2010-for-Building-Business-Apps/"&gt;WPF Improvements in Visual Studio 2010 for Building Business Apps&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;This is not the only thing that got my attention on Channel 9. I’m sure most of you are excited about Windows 7 as much as I am – I have both my laptop and desktop running Windows 7 RC and I’m a big fan! Besides the &lt;a href="http://channel9.msdn.com/tags/Windows+7/" target="_blank"&gt;Windows 7 videos&lt;/a&gt; on Channel 9, the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=12100526-ed26-476b-8e20-69662b8546c1&amp;amp;displaylang=en" target="_blank"&gt;Windows 7 RC Training Kit&lt;/a&gt; is available for download too. Follow the 7 Hands-on Labs, you’ll learn how to write a Windows 7 compatible application, and make use of the Windows 7 style Taskbar, Ribbon, Libraries, etc. Hopefully in the future, some tooling support will come out and help developers build Windows 7 applications more easily!&lt;/p&gt;  &lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9763695" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category></item><item><title>WPF Sample on CodeGallery</title><link>http://blogs.msdn.com/vsdata/archive/2009/06/11/wpf-sample-on-codegallery.aspx</link><pubDate>Thu, 11 Jun 2009 20:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9727900</guid><dc:creator>MilindLele</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9727900.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9727900</wfw:commentRss><description>&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;BR&gt;&lt;FONT size=3 face=Calibri&gt;The MSDN CodeGallery now has VB and C# sample for WPF data binding&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;A href="http://code.msdn.microsoft.com/WPFDatabinding"&gt;&lt;FONT size=3 face=Calibri&gt;http://code.msdn.microsoft.com/WPFDatabinding&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT size=3 face=Calibri&gt;This is a sample of a WPF application and includes data binding, data validation, lookup binding. The solution is VS2010 Beta1 based, but the application uses .NET Framework 3.5.&lt;BR&gt;&lt;BR&gt;See also: &lt;/FONT&gt;&lt;A href="http://code.msdn.microsoft.com/wpfdatavideos"&gt;&lt;FONT size=3 face=Calibri&gt;Beth Massi’s WPF Forms over data videos using VS2008&lt;/FONT&gt;&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9727900" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Data+Binding/default.aspx">Data Binding</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Entity+Framework/default.aspx">Entity Framework</category></item><item><title>My experience on Connect Feedbacks</title><link>http://blogs.msdn.com/vsdata/archive/2009/06/09/my-experience-on-connect-feedbacks.aspx</link><pubDate>Tue, 09 Jun 2009 16:02:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9711024</guid><dc:creator>John Chen</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9711024.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9711024</wfw:commentRss><description>&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3 face=Calibri&gt;Recently I have been working with some Visual Studio feedbacks reported through &lt;/FONT&gt;&lt;A href="http://connect.microsoft.com/" mce_href="http://connect.microsoft.com/"&gt;&lt;FONT color=#800080 size=3 face=Calibri&gt;Microsoft Connect&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3 face=Calibri&gt;. I found that some feedbacks may contain multiple unrelated issues.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;On the other hand, one issue may be reported several times by the same person in different feedbacks. There are also issues about crashing, memory, performance, debugging, etc. I will share some tips here that I think can benefit both Microsoft and our customers. &lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;1. Report only one issue in one feedback. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;As you may know that there are many teams working for Visual Studio and Dot Net framework.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Different issues are more likely handled by different teams, product units or even divisions. Multiple issues in one feedback will be hard to track and individual issues may not be routed to the right team promptly. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3 face=Calibri&gt;2. Do come back to check the feedback often. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;We may often ask for detail repro information in order to reproduce the issue. If the issue has been resolved as not repro but you have more info, don’t worry or get angry, just reactivate the issue and adding the new information. Some customers tend to open new feedbacks in this case. I think stick to the old issue and continue the communication would be a better approach. Of course, if the time span is too long, a new issue is appropriate. &lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3 face=Calibri&gt;3. When a crashing occurs and you see the dialog asking you to send the feedback, click the send button. This will send the important crashing information (like call stack) to Microsoft and the information will be analyzed.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3 face=Calibri&gt;4. If you have issues regarding crashes, hangs, slowness, or out of memory errors, you can collect the information with the performance diagnostic tool available &lt;/FONT&gt;&lt;A href="https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=16951" mce_href="https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=16951"&gt;&lt;FONT color=#0000ff size=3 face=Calibri&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt; (you need to log in as a connect user first). &lt;SPAN style="COLOR: #1f497d"&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3 face=Calibri&gt;5. If you want to use the VS debugger to get a call stack or dump file of an exception of VS, you can do so with a second instance of Visual Studio, see the post I have &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/vsdata/archive/2009/06/08/how-to-get-call-stack-of-visual-studio.aspx" mce_href="http://blogs.msdn.com/vsdata/archive/2009/06/08/how-to-get-call-stack-of-visual-studio.aspx"&gt;&lt;FONT color=#800080 size=3 face=Calibri&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt; .&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3 face=Calibri&gt;Hope this helps. &lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9711024" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2008/default.aspx">VS2008</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Connect/default.aspx">Connect</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Debugging/default.aspx">Debugging</category></item><item><title>How to get call stack of Visual Studio?</title><link>http://blogs.msdn.com/vsdata/archive/2009/06/08/how-to-get-call-stack-of-visual-studio.aspx</link><pubDate>Mon, 08 Jun 2009 23:45:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9710966</guid><dc:creator>John Chen</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9710966.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9710966</wfw:commentRss><description>&lt;p&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;&lt;font size="4"&gt;If you want to use the VS debugger to get a call stack or dump file of an exception of VS. You can do so with a second instance of Visual Studio. Here is the steps I would use: &lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;#39;Times New Roman&amp;#39;; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;   &lt;p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;     &lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&lt;/p&gt;   &lt;/p&gt;    &lt;table class="MsoNormalTable" style="width: 472.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-cellspacing: 0in; mso-yfti-tbllook: 1184" cellspacing="0" cellpadding="0" width="630" border="0"&gt;&lt;tbody&gt;       &lt;tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes"&gt;         &lt;td style="border-right: #f0f0f0; padding-right: 0in; border-top: #f0f0f0; padding-left: 0in; background: #dce4f6; padding-bottom: 0in; border-left: #f0f0f0; width: 472.5pt; padding-top: 0in; border-bottom: #f0f0f0" valign="top" width="630"&gt;           &lt;p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l3 level1 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;1)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Have your working Visual Studio running: let’s call this Visual Studio as VS1.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in"&gt;&lt;font face="Times New Roman" size="3"&gt;Proceed to the point right before the exception is about to happen. &lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l3 level1 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;2)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Open a second instance of Visual Studio (make sure this is the only second instance): let’s call it VS2.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l3 level1 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;3)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Setup VS2 debug option as following &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; mso-add-space: auto; mso-list: l3 level2 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;a.&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Open Tools Option menu &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; mso-add-space: auto; mso-list: l3 level2 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;b.&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Drill down to Debugging\General, find out the Enable Just My Code (Managed Only) item, and uncheck it. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpLast" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; mso-add-space: auto; mso-list: l3 level2 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;c.&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Drill down to Debugging\Symbols, Set your symbol path to &lt;span style="color: #1f497d"&gt;&lt;a href="http://msdl.microsoft.com/download/symbols"&gt;&lt;font color="#0000ff"&gt;http://msdl.microsoft.com/download/symbols&lt;/font&gt;&lt;/a&gt; and cache the symbols to local directory like c:\symbols &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HowtogetcallstackofVisualStudio_EB92/Blog21_2.jpg"&gt;&lt;img title="Blog21" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="263" alt="Blog21" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HowtogetcallstackofVisualStudio_EB92/Blog21_thumb.jpg" width="449" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;&lt;stroke joinstyle="miter"&gt;&lt;/stroke&gt;&lt;formulas&gt;&lt;f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/f&gt;&lt;f eqn="sum @0 1 0"&gt;&lt;/f&gt;&lt;f eqn="sum 0 0 @1"&gt;&lt;/f&gt;&lt;f eqn="prod @2 1 2"&gt;&lt;/f&gt;&lt;f eqn="prod @3 21600 pixelWidth"&gt;&lt;/f&gt;&lt;f eqn="prod @3 21600 pixelHeight"&gt;&lt;/f&gt;&lt;f eqn="sum @0 0 1"&gt;&lt;/f&gt;&lt;f eqn="prod @6 1 2"&gt;&lt;/f&gt;&lt;f eqn="prod @7 21600 pixelWidth"&gt;&lt;/f&gt;&lt;f eqn="sum @8 21600 0"&gt;&lt;/f&gt;&lt;f eqn="prod @7 21600 pixelHeight"&gt;&lt;/f&gt;&lt;f eqn="sum @10 21600 0"&gt;&lt;/f&gt;&lt;/formulas&gt;&lt;path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/path&gt;&lt;lock aspectratio="t" v:ext="edit"&gt;&lt;/lock&gt;&lt;/shapetype&gt;&lt;shape id="Picture_x0020_9" style="visibility: visible; width: 284.25pt; height: 165pt" type="#_x0000_t75" o:spid="_x0000_i1025"&gt;&lt;imagedata o:title="o:title" src="file:///C:\Users\johnchen\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"&gt;&lt;/imagedata&gt;&lt;/shape&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraph" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; mso-add-space: auto; mso-list: l3 level2 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;d.&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Click OK to close down the dialog (note the debugger may take long time to down load the symbols for the first time, once the symbols are cached, it will be faster next time).&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l3 level1 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;4)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;In VS2, attach the process of VS1 &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; text-indent: -0.25in; mso-add-space: auto; mso-list: l0 level1 lfo2"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;a)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Open Debug\Attach to process… menu command &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; text-indent: -0.25in; mso-add-space: auto; mso-list: l0 level1 lfo2"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;b)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;In the Attach to Process dialog, Set Attach to parameter by click the Select button (see the picture bellow)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; mso-add-space: auto; mso-list: l4 level4 lfo6"&gt;&lt;span style="font-family: symbol; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;·&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Times New Roman" size="3"&gt;Set to Managed code only if you want to debug only managed code (it will be faster to choose the small set of debugging type)&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; mso-add-space: auto; mso-list: l4 level4 lfo6"&gt;&lt;span style="font-family: symbol; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;·&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Times New Roman" size="3"&gt;Set to Native code only if you want to debug only native code. &lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 1in; text-indent: -0.25in; mso-add-space: auto; mso-list: l4 level4 lfo6"&gt;&lt;span style="font-family: symbol; mso-fareast-font-family: symbol; mso-bidi-font-family: symbol"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;·&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Times New Roman" size="3"&gt;Set both or automatic if not sure. &lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; mso-add-space: auto"&gt;&lt;font face="Times New Roman" size="3"&gt;If you need to save the dump file, you need to include the native code. &lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; text-indent: -0.25in; mso-add-space: auto; mso-list: l0 level1 lfo2"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;c)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Then double click on the devenv.exe from Available process&lt;/font&gt;&lt;/font&gt;&lt;span style="mso-no-proof: yes"&gt;               &lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;#160;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HowtogetcallstackofVisualStudio_EB92/Blog22_2.jpg"&gt;&lt;img title="Blog22" style="border-right: 0px; border-top: 0px; display: block; float: none; margin: 0px auto; border-left: 0px; border-bottom: 0px" height="336" alt="Blog22" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HowtogetcallstackofVisualStudio_EB92/Blog22_thumb.jpg" width="484" border="0" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;             &lt;/span&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; mso-add-space: auto"&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;shape id="Picture_x0020_12" style="visibility: visible; width: 275.25pt; height: 189.75pt" type="#_x0000_t75" o:spid="_x0000_i1026"&gt;&lt;imagedata o:title="o:title" src="file:///C:\Users\johnchen\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png"&gt;&lt;/imagedata&gt;&lt;/shape&gt;                    &lt;p&gt;&lt;/p&gt;                 &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; mso-add-space: auto"&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Devenv.exe is the visual studio instance. &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;              &lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;           &lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l3 level1 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;5)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Enable break on exception &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; text-indent: -0.25in; mso-add-space: auto; mso-list: l5 level1 lfo3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;a)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;In VS2, open Debug\Exceptions menu and check on Common Language Runtime Exceptions for managed code. Add other checks if necessary. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpLast" style="margin: 0in 0in 0pt 0.75in; text-indent: -0.25in; mso-add-space: auto; mso-list: l5 level1 lfo3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;b)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Clock OK to close the dialog. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;             &lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HowtogetcallstackofVisualStudio_EB92/blog23_2.jpg"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;img title="blog23" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="258" alt="blog23" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/HowtogetcallstackofVisualStudio_EB92/blog23_thumb.jpg" width="507" border="0" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;           &lt;/p&gt;            &lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;6)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Now go back to VS1, use the VS to allow the exception occur. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l3 level1 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;7)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;You should see the exception captured by VS2. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l3 level1 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;8)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;In VS2, open Debug\Windows\Locals to see the current exception &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; text-indent: -0.25in; mso-add-space: auto; mso-list: l1 level1 lfo5"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;a)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Make sure the exception is the right one, hit F5 to continue to the next exception if necessary &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l3 level1 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;9)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;In VS2, open Debug\Windows\Call Stack to get the call stack window. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; text-indent: -0.25in; mso-add-space: auto; mso-list: l2 level1 lfo4"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;a)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Copy the full stack and send back to your Microsoft representative. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; mso-list: l3 level1 lfo1"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-list: ignore"&gt;&lt;font size="3"&gt;10)&lt;/font&gt;&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;"&gt;&amp;#160; &lt;/span&gt;&lt;/span&gt;&lt;font size="3"&gt;Get dump file. &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class="MsoListParagraphCxSpLast" style="margin: 0in 0in 0pt 0.5in"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;If you include the native code debugging, you can use Debug\Save dump file as menu to save dump file. Send the dump file to Microsoft representative.&lt;span style="mso-spacerun: yes"&gt;&amp;#160; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;        &lt;tr style="mso-yfti-irow: 1; mso-yfti-lastrow: yes"&gt;         &lt;td style="border-right: #f0f0f0; padding-right: 0in; border-top: #f0f0f0; padding-left: 0in; background: #dce4f6; padding-bottom: 0in; border-left: #f0f0f0; width: 472.5pt; padding-top: 0in; border-bottom: #f0f0f0" valign="top" width="630"&gt;           &lt;p class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in"&gt;             &lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt;           &lt;/p&gt;         &lt;/td&gt;       &lt;/tr&gt;     &lt;/tbody&gt;&lt;/table&gt; &lt;/span&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;   &lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;#160;&lt;/font&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;font face="Times New Roman" size="4"&gt;I am using Visual Studio 2008 as the example above. Other versions should have similar steps.&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;font face="Times New Roman" size="4"&gt;Also notice that if you have issues regarding crash, hang, slowness, out of memory error, you can collect the information with the performance diagnostic tool available &lt;/font&gt;&lt;a href="https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=16951"&gt;&lt;font face="Times New Roman" color="#0000ff" size="4"&gt;here&lt;/font&gt;&lt;/a&gt;&lt;font size="4"&gt;&lt;font face="Times New Roman"&gt;.&lt;span style="color: #1f497d"&gt;          &lt;p&gt;&lt;/p&gt;       &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9710966" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2008/default.aspx">VS2008</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category></item><item><title>WPF designer in VS2010</title><link>http://blogs.msdn.com/vsdata/archive/2009/06/05/wpf-designer-in-vs2010.aspx</link><pubDate>Fri, 05 Jun 2009 14:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9702176</guid><dc:creator>MilindLele</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9702176.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9702176</wfw:commentRss><description>&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt"&gt;Check out this excellent article:&lt;BR&gt;&lt;A href="http://windowsclient.net/wpfdesigner/articles/first-wpf-application.aspx"&gt;http://windowsclient.net/wpfdesigner/articles/first-wpf-application.aspx&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;The article walks you through creating a basic WPF application.&lt;BR&gt;&lt;BR&gt;“&lt;/SPAN&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt; mso-ansi-language: EN; mso-bidi-font-size: 11.0pt" lang=EN&gt;You will learn to easily create, move and align controls, create data bindings and edit control collections using the powerful features of the WPF Designer for Visual Studio 2010.&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt; mso-bidi-font-size: 11.0pt"&gt;”&lt;BR&gt;&lt;BR&gt;Oh, and by the way, there is also a video that shows this &lt;A href="http://windowsclient.net/learn/video.aspx?v=171694"&gt;http://windowsclient.net/learn/video.aspx?v=171694&lt;/A&gt;&lt;BR&gt;&lt;BR style="mso-special-character: line-break"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9702176" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category></item><item><title>WPF Data Binding: Bind a generic object on a WPF designer</title><link>http://blogs.msdn.com/vsdata/archive/2009/06/01/wpf-data-binding-bind-a-generic-object-on-a-wpf-designer.aspx</link><pubDate>Mon, 01 Jun 2009 19:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9674228</guid><dc:creator>Jeff Chen</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9674228.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9674228</wfw:commentRss><description>&lt;P&gt;In Visual Studio 2010 Beta1, we have enabled data binding experience for a few data sources on WPF designer. Generic object or business object is one of them. Besides this, we have also supported multiple object selection in data source configuration wizard. I will show you all of the above features by walking through one example. In this example, I want to create a master-details form on a WPF designer by binding to the generic objects.&lt;/P&gt;
&lt;P&gt;First, let’s create two classes called Customer and Order. And we establish one-to-many relationship between Customer and Order. This step is pretty similar to what needs to be done on a Winform designer.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_2.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_2.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_thumb.png" width=320 height=221 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Second, let’s add these two generic objects to data sources window. As I mentioned above, we now support selecting multiple objects in data source configuration wizard simultaneously.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_4.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_4.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_thumb_1.png" width=323 height=252 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_thumb_1.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the addition, this is what displays in data sources window.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_6.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_6.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_thumb_2.png" width=121 height=261 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_thumb_2.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Third, let’s drag-drop from data sources window to the WPF designer to create a master-details form. We can bind any system or user controls to a particular data node. Here are the helps on &lt;A href="http://msdn.microsoft.com/en-us/library/dd264902(VS.100).aspx" mce_href="http://msdn.microsoft.com/en-us/library/dd264902(VS.100).aspx"&gt;“Customize Control Binding Dialog Box”&lt;/A&gt; and &lt;A href="http://msdn.microsoft.com/en-us/library/5554bf3a(VS.100).aspx" mce_href="http://msdn.microsoft.com/en-us/library/5554bf3a(VS.100).aspx"&gt;“How to: Add Custom Controls to the Data Sources Window”&lt;/A&gt;. In this example, I bind ListBox to the node Customer.LastName and DataGrid to the node Customer.Orders in the data sources window, and drag-drop these nodes to the WPF designer respectively.&lt;/P&gt;
&lt;P&gt;Last, we need to fill the data to the form. In the third step, when we drag-drop the data nodes to the form, XAML code was automatically generated. That XMAL code is very similar to the one if we bind data to ADO.NET Entity Data Model. You can find detailed explanation about XAML code part in MilindLele’s post &lt;A href="http://blogs.msdn.com/vsdata/archive/2009/05/20/wpf-data-binding-creating-a-master-details-form-in-visual-studio-2010.aspx" mce_href="http://blogs.msdn.com/vsdata/archive/2009/05/20/wpf-data-binding-creating-a-master-details-form-in-visual-studio-2010.aspx"&gt;“WPF Data Binding: Creating a Master-Details form in Visual Studio 2010”&lt;/A&gt;. For the code behind the form, we set the data to the source property of the CollectionViewSource of the Customer object in the window loaded event handler.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;PRE class=csharpcode&gt;List&amp;lt;Customer&amp;gt; customers = &lt;SPAN class=kwrd&gt;new&lt;/SPAN&gt; List&amp;lt;Customer&amp;gt;(); 
customers.Add(...);

System.Windows.Data.CollectionViewSource customerViewSource = 
  ((System.Windows.Data.CollectionViewSource)(&lt;SPAN class=kwrd&gt;this&lt;/SPAN&gt;.FindResource(&lt;SPAN class=str&gt;"customerViewSource"&lt;/SPAN&gt;))); 
customerViewSource.Source = customers;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Now press F5, we should be able to see the form loaded with the data.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_8.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_8.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_thumb_3.png" width=320 height=202 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingBindagenericobjectonaWPFde_C1D4/image_thumb_3.png"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;As the master-details association is already created in XAML, different sets of orders will be displayed according to the selection of customer names.&lt;/P&gt;
&lt;DIV style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; DISPLAY: inline; FLOAT: none; PADDING-TOP: 0px" id=scid:0767317B-992E-4b12-91E0-4F059A8CECA8:627849d7-d2af-48b0-b53f-3572cf75b762 class=wlWriterEditableSmartContent&gt;Technorati Tags: &lt;A href="http://technorati.com/tags/WPF" rel=tag mce_href="http://technorati.com/tags/WPF"&gt;WPF&lt;/A&gt;,&lt;A href="http://technorati.com/tags/Business+Object" rel=tag mce_href="http://technorati.com/tags/Business+Object"&gt;Business Object&lt;/A&gt;,&lt;A href="http://technorati.com/tags/Generic+Object" rel=tag mce_href="http://technorati.com/tags/Generic+Object"&gt;Generic Object&lt;/A&gt;,&lt;A href="http://technorati.com/tags/VS2010+Beta1" rel=tag mce_href="http://technorati.com/tags/VS2010+Beta1"&gt;VS2010 Beta1&lt;/A&gt;&lt;/DIV&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9674228" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Data+Binding/default.aspx">Data Binding</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Generic+Object/default.aspx">Generic Object</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Business+Object/default.aspx">Business Object</category></item><item><title>Improvement of the data binding experience with ADO.Net Data Services</title><link>http://blogs.msdn.com/vsdata/archive/2009/05/25/improvement-of-the-data-binding-experience-with-ado-net-data-service.aspx</link><pubDate>Mon, 25 May 2009 21:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9640871</guid><dc:creator>John Chen</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9640871.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9640871</wfw:commentRss><description>&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'"&gt;&lt;FONT size=3&gt;In Visual Studio 2010 Beta1, the data binding experience with ADO.Net Data Services has been improved. In Visual Studio 2008 SP1, after adding an ADO.Net data service as web reference to a client project, it will not automatically show up in the data source window, you have to add an object data source to consume the ADO.Net data service. There is no more of this step in VS2010!&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'"&gt;&lt;FONT size=3&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'"&gt;&lt;FONT size=3&gt;Let's take a look at the article of &lt;SPAN style="COLOR: #0070c0"&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/cc668184.aspx" mce_href="http://msdn.microsoft.com/en-us/library/cc668184.aspx"&gt;&lt;SPAN style="COLOR: #0070c0"&gt;Walkthrough: Creating and Accessing an ADO.NET Data Service in Visual Studio&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; (this is for VS2008 SP1). To create the client application consuming the ADO.Net data service, you have the following steps: &lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; VERTICAL-ALIGN: middle; mso-list: l0 level1 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;&lt;FONT size=3&gt;1)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;&lt;FONT size=3&gt;Create the client application &lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: 0.5in; MARGIN: 0in 0in 0pt 0.25in" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;(Steps omit here) &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; VERTICAL-ALIGN: middle; mso-list: l0 level1 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;&lt;FONT size=3&gt;2)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;&lt;FONT size=3&gt;Add a service reference &lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; VERTICAL-ALIGN: middle; mso-list: l0 level2 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;a)&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;On the Project menu, click Add Service Reference. &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; VERTICAL-ALIGN: middle; mso-list: l0 level2 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;b)&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;In the Add Service Reference dialog box, click Discover. &lt;BR&gt;The URL for the NorthwindCustomers service will appear in the Address field. &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; VERTICAL-ALIGN: middle; mso-list: l0 level2 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;c)&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;Click OK to add the service reference. &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; VERTICAL-ALIGN: middle; mso-list: l0 level1 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;&lt;FONT size=3&gt;3)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;&lt;FONT size=3&gt;Enable data binding to the service &lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; VERTICAL-ALIGN: middle; mso-list: l0 level2 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;a)&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;On the Data menu, click Show Data Sources. &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; VERTICAL-ALIGN: middle; mso-list: l0 level2 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;b)&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;In the Data Sources window, click Add New Data Source. &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; VERTICAL-ALIGN: middle; mso-list: l0 level2 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;c)&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;On the Choose a Data Source Type page of the Data Source Configuration Wizard, click Object, and then click Next. &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; VERTICAL-ALIGN: middle; mso-list: l0 level2 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;d)&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;On the Select the Object You Wish to Bind to page, expand the NorthwindClient node, and then expand the NorthwindClient.ServiceReference1 node. &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 1in; VERTICAL-ALIGN: middle; mso-list: l0 level2 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;e)&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;Select Customers, and then click Finish. &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; VERTICAL-ALIGN: middle; mso-list: l0 level1 lfo4" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; mso-fareast-font-family: tahoma; mso-bidi-font-weight: bold"&gt;&lt;SPAN style="mso-list: ignore"&gt;&lt;FONT size=3&gt;4)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;&lt;FONT size=3&gt;Create the user interface &lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: 0.5in; MARGIN: 0in 0in 0pt 0.25in" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-weight: bold"&gt;(Steps omit here) &lt;/SPAN&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;FONT size=3&gt;In VS2010 beta1, you do not need to do step 3 anymore. ADO.Net data service is recognized automatically and happily shows up in the data source window. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;FONT size=3&gt;Alternatively, you can also add the ADO.net data service to your client project by the &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/w4dd7z6t(VS.80).aspx" mce_href="http://msdn.microsoft.com/en-us/library/w4dd7z6t(VS.80).aspx"&gt;&lt;FONT color=#800080 size=3&gt;Data Source Configuration Wizard&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt;. Replace the step 2 above with the following: &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;FONT size=3&gt;&amp;nbsp; &lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; VERTICAL-ALIGN: middle; mso-list: l1 level1 lfo1; tab-stops: list .5in" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: tahoma"&gt;&lt;SPAN style="mso-list: ignore"&gt;&lt;FONT size=3&gt;a.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;FONT size=3&gt;On the Data menu, click Show Data Sources. &lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; VERTICAL-ALIGN: middle; mso-list: l1 level1 lfo2; tab-stops: list .5in" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: tahoma"&gt;&lt;SPAN style="mso-list: ignore"&gt;&lt;FONT size=3&gt;b.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;FONT size=3&gt;In the Data Sources window, click Add New Data Source. &lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P style="LINE-HEIGHT: normal; TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; VERTICAL-ALIGN: middle; mso-list: l1 level1 lfo3; tab-stops: list .5in" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: tahoma"&gt;&lt;SPAN style="mso-list: ignore"&gt;&lt;FONT size=3&gt;c.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;FONT size=3&gt;On the Choose a Data Source Type page of the Data Source Configuration Wizard, click &lt;SPAN style="BACKGROUND: yellow; mso-highlight: yellow"&gt;Service&lt;/SPAN&gt;, and then click Next. The next page will be the Add Service Reference dialog box. Now you just do the same thing just as adding the service reference through Add Service Reference project menu. &lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/Blog1_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/Blog1_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=Blog1 border=0 alt=Blog1 src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/Blog1_thumb.jpg" width=511 height=401 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/Blog1_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;FONT size=3&gt;At the end of Add service reference or the Data Source Configuration Wizard, you will see the following in the data source window (for the example in &lt;A href="http://msdn.microsoft.com/en-us/library/cc668184.aspx" mce_href="http://msdn.microsoft.com/en-us/library/cc668184.aspx"&gt;the walkthrough&lt;/A&gt;). &lt;/FONT&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt 27pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;FONT size=3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/blog2_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/blog2_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=blog2 border=0 alt=blog2 src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/blog2_thumb.jpg" width=281 height=190 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/blog2_thumb.jpg"&gt;&lt;/A&gt; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;FONT size=3&gt;Even more, if you update the ADO.Net data service, e.g. adding Orders to the EDM, and update the service reference, the data source window will update accordingly as the example shown bellow.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;FONT size=3&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/blog3_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/blog3_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=blog3 border=0 alt=blog3 src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/blog3_thumb.jpg" width=295 height=162 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Improvementofthedatabindi.NetDataService_CC8F/blog3_thumb.jpg"&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;FONT size=3&gt;Cheers! &lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9640871" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Data+Binding/default.aspx">Data Binding</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/ADO.Net+Data+Services/default.aspx">ADO.Net Data Services</category></item><item><title>Visual Studio 2010 Data Resources to Chew On</title><link>http://blogs.msdn.com/vsdata/archive/2009/05/22/visual-studio-2010-data-resources-to-chew-on.aspx</link><pubDate>Fri, 22 May 2009 15:29:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9635292</guid><dc:creator>Beth Massi</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9635292.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9635292</wfw:commentRss><description>&lt;p&gt;Sine we released Visual Studio 2010 Beta 1 to the public on Wednesday (as &lt;a href="http://blogs.msdn.com/vsdata/archive/2009/05/20/visual-studio-2010-and-net-fx-4-beta1-publicly-available-today.aspx" target="_blank"&gt;Yang mentioned here&lt;/a&gt;) I thought it would be helpful to highlight some of the resources we have published to help you get started building business apps in your shiny copy of VS2010 Beta 1. Teams are really thirsty for feedback, so &lt;a href="http://social.msdn.microsoft.com/Forums/en-US/category/VSPreRelease,netdevelopmentprerelease,visualstudioprerelease,vstsprerelease" target="_blank"&gt;visit the Beta 1 forums and tell them what you think.&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;First, if you haven’t already, you’re going to need to &lt;a href="http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx" target="_blank"&gt;download the Beta&lt;/a&gt;. ;-) &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;&lt;a href="http://channel9.msdn.com/shows/10-4/10-4-Episode-20-Downloading-and-Installing-Visual-Studio-2010-Beta-1/"&gt;How to Download and Install the Beta&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Then check out these resources:&lt;/p&gt;  &lt;li&gt;&lt;strong&gt;&lt;a href="http://blogs.msdn.com/vsdata/archive/2009/05/20/wpf-data-binding-creating-a-master-details-form-in-visual-studio-2010.aspx" target="_blank"&gt;WPF Data Binding: Creating a Master-Details form in Visual Studio 2010&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;  &lt;li&gt;&lt;strong&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/wzabh8c4(VS.100).aspx" target="_blank"&gt;Accessing Data in Visual Studio&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;  &lt;li&gt;&lt;strong&gt;&lt;a href="http://go.microsoft.com/?linkid=9665216" target="_blank"&gt;Visual Studio 2010 and .NET Framework 4.0 Training Kit&lt;/a&gt; &lt;/strong&gt;&lt;/li&gt;  &lt;li&gt;&lt;strong&gt;&lt;a href="http://msdn.microsoft.com/en-us/vstudio/dd238515.aspx" target="_blank"&gt;Visual Studio 2010 Samples&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;  &lt;p&gt;Also, we &lt;a href="http://channel9.msdn.com/posts/funkyonex/How-We-Do-It-Building-the-Visual-Studio-Product-Line/" target="_blank"&gt;just posted a Channel 9 interview&lt;/a&gt; with &lt;a href="http://blogs.msdn.com/vbteam/archive/tags/Matt+Gertz/default.aspx" target="_blank"&gt;Matt Gertz&lt;/a&gt;, the guy in charge or coordinating the Visual Studio build. He explains how the build and test processes work here in DevDiv and I have to say it’s very impressive. He also talks about some of his favorite Visual Studio 2010 features. &lt;/p&gt;  &lt;p&gt;In the coming weeks, the team here will be posting more about Visual Studio tools so make sure to &lt;a href="http://blogs.msdn.com/vsdata/rss.xml" target="_blank"&gt;subscribe to the feed&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;Enjoy,   &lt;br /&gt;-&lt;a href="http://blogs.msdn.com/bethmassi" target="_blank"&gt;Beth Massi&lt;/a&gt;, Visual Studio Community&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9635292" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Data+Binding/default.aspx">Data Binding</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Entity+Framework/default.aspx">Entity Framework</category></item><item><title>WPF Data Binding: Creating a Master-Details form in Visual Studio 2010</title><link>http://blogs.msdn.com/vsdata/archive/2009/05/20/wpf-data-binding-creating-a-master-details-form-in-visual-studio-2010.aspx</link><pubDate>Wed, 20 May 2009 17:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9632501</guid><dc:creator>MilindLele</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9632501.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9632501</wfw:commentRss><description>&lt;P&gt;&lt;FONT color=#000000 size=2 face=Verdana&gt;Visual Studio 2010 Beta is released. Late last year we had released a Community Technology Preview (CTP) of VS2010. At that time I had written about some improvements to the data binding improvements for WPF. The Beta has many more and we will discuss them on this blog in a series of posts. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2 face=Verdana&gt;In &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/vsdata/archive/2008/11/08/drag-drop-data-binding-for-wpf-by-milind-lele.aspx" mce_href="http://blogs.msdn.com/vsdata/archive/2008/11/08/drag-drop-data-binding-for-wpf-by-milind-lele.aspx"&gt;&lt;FONT size=2 face=Verdana&gt;my blog post last November&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2 face=Verdana&gt; I wrote about the newly added support for drag-drop data binding for WPF and that, like DataSets, EDM is one of the data sources supported by the data sources window. This post is about building a master-details form in WPF against an Entity Data Model. We will talk about the user experience, but more importantly about what code/XAML gets generated – at least the aspects that are relevant to master-details data binding.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;The experience is very similar to WinForms over DataSets. Let us take the example of two tables: Customers and their Orders and create a form that lists the names of customers and for each customer, their orders.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;As described in my earlier post, we can add an EDM to our WPF project and have it contain the two corresponding entities.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_2.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_2.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_thumb.png" width=296 height=216 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;Here’s what you would see in the data sources window:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_4.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_4.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_thumb_1.png" width=138 height=263 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_thumb_1.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;Here is how we can create the master details form:&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size=2 face=Verdana&gt;From the &lt;/FONT&gt;&lt;FONT size=2 face=Verdana&gt;tool box drag-drop a ListBox onto the form.&lt;/FONT&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;FONT size=2 face=Verdana&gt;From the data sources window drag-drop the&amp;nbsp;LastName column of Customer entity&amp;nbsp;onto the ListBox&lt;/FONT&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;FONT size=2 face=Verdana&gt;Drag-drop the Order Entity from &lt;EM&gt;under the Customer&lt;/EM&gt; node beside the ListBox on the form.&lt;/FONT&gt; &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;That’s it, really. You can press F5 to run the application and you will see your basic master-details form working. The customers list box will show a list of customer names and for the selected name the orders DataGrid will show their orders.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_6.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_6.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_thumb_2.png" width=376 height=306 mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/WPFDataBindingCreatingaMasterDetailsform_8BF4/image_thumb_2.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;First, if you look at the XAML that gets generated, under Windows.Resources you will find two CollectionViewSource entries: One for Customers and one for Orders. These serve as the binding components (like the BindingSource objects in WinForms).&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;FONT size=2 face="Courier New"&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;CollectionViewSource&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; x&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;Key&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="CustomersViewSource__OMSEntities"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; d&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;DesignSource&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="{&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;d&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;DesignInstance&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; my&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;Customer&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; CreateList&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;=True}" /&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;CollectionViewSource&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; x&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;Key&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="CustomersOrdersViewSource"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; Source&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;="{&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;Binding&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; Path&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;=Orders,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; Source&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;={&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;StaticResource&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt;&lt;FONT color=#ff0000 size=2 face=Consolas&gt; CustomersViewSource__OMSEntities&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;}}" /&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;But note that the source for the CustomersViewSource__OMSEntities is the Customer entity, where as the source for CustomersOrdersViewSource is the CustomersViewSource__OMSEntities. Thus there is a master-details relationship between the two CollectionViewSouce objects. Now &lt;/FONT&gt;&lt;FONT size=2 face=Verdana&gt;customer list is bound to CustomersViewSource__OMSEntities and the orders DataGrid is bound to CollectionViewSouce.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;One more thing: We set the IsSynchronizedWithCurrentItem property of the customers list box to True. That way every time you change the selection in the listbox the current item in the CollectionViewSource is updated.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;Second, if you look at the code behind the form, you will find that code to load the data for the entities is generated in the form’s Loaded event handler. In this code we build the object query for Customers and their orders, execute the query and assign the results to the source property of the CollectionViewSource of the Customers entity.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;We construct the query in the GetCustomersQuery method. The basic query that loads customers and their objects is:&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;FONT size=2 face="Courier New"&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;
&lt;P&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; CustomersQuery &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; ObjectQuery(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;&lt;FONT color=#0000ff size=2 face=Consolas&gt;Of&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;&lt;FONT color=#2b91af size=2 face=Consolas&gt;Customer&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;) = OMSEntities.Customer.Include(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;&lt;FONT color=#a31515 size=2 face=Consolas&gt;"Orders"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2 face=Consolas&gt;&lt;FONT size=2 face=Consolas&gt;)&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size=2 face=Verdana&gt;However normally you would want to filter the query, and return only the subset of the results that are relevant. Modify the query in the GetCustomersQuery method to include your Where condition.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9632501" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Data+Binding/default.aspx">Data Binding</category><category domain="http://blogs.msdn.com/vsdata/archive/tags/Entity+Framework/default.aspx">Entity Framework</category></item><item><title>Visual Studio 2010 and .NET FX 4 Beta1 publicly available today</title><link>http://blogs.msdn.com/vsdata/archive/2009/05/20/visual-studio-2010-and-net-fx-4-beta1-publicly-available-today.aspx</link><pubDate>Wed, 20 May 2009 09:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9628037</guid><dc:creator>Yang Cao</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/vsdata/comments/9628037.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vsdata/commentrss.aspx?PostID=9628037</wfw:commentRss><description>&lt;p&gt;This Monday, we released Beta1 of Visual Studio 2010 and .NET FX 4 to &lt;a href="http://msdn.microsoft.com/subscriptions/downloads/default.aspx?pv=18:370" target="_blank" mce_href="http://msdn.microsoft.com/subscriptions/downloads/default.aspx?pv=18:370"&gt;MSDN subscribers&lt;/a&gt;. Today it is publicly available for the rest of the world! Please visit &lt;a href="http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx" target="_blank" mce_href="http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx"&gt;MSDN Beta1 Landing Page&lt;/a&gt; to download.&lt;/p&gt;  &lt;p&gt;The Beta1 release includes many interesting features. You might have already heard about some of them, and you could visit the &lt;a title="Visual Studio 2010 Product Page" href="http://www.microsoft.com/visualstudio/products/2010/default.mspx" mce_href="http://www.microsoft.com/visualstudio/products/2010/default.mspx"&gt;Visual Studio 2010 Product Page&lt;/a&gt; to learn more. I am personally very excited about this release and I’m using some of the new features in my daily life now.     &lt;br /&gt;Of course, I’m more excited about the new features we enabled for Business Application developers. &lt;a href="http://blogs.msdn.com/user/Profile.aspx?UserID=5314" target="_blank" mce_href="http://blogs.msdn.com/user/Profile.aspx?UserID=5314"&gt;Milind&lt;/a&gt; talked about &lt;a href="http://blogs.msdn.com/vsdata/archive/2008/11/08/drag-drop-data-binding-for-wpf-by-milind-lele.aspx" target="_blank" mce_href="http://blogs.msdn.com/vsdata/archive/2008/11/08/drag-drop-data-binding-for-wpf-by-milind-lele.aspx"&gt;Drag-Drop Data Binding For WPF&lt;/a&gt; before. That is the user scenario we enabled in the CTP. With the Beta1 release, we support not only Entity Data Model, but DataSet, ADO.NET Data Service, Generic Object, and WCF Service. You could find more resources on &lt;a href="http://msdn.microsoft.com/en-us/vstudio/dd441784.aspx" target="_blank" mce_href="http://msdn.microsoft.com/en-us/vstudio/dd441784.aspx"&gt;MSDN Beta1 Walkthrough Page&lt;/a&gt;. We will also write follow-up posts here, so please stay tuned!&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Visual.NETFX4Beta1publiclyavailabletoday_B3E0/image_6.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Visual.NETFX4Beta1publiclyavailabletoday_B3E0/image_thumb_2.png" width="399" height="379" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Besides the drag-drop data binding scenario, we also updated the &lt;strong&gt;Class Designer&lt;/strong&gt; to support new features in C# and VB languages, including Auto-Implemented Properties, Optional Parameters, and Dynamic Types.     &lt;br /&gt;&lt;a href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Visual.NETFX4Beta1publiclyavailabletoday_B3E0/image_4.png" mce_href="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Visual.NETFX4Beta1publiclyavailabletoday_B3E0/image_4.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Visual.NETFX4Beta1publiclyavailabletoday_B3E0/image_thumb_1.png" width="379" height="123" mce_src="http://blogs.msdn.com/blogfiles/vsdata/WindowsLiveWriter/Visual.NETFX4Beta1publiclyavailabletoday_B3E0/image_thumb_1.png" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;There is still a lot for us to do and your feedback is extremely valuable to us. We’d like to hear from you, so if you have feedback, please leave a comment on this blog, post your questions on &lt;a href="http://social.msdn.microsoft.com/Forums/en-US/category/VSPreRelease,netdevelopmentprerelease,visualstudioprerelease,vstsprerelease" target="_blank" mce_href="http://social.msdn.microsoft.com/Forums/en-US/category/VSPreRelease,netdevelopmentprerelease,visualstudioprerelease,vstsprerelease"&gt;the &lt;font color="#000000"&gt;Visual Studio 2010 &amp;amp; .NET Framework 4 Beta 1 Forums&lt;/font&gt;&lt;/a&gt;, log a bug or suggestion on &lt;a href="http://go.microsoft.com/fwlink/?LinkID=151484" target="_blank" mce_href="http://go.microsoft.com/fwlink/?LinkID=151484"&gt;Microsoft Connect Beta 1 Feedback Page&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9628037" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vsdata/archive/tags/VS2010/default.aspx">VS2010</category></item></channel></rss>