<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Scott&#039;s code and other ponderings... &#187; Silverlight</title>
	<atom:link href="http://www.scottleckie.com/category/silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottleckie.com</link>
	<description>...how hard can it be?...</description>
	<lastBuildDate>Fri, 23 Dec 2011 01:55:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Ahhh&#8230; the olden days&#8230; DialogBox, MessagePumps and the joy of HWNDs</title>
		<link>http://www.scottleckie.com/2010/06/ahhh-the-olden-days-dialogbox-messagepumps-and-the-joy-of-hwnds/</link>
		<comments>http://www.scottleckie.com/2010/06/ahhh-the-olden-days-dialogbox-messagepumps-and-the-joy-of-hwnds/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 23:57:22 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Win32 API]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=127</guid>
		<description><![CDATA[<p>How soon we forget. A few years ago, I weaned myself off of Visual C++ and MFC and toyed (briefly) with ASP.NET</p>
<p>Now, I&#39;m finally getting to grips with C#, .NET and CLR 4.0 and Silverlight.</p>
<p>And, all of a sudden, I&#39;m thrust back to 1996. Why? Because we need to write a GINA (Graphical Identification aNd Authentication) component as part of a password reset application.</p>
<p>So, here we are, with definitely no CLR (which rules out C# and CLR) and recommended against the MFC. So, we&#39;re literally back in the days of defining dialog boxes as a set of resource definitions, and copious calls to CreateWindow. And that&#39;s before we get to the single threaded message pump that is WndProc.</p>
<p>Couple all of that [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/06/ahhh-the-olden-days-dialogbox-messagepumps-and-the-joy-of-hwnds/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Complete Silverlight 4 training videos at channel9</title>
		<link>http://www.scottleckie.com/2010/05/complete-silverlight-4-training-videos-at-channel9/</link>
		<comments>http://www.scottleckie.com/2010/05/complete-silverlight-4-training-videos-at-channel9/#comments</comments>
		<pubDate>Sat, 01 May 2010 21:40:15 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=112</guid>
		<description><![CDATA[Excellent Silverlight 4 training session [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/05/complete-silverlight-4-training-videos-at-channel9/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Code 4004 &#8220;Unhandled error in silverlight application&#8221;</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/</link>
		<comments>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 23:30:11 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=104</guid>
		<description><![CDATA[<p>Edit; 26th May 2010; This is my most favorite post! Check out related Silverlight posts here&#8230;</p>
<p>Just getting started in Silverlight 4 WCF RIA Services (which is astonishing, by the way &#8211; check out Brad Abram&#39;s walkthrough here) but I was getting stuck at the validation part.</p>
<p>When I exercise the validation (you know, red bits in the browser because you&#39;re failing metadata requirements) and SubmitChanges, it was throwing up a horrible error;</p>
<p style="margin-left: 40px">An unhandled exception (&#39;Unhandled Error in Silverlight Application</p>
<p style="margin-left: 40px">Code: 4004</p>
<p style="margin-left: 40px">Category: ManagedRunTimError</p>
<p style="margin-left: 40px">Message: System.ServiceModel.DomainServices.Client.DomainException: And error occurred while submitting changes&#8230;</p>
<p>The only funny bit about this was the typo; &#34;And error occurred&#34;&#8230; The dialog is shown here;</p>
<p></p>
<p>&#160;</p>
<p>OK &#8211; I got an exception, let&#39;s debug&#8230; So, I click [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Silverlight 4 Technical Features Overview</title>
		<link>http://www.scottleckie.com/2010/04/silverlight-4-tech-features-overview/</link>
		<comments>http://www.scottleckie.com/2010/04/silverlight-4-tech-features-overview/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 22:23:56 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=97</guid>
		<description><![CDATA[




<p>John Papa and Adam Kinney have posted a &#34;Silverlight 4 Technical Features Overview&#34; on channel9 (15th April 2010). Goes into good detail about all of the new SL 4 features and gives lots of sample code.</p>
<p>&#160;</p>
<p>I&#39;m hoping to use this to finally figure out databound combo boxes&#8230;</p>
<p>Rush over and read / print the entire 75 pages at Channel9</p>
<p>Covers; Business Application Development, Silverlight Toolkit, MS SL 4 Tools for VS2010, WCF RIA Services, Richer UI design, Expression Blend, O-O-B (Sandboxed and Trusted apps), and [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/04/silverlight-4-tech-features-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;BindingExpression path error&#8221; when binding to a POCO</title>
		<link>http://www.scottleckie.com/2010/03/bindingexpression-path-error-when-binding-to-a-poco/</link>
		<comments>http://www.scottleckie.com/2010/03/bindingexpression-path-error-when-binding-to-a-poco/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 21:56:29 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=93</guid>
		<description><![CDATA[<p>I&#39;m passing a POCO to a Child Window, and the very first thing it needs to do is display a couple of properties from that object. So, I rattled off the basic code;</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160; private MachineCredentials machineCreds { get; set; }</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160; private BackupProviderType backupProvider { get; set; }</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160; public RemoteBrowser(MachineCredentials machineCreds, BackupProviderType backupProvider)</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.machineCreds = machineCreds;</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.backupProvider = [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/03/bindingexpression-path-error-when-binding-to-a-poco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 3; Building a navigation tree from static and dynamic data</title>
		<link>http://www.scottleckie.com/2009/10/silverlight-3-building-a-navigation-tree-from-static-and-dynamic-data/</link>
		<comments>http://www.scottleckie.com/2009/10/silverlight-3-building-a-navigation-tree-from-static-and-dynamic-data/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 00:06:00 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/2009/10/silverlight-3-building-a-navigation-tree-from-static-and-dynamic-data/</guid>
		<description><![CDATA[The problem
<p>Build a navigation tree that allows users to navigate to specific static pages, from static entries in the menus, and to pages that are built dynamically based on selections from the menu.</p>

The Solution in a picture
<p> </p>
The solution in code
<p>Build the static menu selections in xaml, being sure to name each of the major headings with “Tag” entries;</p>

&#60;Grid x:Name=&#34;LayoutRoot&#34;&#62;

        &#60;controls:TreeView x:Name=&#34;treeview&#34;
                        BorderThickness=&#34;0&#34; 
                        Margin=&#34;0&#34; 
   [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2009/10/silverlight-3-building-a-navigation-tree-from-static-and-dynamic-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 3 – Binding POCO objects to XAML</title>
		<link>http://www.scottleckie.com/2009/10/silverlight-3-%e2%80%93-binding-poco-objects-to-xaml/</link>
		<comments>http://www.scottleckie.com/2009/10/silverlight-3-%e2%80%93-binding-poco-objects-to-xaml/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 23:45:00 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/2009/10/silverlight-3-%e2%80%93-binding-poco-objects-to-xaml/</guid>
		<description><![CDATA[<p>Obvious, really, but I spent ages chasing down how to bind some kind of POCO to a XAML display;</p>

  &#60;Grid x:Name=&#34;LayoutRoot&#34;&#62;

        &#60;Grid.RowDefinitions&#62;
            &#60;RowDefinition Height=&#34;300&#34; /&#62;
            &#60;RowDefinition Height=&#34;auto&#34; /&#62;
            &#60;RowDefinition Height=&#34;auto&#34; /&#62;
            &#60;RowDefinition Height=&#34;auto&#34;/&#62;
            &#60;RowDefinition Height=&#34;auto&#34;/&#62;
        &#60;/Grid.RowDefinitions&#62;
        &#60;Grid.ColumnDefinitions&#62;
        [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2009/10/silverlight-3-%e2%80%93-binding-poco-objects-to-xaml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 3 – handling exceptions in page views</title>
		<link>http://www.scottleckie.com/2009/10/silverlight-3-%e2%80%93-handling-exceptions-in-page-views/</link>
		<comments>http://www.scottleckie.com/2009/10/silverlight-3-%e2%80%93-handling-exceptions-in-page-views/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 23:40:00 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/2009/10/silverlight-3-%e2%80%93-handling-exceptions-in-page-views/</guid>
		<description><![CDATA[<p>How do you handle the situation where your new Silverlight page needs to shout a warning or error, and then die? No idea, but this is how I do it…</p>
<p>Originally, I was quite scared of my Silverlight pages throwing an exception and then I realised that this was just another object and if we throw an exception, hopefully let the user know, and bail out, then that’s fine.</p>
<p>So the pattern I am now working with is this;</p>

Constructor – set up the load operations
Page_Loaded events – bind the XAML objects to the retrieved data

On any error; display a meaningful message, in a semi-modal window
Navigate back to a safe place (e.g. /home)


<p>What do I mean by “semi-modal”? Well, from the user’s perspective, it [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2009/10/silverlight-3-%e2%80%93-handling-exceptions-in-page-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight 3 Navigation – navigating from a UserControl</title>
		<link>http://www.scottleckie.com/2009/10/silverlight-3-navigation-%e2%80%93-navigating-from-a-usercontrol/</link>
		<comments>http://www.scottleckie.com/2009/10/silverlight-3-navigation-%e2%80%93-navigating-from-a-usercontrol/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 23:23:00 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/2009/10/silverlight-3-navigation-%e2%80%93-navigating-from-a-usercontrol/</guid>
		<description><![CDATA[<p>I’ve been toying with Silverlight over the last couple of weeks and, I have to say, it’s much more complete than ASP.Net ever was (**). Lots of new paradigms to get my head around, of course, but overall it’s a very complete solution for an RIA.</p>
<p>Anyway, to the point of this posting; the new (in Silverlight 3.0) Navigation Framework is great; it allows you to present a common interface and have new pages display in a know part of the browser window, supports browser back/forward, and URL rewrites. See here for more information.</p>
<p>If you are inside a page that is controlled by the framework, then you are able to call on the NavigationService.Navigate method to divert control to a new XAML [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2009/10/silverlight-3-navigation-%e2%80%93-navigating-from-a-usercontrol/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

