<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0"><channel><title>Mike Taulty's Blog</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/default.aspx</link><description>Bits and Bytes from Microsoft UK</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Debug Build: 40407.4157)</generator><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/mtaulty" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>Debugging Silverlight Out-Of-Browser Applications</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/21/debugging-silverlight-out-of-browser-applications.aspx</link><pubDate>Sat, 21 Nov 2009 10:48:56 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11801</guid><dc:creator>mtaulty</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11801</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11801</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/21/debugging-silverlight-out-of-browser-applications.aspx#comments</comments><description>I was watching Joe Stegman’s talk at PDC09 about “ Improving and Extending the Silverlight 4 Sandbox ” and I learnt something that I felt I really should have known already and had a bit of a “D’oh!” moment but I’m not too proud to share my ignorance. You probably know this already but… If you’re working with a Silverlight out-of-browser application project in VS ( 2008 Sp1 or 2010 ) – i.e. if you’ve done at least the following steps; then your application will spring up and you’ll hit your breakpoint. However, if you now take that application out-of-browser; then you’re breakpoint won’t hit because VS thinks you want to debug Silverlight code in the browser and doesn’t realise that you want to debug Silverlight code inside of SLLauncher.exe which provides the hosting for out-of-browser Silverlight apps. Now, up until seeing Joe’s talk I’ve been getting around this by manually changing my settings to cause the debugger to launch SLLauncher with the right parameters for my SLOOB and asking to debug Silverlight...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/21/debugging-silverlight-out-of-browser-applications.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11801" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/255agqTChkA" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: Managed Extensibility Framework</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-managed-extensibility-framework.aspx</link><pubDate>Wed, 18 Nov 2009 20:30:53 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11758</guid><dc:creator>mtaulty</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11758</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11758</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-managed-extensibility-framework.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. &amp;#160; The Managed Extensibility Framework (MEF) has been getting a lot of interest lately and it’s something that’s out on CodePlex and it’s also part of .NET Framework 4.0. It’s also part of Silverlight 4. The name’s a good one – it’s a framework for building an application that is made up of a bunch of loosely coupled components with a lot of flexibility around component discovery, registration, lookup and lifetime management. If I had to sum it up in my own words I’d say something like; MEF composes an application by extensibly discovering a set of components which offer exported functionality and ( possibly ) rely on imported functionality. The link between the two is a simple string name ( a MEF “contract...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-managed-extensibility-framework.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11758" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/jheoQHrYW8U" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: Viewbox</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-viewbox.aspx</link><pubDate>Wed, 18 Nov 2009 20:24:34 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11757</guid><dc:creator>mtaulty</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11757</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11757</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-viewbox.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. Viewbox is pretty well understood – it’s been around in WPF since version 1 and it’s also part of the Silverlight Toolkit. In the current Silverlight 4 preview it’s also back in the platform. The essential idea of the Viewbox is to scale its child content to fill the space that the Viewbox itself is occupying. I’ve always found this useful for situations where I’ve got content that I’ve organised at a fixed size and I simply want to scale that up/down rather than trying to do some dynamic layout with the content. If I’ve got a simple UI such as; &amp;lt;UserControl x:Class=&amp;quot;SilverlightApplication11.MainPage&amp;quot; xmlns=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot; xmlns:x=&amp;quot;http...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-viewbox.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11757" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/Wc0uWkpqrDE" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: CompositeTransform</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-compositetransform.aspx</link><pubDate>Wed, 18 Nov 2009 20:23:30 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11756</guid><dc:creator>mtaulty</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11756</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11756</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-compositetransform.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. A short one – Silverlight 4 has a new CompositeTransform class that you can use for your RenderTransform values – it looks like; and the transformations run scale-&amp;gt;skew-&amp;gt;rotate-&amp;gt;translate – really this just saves you having to use separate ScaleTransform, SkewTransform, RotateTransform and TranslateTransform so saves on the length of XAML....(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-compositetransform.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11756" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/nu76nqm-Ero" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: TextBlock with Trimming</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-textblock-with-trimming.aspx</link><pubDate>Wed, 18 Nov 2009 20:22:40 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11755</guid><dc:creator>mtaulty</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11755</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11755</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-textblock-with-trimming.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. A simple new feature in Silverlight 4 – if you have a TextBlock where the text overflows the space available then you can set the TextTrimming property; &amp;lt;TextBlock Text=&amp;quot;The quick brown fox jumps over the lazy dog&amp;quot; TextTrimming=&amp;quot;WordEllipsis&amp;quot; /&amp;gt; with the effect that as I resize the browser window ( in this case ); it displays the familiar “…” to indicate that there’s more text that is revealed if I give the text more space....(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-textblock-with-trimming.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11755" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/NqYUdtxpkYw" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: Mousewheel Support in Controls</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-mousewheel-support-in-controls.aspx</link><pubDate>Wed, 18 Nov 2009 20:21:49 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11754</guid><dc:creator>mtaulty</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11754</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11754</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-mousewheel-support-in-controls.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. Silverlight 3 added support for the MouseWheel event and it is present on the UIElement class. However, the controls in Silverlight don’t generally respond well to mouse wheel events whereas in Silverlight 4 you should expect to see controls doing the right thing in response to the mousewheel. As an example, here’s a quick ListBox; &amp;lt;UserControl x:Class=&amp;quot;SilverlightApplication30.MainPage&amp;quot; xmlns=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot; xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot; xmlns:d=&amp;quot;http://schemas.microsoft.com/expression/blend/2008&amp;quot; xmlns:mc=&amp;quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot; mc:Ignorable=&amp;quot;d&amp;quot;...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-mousewheel-support-in-controls.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11754" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/sOcRHEanVRk" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: SelectedValue</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-selectedvalue.aspx</link><pubDate>Wed, 18 Nov 2009 20:20:48 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11753</guid><dc:creator>mtaulty</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11753</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11753</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-selectedvalue.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. In Silverlight today Selector controls like the ComboBox and ListBox are lacking a couple of crucial properties from the WPF world – the SelectedValue and SelectedValuePath properties. This is a little painful – you can see examples of people working around it here and I’ve hacked around with that approach myself in the past. So, it’s great to see these show up in Silverlight 4. As a quick illustration, imagine I’ve got this Person class; public class Person { public string FirstName { get; set; } public string LastName { get; set; } public int CountryId { get; set; } } and that CountryId is really a foreign key into a lookup table of countries represented for me here by these classes; public class Country ...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-selectedvalue.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11753" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/f-HEgVRy62o" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: Taking Control of Navigation</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-taking-control-of-navigation.aspx</link><pubDate>Wed, 18 Nov 2009 20:11:13 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11751</guid><dc:creator>mtaulty</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11751</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11751</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-taking-control-of-navigation.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. Silverlight 3 introduced a new navigation style of application where a Silverlight application is structured out of a set of Pages which are displayed by a Frame that navigates to those pages ( by changing its Uri Source property to point at a specific page ). This is underpinned by a NavigationService which supports the idea of navigating forward/backwards and the functionality also integrates with the browser’s history and address bar. As pages are navigated to there’s a nice overload where they can run code and ( e.g. ) interrogate the query string to grab parameters from it. It means that a Silverlight application can behave exactly like the rest of the web with forward/backward navigation and can offer...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-taking-control-of-navigation.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11751" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/4b_Hn81OZ8s" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: Data Grid Enhancements</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-data-grid-enhancements.aspx</link><pubDate>Wed, 18 Nov 2009 20:08:15 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11750</guid><dc:creator>mtaulty</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11750</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11750</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-data-grid-enhancements.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. A lot of data is presented in grids and that’s especially true in business applications and so the presence of the DataGrid control in Silverlight is really important. In Silverlight 4, the DataGrid gets a few enhancements – mostly easy to understand but important to have. Sizing of DataGrid Columns When you’re working with a Silverlight 4 DataGrid, you’ll find new options for the Width of a column as the editor shows below; So we can use settings like “ *” settings in order to size header columns and if I’ve got a definition such as; &amp;lt;data:DataGrid AutoGenerateColumns=&amp;quot;False&amp;quot;&amp;gt; &amp;lt;data:DataGrid.Columns&amp;gt; &amp;lt;data:DataGridTextColumn Header=&amp;quot;One&amp;quot; Width=&amp;quot;Auto&amp;quot; /&amp;gt; &amp;lt;data...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-data-grid-enhancements.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11750" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/Zclz0FAs6sQ" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: HTML interop &amp; dynamic language features</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-html-interop-amp-dynamic-language-features.aspx</link><pubDate>Wed, 18 Nov 2009 20:06:48 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11749</guid><dc:creator>mtaulty</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11749</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11749</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-html-interop-amp-dynamic-language-features.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. With Silverlight 4 comes C# 4 and VB 10 and some of the new capabilities around being able to do dynamic dispatch. As in the full .NET framework that means that you can use new ways to invoke methods/properties/events at runtime via dynamic dispatch into objects either via; reflection COM interop some custom mechanism – i.e. the dynamic support is pluggable There’s a custom implementation in Silverlight 4 around dynamic invocation into the HTML DOM’s types. Since version 2, Silverlight has had a very strong story around integration with the HTML DOM and you can do all kinds of interoperability between the Silverlight world and the HTML world including manipulating the UI’s of the 2 worlds from their 2 programming...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-html-interop-amp-dynamic-language-features.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11749" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/gfe_y4Aiy3M" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: Animating Items Into/Out Of ItemsControls</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-animating-items-into-out-of-itemscontrols.aspx</link><pubDate>Wed, 18 Nov 2009 20:04:15 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11748</guid><dc:creator>mtaulty</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11748</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11748</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-animating-items-into-out-of-itemscontrols.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. If you’re very sharp-eyed you might spot that the default ControlTemplate for a ListBoxItem has changed to include a new VSM state group called LayoutStates and that group includes states called BeforeLoaded, Loaded and Unloaded . These allow you to apply transitions to items as they are added and removed from a ListBox ( or, perhaps more generally an ItemsControl but I haven’t quite figured that out at the time of writing ). So, for instance – if I take the standard ListBoxItem template from Silverlight 3 ; &amp;lt;Style TargetType=&amp;quot;ListBoxItem&amp;quot;&amp;gt; &amp;lt;Setter Property=&amp;quot;Padding&amp;quot; Value=&amp;quot;3&amp;quot; /&amp;gt; &amp;lt;Setter Property=&amp;quot;HorizontalContentAlignment&amp;quot; Value=&amp;quot;Left&amp;quot; /&amp;gt;...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-animating-items-into-out-of-itemscontrols.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11748" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/AkJvqBIdASI" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: Customising the Window</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-customising-the-window.aspx</link><pubDate>Wed, 18 Nov 2009 20:01:22 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11747</guid><dc:creator>mtaulty</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11747</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11747</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-customising-the-window.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. For an out-of-browser Silverlight 4 application, you can take more control around the Window that presents your application. Firstly, by changing the XML manifest you can control where the Window positions itself on the screen, for example; &amp;lt;OutOfBrowserSettings ShortName=&amp;quot;SilverlightApplication24 Application&amp;quot; EnableGPUAcceleration=&amp;quot;False&amp;quot; ShowInstallMenuItem=&amp;quot;True&amp;quot;&amp;gt; &amp;lt;OutOfBrowserSettings.Blurb&amp;gt;SilverlightApplication24 Application on your desktop; at home, at work or on the go.&amp;lt;/OutOfBrowserSettings.Blurb&amp;gt; &amp;lt;OutOfBrowserSettings.WindowSettings&amp;gt; &amp;lt;WindowSettings Title=&amp;quot;SilverlightApplication24 Application&amp;quot; WindowStartupLocation=&amp;quot;Manual&amp;quot;...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-customising-the-window.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11747" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/5VwpQHg3RDc" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: Commanding</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-commanding.aspx</link><pubDate>Wed, 18 Nov 2009 20:00:28 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11745</guid><dc:creator>mtaulty</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11745</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11745</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-commanding.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. WPF has tended to have more features than Silverlight around Commanding . The basic idea of commanding is just that a piece of UI fires some logical command rather than invoking some event handler directly. That’s nice as it means that you can easily have multiple pieces of UI firing the same command and it also lets you take the handling of the command away from the piece of UI that invokved it. A quick example; The user interface displays a button “Save” and a menu option “File-&amp;gt;Save”. These both need to be disabled when the document state is not dirty and they both need to be handled by a common routine on the Document class called Save . Commanding makes that possible. In WPF you can do this kind of thing...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-commanding.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11745" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/ACVCfokDzFY" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: Styles</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-styles.aspx</link><pubDate>Wed, 18 Nov 2009 19:59:17 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11744</guid><dc:creator>mtaulty</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11744</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11744</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-styles.aspx#comments</comments><description>Note – these posts are put together after a short time with Silverlight 4 as a way of providing pointers to some of the new features that Silverlight 4 has to offer. I’m posting these from the PDC as Silverlight 4 is announced for the first time so please bear that in mind when working through these posts. There are some new additions around Styles when it comes to Silverlight 4. As in WPF, it’s now possible to style all controls of a particular type. For example, all buttons in one of these grids will be Blue whereas all buttons in the other will be red; &amp;lt;UserControl x:Class=&amp;quot;SilverlightApplication14.MainPage&amp;quot; xmlns=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot; xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot; xmlns:d=&amp;quot;http://schemas.microsoft.com/expression/blend/2008&amp;quot; xmlns:mc=&amp;quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot; mc:Ignorable=&amp;quot;d&amp;quot; d:DesignHeight=&amp;quot;300&amp;quot; d:DesignWidth=&amp;quot;400&amp;quot;&amp;gt; &amp;lt;StackPanel...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-styles.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11744" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/ZMSBM_harKE" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 4 Rough Notes: A Word for Visual Studio 2010</title><link>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-a-word-for-visual-studio-2010.aspx</link><pubDate>Wed, 18 Nov 2009 19:56:45 GMT</pubDate><guid isPermaLink="false">c62f47b3-9054-4265-9c0c-549d811810c2:11743</guid><dc:creator>mtaulty</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/rsscomments.aspx?PostID=11743</wfw:commentRss><wfw:comment>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/commentapi.aspx?PostID=11743</wfw:comment><comments>http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-a-word-for-visual-studio-2010.aspx#comments</comments><description>It’s easy to forget how different the editing experience for Silverlight applications is in Visual Studio 2010 over and above what we had in Visual Studio 2008 Sp1. This isn’t necessarily Silverlight 4 specific but I suspect a lot of people coming to the Silverlight 4 bits will be doing Silverlight in VS 2010 for the first time so I thought a few things were worth pointing out. Firstly, there’s multi-targeting. Visual Studio 2010 is the first version of Visual Studio to support building applications for multiple versions of Silverlight ( namely V3 and V4 ). Note that a user ( or developer ) can only have one version of the Silverlight runtime installed so you’d still need to have multiple machines or VPCs in order to test on Silverlight 3 and/or Silverlight 4 but you can explicitly choose which version you’re targeting in the IDE at build time. If you’re doing this you need to be aware that when you create a project you need to ignore the .NET Framework setting on the New Project dialog; and, instead, on the ...(&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-a-word-for-visual-studio-2010.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://mtaulty.com/CommunityServer/aggbug.aspx?PostID=11743" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/mtaulty/~4/Sr2VfDiwoG4" height="1" width="1"/&gt;</description><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/.NET/default.aspx">.NET</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Silverlight/default.aspx">Silverlight</category><category domain="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item></channel></rss>
