<?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>BenkoBLOG : Demo Code</title><link>http://blogs.msdn.com/benko/archive/tags/Demo+Code/default.aspx</link><description>Tags: Demo Code</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MSDN Unleashed Code is Posted!</title><link>http://blogs.msdn.com/benko/archive/2009/05/21/msdn-unleashed-code-is-posted.aspx</link><pubDate>Fri, 22 May 2009 01:02:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9634403</guid><dc:creator>benko</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benko/comments/9634403.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benko/commentrss.aspx?PostID=9634403</wfw:commentRss><wfw:comment>http://blogs.msdn.com/benko/rsscomments.aspx?PostID=9634403</wfw:comment><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.benkotips.com/btlod"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="image" border="0" alt="image" align="right" src="http://blogs.msdn.com/blogfiles/benko/WindowsLiveWriter/MSDNUnleashedLinks_6A6C/image_3.png" width="244" height="221" /&gt;&lt;/a&gt;I’ve uploaded the code from this quarter’s MSDN events to &lt;a href="http://www.benkotips.com/code"&gt;http://www.benkotips.com/code&lt;/a&gt;. If you’re interested here’s the links from this quarter’s session on IE8 …&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a title="http://msdn.microsoft.com/en-us/library/cc196992(VS.85).aspx" href="http://msdn.microsoft.com/en-us/library/cc196992(VS.85).aspx"&gt;MSDN: Subscribing to content with Web Slices&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;Official IE team blog &lt;a href="http://blogs.msdn.com/ie"&gt;blogs.msdn.com/&lt;/a&gt;&lt;a href="http://blogs.msdn.com/ie"&gt;ie&lt;/a&gt;&amp;#160; &lt;/li&gt;    &lt;li&gt;IE developer center &lt;a href="http://msdn.com/ie"&gt;msdn.Com&lt;/a&gt;&lt;a href="http://msdn.com/ie"&gt;/&lt;/a&gt;&lt;a href="http://msdn.com/ie"&gt;ie&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;IE compatibility center&lt;a href="http://blogs.msdn.com/Giorgio"&gt; &lt;/a&gt;&amp;#160;&lt;a href="http://msdn.com/iecompat"&gt;msdn.Com&lt;/a&gt;&lt;a href="http://msdn.com/iecompat"&gt;/&lt;/a&gt;&lt;a href="http://msdn.com/iecompat"&gt;iecompat&lt;/a&gt;&amp;#160; &lt;/li&gt;    &lt;li&gt;MIX09 &lt;a href="http://sessions.visitmix.com/"&gt;sessions.visitmix.com&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;Giorgio Sardo’s blog&amp;#160; &lt;a href="http://blogs.msdn.com/Giorgio"&gt;blogs.msdn.com/Giorgio&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;…and Win7 for Developers…&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Windows 7 Engineering Blog&amp;#160; &lt;a href="http://blogs.msdn.com/e7"&gt;http://blogs.msdn.com/e7&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Windows 7 for Developers Blog&amp;#160; &lt;a href="http://windowsteamblog.com/blogs/developers/default.aspx"&gt;http://windowsteamblog.com/blogs/developers/default.aspx&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;MSDN Windows Developer Center&amp;#160; &lt;a href="http://msdn.microsoft.com/windows"&gt;http://msdn.microsoft.com/windows&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Channel 9&amp;#160; &lt;a href="http://channel9.msdn.com/tags/Windows+7"&gt;http://channel9.msdn.com/tags/Windows+7&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Windows 7 Taskbar: Developer Resources&amp;#160; &lt;a href="http://code.msdn.microsoft.com/Windows7Taskbar"&gt;http://code.msdn.microsoft.com/Windows7Taskbar&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Windows Ribbon Framework: Developer Resources&amp;#160; &lt;a href="http://code.msdn.microsoft.com/ScenicRibbon"&gt;http://code.msdn.microsoft.com/ScenicRibbon&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9634403" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benko/archive/tags/MSDN+Events/default.aspx">MSDN Events</category><category domain="http://blogs.msdn.com/benko/archive/tags/Demo+Code/default.aspx">Demo Code</category></item><item><title>WPF Toolkit Webcast</title><link>http://blogs.msdn.com/benko/archive/2009/02/25/wpf-toolkit-webcast.aspx</link><pubDate>Thu, 26 Feb 2009 01:46:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9444694</guid><dc:creator>benko</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/benko/comments/9444694.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benko/commentrss.aspx?PostID=9444694</wfw:commentRss><wfw:comment>http://blogs.msdn.com/benko/rsscomments.aspx?PostID=9444694</wfw:comment><description>&lt;p&gt;&lt;a href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032402669&amp;amp;EventCategory=5&amp;amp;culture=en-US&amp;amp;CountryCode=US"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="227" alt="image" src="http://blogs.msdn.com/blogfiles/benko/WindowsLiveWriter/WPFToolkitWebcast_EB9C/image_3.png" width="244" align="right" border="0" /&gt;&lt;/a&gt; In this week's edition of &lt;a href="http://www.benkotips.com/btlod"&gt;BenkoTips Live &amp;amp; On Demand&lt;/a&gt; we talked about the WPF Toolkit and the Office Ribbon UI. We covered a lot of material and wrote a lot of code. To help out I'm providing a link here to both the &lt;a href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032402669&amp;amp;EventCategory=5&amp;amp;culture=en-US&amp;amp;CountryCode=US"&gt;webcast&lt;/a&gt; and the &lt;a href="http://www.benkotips.com/code"&gt;code&lt;/a&gt; so you can try it out. As usual there were a few links of interest that may help you get going including:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a title="http://www.codeplex.com/wpf" href="http://www.codeplex.com/wpf"&gt;WPF Toolkit Project on CodePlex&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/officeui"&gt;Office UI Licensing Site&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a title="http://windowsclient.net/wpf/" href="http://windowsclient.net/wpf/"&gt;Windows Client.NET Site&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a title="http://www.codeplex.com/wpf/Wiki/View.aspx?title=Southridge%20Lab&amp;amp;referringTitle=Home" href="http://www.codeplex.com/wpf/Wiki/View.aspx?title=Southridge%20Lab&amp;amp;referringTitle=Home"&gt;Build it yourself with Southridge Demo Hands on Lab&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/express"&gt;SQL Express&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;img height="1" src="http://www.myworldmaps.net/map.ashx/ccb5f65c-5393-49bf-854d-3ed48c56598e/ping" width="1" /&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9444694" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benko/archive/tags/BenkoTIPS/default.aspx">BenkoTIPS</category><category domain="http://blogs.msdn.com/benko/archive/tags/Code/default.aspx">Code</category><category domain="http://blogs.msdn.com/benko/archive/tags/Demo+Code/default.aspx">Demo Code</category><category domain="http://blogs.msdn.com/benko/archive/tags/WPF/default.aspx">WPF</category></item><item><title>That LINQ Error...</title><link>http://blogs.msdn.com/benko/archive/2009/01/07/that-linq-error.aspx</link><pubDate>Thu, 08 Jan 2009 01:33:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9290801</guid><dc:creator>benko</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benko/comments/9290801.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benko/commentrss.aspx?PostID=9290801</wfw:commentRss><wfw:comment>http://blogs.msdn.com/benko/rsscomments.aspx?PostID=9290801</wfw:comment><description>&lt;p&gt;In today's webcast on LINQ in C# we looked at joining XML data with SQL Server and we got the error &amp;quot;&lt;i&gt;Local sequence cannot be used in LINQ to SQL implementation of query operators except the Contains() operator&lt;/i&gt;&amp;quot; when we tried to run it. Looking deeper into what happened, it appears that the order in which collections are joined in LINQ is important. The original code looked like this:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/benko/WindowsLiveWriter/ThatLINQError_E8BA/image_2.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="389" alt="image" src="http://blogs.msdn.com/blogfiles/benko/WindowsLiveWriter/ThatLINQError_E8BA/image_thumb.png" width="514" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;What I found is that we need to specify that we're working with the XML resultset v in venues first and then join to e in events...basically reverse the order that the joined set linqs the two:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/benko/WindowsLiveWriter/ThatLINQError_E8BA/image_4.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="80" alt="image" src="http://blogs.msdn.com/blogfiles/benko/WindowsLiveWriter/ThatLINQError_E8BA/image_thumb_1.png" width="527" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;span style="font-size: 10pt; font-family: " yes?="yes?" mso-no-proof:="mso-no-proof:" Roman?;="Roman?;" New="New" ?Times="?Times" mso-bidi-font-family:="mso-bidi-font-family:" console?;="console?;" lucida="lucida"&gt;Weird...&lt;/span&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9290801" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benko/archive/tags/BenkoTIPS/default.aspx">BenkoTIPS</category><category domain="http://blogs.msdn.com/benko/archive/tags/Webcasts/default.aspx">Webcasts</category><category domain="http://blogs.msdn.com/benko/archive/tags/LINQ/default.aspx">LINQ</category><category domain="http://blogs.msdn.com/benko/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/benko/archive/tags/Demo+Code/default.aspx">Demo Code</category></item><item><title>Twin Cities Silverlight Demo Code posted!</title><link>http://blogs.msdn.com/benko/archive/2008/11/19/twin-cities-silverlight-demo-code-posted.aspx</link><pubDate>Wed, 19 Nov 2008 17:28:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9124302</guid><dc:creator>benko</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benko/comments/9124302.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benko/commentrss.aspx?PostID=9124302</wfw:commentRss><wfw:comment>http://blogs.msdn.com/benko/rsscomments.aspx?PostID=9124302</wfw:comment><description>&lt;p&gt;Thank you to everyone that joined me yesterday in Minneapolis at the Silverlight User Group. The demo code we wrote is up on the site &amp;amp; ready for download...the code from the Linq to Amazon to WPF to Silverlight for both the book finder as well as the flipper is available.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9124302" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benko/archive/tags/User+Groups/default.aspx">User Groups</category><category domain="http://blogs.msdn.com/benko/archive/tags/Demo+Code/default.aspx">Demo Code</category></item></channel></rss>