<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://wpf.netfx3.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>WPF Community Bloggers</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Debug Build: 61025.2)</generator><item><title>SQL Server 08 Get It While It's Hot</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/07/sql-server-08-get-it-while-it-s-hot.aspx</link><pubDate>Thu, 07 Aug 2008 06:18:00 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20866</guid><dc:creator>Brownie Points</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20866.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20866</wfw:commentRss><description>The final piece of the 2008 Launch, SQL Server 2008 (formerly known as Katmai), has finally gone Gold. For those with an MSDN subscription, you can download the bits now on subscriber downloads. I'm not the person to ask for a full-blown tour of Katmai, but some of the features that have had my radar pinging include: Spatial Data : With native support for geographic data, SQL 2008 provides a powerful platform for storing and retrieving your data based on location. Separate Date and Time Data Types : If you're only concerned about a date, you no longer have to store it as August 6, 2008 12:00:00.00 AM. Likewise if you're only concerned about a given time (for instance if you want a recurring appointment to happen every day at 10:00 AM), you no longer are burdened with specifying a date in addition. Table Value Parameters : Table value parameters allow you to pass a table of data into a stored procedure. While you could emulate the same effect using XML in SQL Server 2005, native support...(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/07/sql-server-08-get-it-while-it-s-hot.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20866" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/Microsoft+Development/default.aspx">Microsoft Development</category></item><item><title>Write your own NUnit constraint (in VB) - Part 2</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/06/write-your-own-nunit-constraint-in-vb-part-2.aspx</link><pubDate>Wed, 06 Aug 2008 11:35:00 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20845</guid><dc:creator>Andrew Stopford&amp;#39;s Weblog</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20845.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20845</wfw:commentRss><description>So in part 1 we created our own constraint and want some of that syntax sugar, the Is helper class uses static (shared) methods to create the constraints so we either hack the NUnit source or try something else. What I ended up doing may not be ideal as it really plays with the syntax but it was fun all the same :) I created a new class called This and did the following. Imports System.Collections Imports NUnit.Framework.Constraints Imports NUnit.Framework.SyntaxHelpers Public Class This Inherits SyntaxHelper Public Shared ReadOnly Property [Is]() As This Get Return New This() End Get End Property Public Function AssignableFrom(ByVal expectedType As Type) As Constraint Return New AssignableFromConstraint(expectedType) End Function Public Function AtLeast(ByVal expected As IComparable) As Constraint Return GreaterThanOrEqualTo(expected) End Function Public Function AtMost(ByVal expected As IComparable) As Constraint Return LessThanOrEqualTo(expected) End Function Public Function EqualTo(ByVal...(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/06/write-your-own-nunit-constraint-in-vb-part-2.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20845" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/.NET/default.aspx">.NET</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/NUnit/default.aspx">NUnit</category></item><item><title>[WPF] D&#233;couvrons la collection CompositeCollection</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/06/wpf-d-couvrons-la-collection-compositecollection.aspx</link><pubDate>Wed, 06 Aug 2008 08:16:40 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20836</guid><dc:creator>Thomas Lebrun</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20836.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20836</wfw:commentRss><description>Je dois reconnaitre que j'ai découvert très récemment cette collection mais elle semble être bien pratique. En effet, la CompositeCollection vous permet de mélanger plusieurs collections et éléments de façon à ce qu'ils soient affichés comme une seul... Read More......(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/06/wpf-d-couvrons-la-collection-compositecollection.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20836" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/.NET/default.aspx">.NET</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/WPF/default.aspx">WPF</category></item><item><title>jMetronome: Using jQuery to keep typographic rhythm</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/05/jmetronome-using-jquery-to-keep-typographic-rhythm.aspx</link><pubDate>Wed, 06 Aug 2008 03:09:49 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20829</guid><dc:creator>Fortes</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20829.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20829</wfw:commentRss><description>A couple of years ago, Richard Rutter wrote Compose to a Vertical Rhythm, which described how web developers could use CSS to maintain proper vertical typographic rhythm when designing pages. The technique is fairly straightforward, requiring some basic math to ensure consistent margins and leading across all page elements.
One issue that many people face with [...] Read More......(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/05/jmetronome-using-jquery-to-keep-typographic-rhythm.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20829" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/Uncategorized/default.aspx">Uncategorized</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/javascript/default.aspx">javascript</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/jmetronome/default.aspx">jmetronome</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/typography/default.aspx">typography</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/jquery/default.aspx">jquery</category></item><item><title>Write your own NUnit constraint (in VB) - Part 1</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/05/write-your-own-nunit-constraint-in-vb-part-1.aspx</link><pubDate>Tue, 05 Aug 2008 16:32:00 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20817</guid><dc:creator>Andrew Stopford&amp;#39;s Weblog</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20817.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20817</wfw:commentRss><description>NUnit constraints offer a different style to crafting your unit tests, rather than write. Assert.IsEqual( expected,actual ) you could write Assert.That( expected , Is.EqualTo( actual )) Or in VB as Is is a reserved keyword - Assert.That( expected , [Is].EqualTo( actual )) 'Is' is one of the syntax helpers within NUnit.Framework.SyntaxHelpers to add a little syntax sugar, the above could be written as Assert,That(expected, new EqualConstraint( actual )) Where EqualConstraint lives in NUnit.Framework.Constraints but the syntax sugar is so much nicer. The That assert takes a IConstraint interface and if you want to craft your own constraints you can do so by using NUnit's own Constraint class. For our own purposes let's create a custom constraint that tests the cast of null (nothing) to a datetime value. Imports NUnit.Framework Imports NUnit.Framework.Constraints Public Class DateFormatConstraint Inherits Constraint Private testDate As Date Public Sub New() Me.testDate = CType(Nothing, Date)...(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/05/write-your-own-nunit-constraint-in-vb-part-1.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20817" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/.NET/default.aspx">.NET</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/NUnit/default.aspx">NUnit</category></item><item><title>NUnit constraints broke my R#</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/05/nunit-constraints-broke-my-r.aspx</link><pubDate>Tue, 05 Aug 2008 16:17:00 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20812</guid><dc:creator>Andrew Stopford&amp;#39;s Weblog</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20812.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20812</wfw:commentRss><description>After writing some NUnit tests with the Assert.That constriant syntax my code file was looking a bit messy so I ran R# 'cleanup' and it threw "JetBrains.Util.LoggerException: Cannot create IReferenceExpresion for 'Is' ". After that right click was kept throwing this error and to get around it I had to unload and reload the R# plugin. Not sure if it's VB and the need the escape Is as a reserved keyword but R# was struggling. Read More......(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/05/nunit-constraints-broke-my-r.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20812" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/.NET/default.aspx">.NET</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/NUnit/default.aspx">NUnit</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/Resharper/default.aspx">Resharper</category></item><item><title>[WPF] Intellisense XAML dans Expression Blend !</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/04/wpf-intellisense-xaml-dans-expression-blend.aspx</link><pubDate>Mon, 04 Aug 2008 20:00:07 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20795</guid><dc:creator>Thomas Lebrun</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20795.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20795</wfw:commentRss><description>Je viens de voir passer ce post, sur le blog de Stefan Dobrev, qui devrait faire plaisir à plus d'une personne En effet, il a développé un petit addin à Expression Blend qui lui permet d'avoir... l'Intellisense: Le téléchargement et la procédure... Read More......(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/04/wpf-intellisense-xaml-dans-expression-blend.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20795" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/.NET/default.aspx">.NET</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/WPF/default.aspx">WPF</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/Expression+Blend/default.aspx">Expression Blend</category></item><item><title>“Don Giovanni” for 200</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/04/don-giovanni-for-200.aspx</link><pubDate>Mon, 04 Aug 2008 15:02:57 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20791</guid><dc:creator>Charles Petzold</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20791.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20791</wfw:commentRss><description>We weren't quite sure what to expect. We were familiar with the 200-seat Tusten Theatre in Narrowsburg, and we were pretty sure that it couldn't really accomodate an opera. The stage is quite small and there isn't even an orchestra pit. What's more, the tickets for the Delaware Valley Opera 's production of Mozart's Don Giovanni &amp;#x2014; a tragicomical chronicle of the last few days of archetypal sexual compulsive Don Juan &amp;#x2014; were only $25 a seat, which seemed frighteningly low for a three-hour opera with eight solo roles, chorus, and orchestra. Yesterday afternoon we discovered how it's done: The small Delaware Valley Chamber Orchestra &amp;#x2014; two violins, viola, cello, bass, French horn, bassoon, clarinet, oboe, flute, and timpani &amp;#x2014; occupied the space between the stage and the first row of center seats. DVO Director Jim Blanton conducted from behind a synthesizer set to a harpsichord program for the recitativi. The sets were minimal but otherwise it was complete authentic...(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/04/don-giovanni-for-200.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20791" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/Life+in+Sullivan+County/default.aspx">Life in Sullivan County</category></item><item><title>[WPF] Comment savoir si on peut se binder &#224; une propri&#233;t&#233; et/ou si le mode de binding de celle-ci est &#224; TwoWay par d&#233;faut ?</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/01/wpf-comment-savoir-si-on-peut-se-binder-une-propri-t-et-ou-si-le-mode-de-binding-de-celle-ci-est-twoway-par-d-faut.aspx</link><pubDate>Fri, 01 Aug 2008 07:52:00 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20693</guid><dc:creator>Thomas Lebrun</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20693.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20693</wfw:commentRss><description>Il peut-être intéressant, dans certains scénarios, de savoir si l'on peut se binder sur une propriété particulière ou de savoir si le mode de binding par défaut de cette propriété est TwoWay. Bien sur, la première solution sera de faire le test et d'... Read More......(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/08/01/wpf-comment-savoir-si-on-peut-se-binder-une-propri-t-et-ou-si-le-mode-de-binding-de-celle-ci-est-twoway-par-d-faut.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20693" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/.NET/default.aspx">.NET</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/WPF/default.aspx">WPF</category></item><item><title>MbUnit @ ThoughtWorks geek night</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/31/mbunit-thoughtworks-geek-night.aspx</link><pubDate>Thu, 31 Jul 2008 17:09:00 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20684</guid><dc:creator>Andrew Stopford&amp;#39;s Weblog</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20684.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20684</wfw:commentRss><description>I'll be giving a talk on MbUnit at the next ThoughtWorks geek night here in Manchester, UK on the 27th of August . The night will be a double bill, right after me Chris Morris will be leading a workshop designed to find out what you believe quality means in the software you develop. The talk I will give will be a version of the one I gave last year at AgileNorth only updated for the MbUnit v3. The next time I will give this talk will be hopefully DDD towards the end of year , so either vote for me when the time comes or if you can't wait then get your self down to Manchester. Read More......(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/31/mbunit-thoughtworks-geek-night.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20684" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/MbUnit/default.aspx">MbUnit</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/General+Software+Development/default.aspx">General Software Development</category></item><item><title>LINQ Aggregation and Bounding Boxes</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/30/linq-aggregation-and-bounding-boxes.aspx</link><pubDate>Wed, 30 Jul 2008 18:56:27 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20636</guid><dc:creator>IanG on Tap</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20636.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20636</wfw:commentRss><description>I recently worked on a project that included code to calculate the bounding box of a collection of rectangles. The code did more or less what you might expect – it iterated over the collection, and any time a new rectangle wasn’t contained by the current bounds, it enlarged the bounds to fit. There was nothing wrong with this, but I knew of a cute trick that could do the job with a fraction of the code. I wasn’t being paid to replace working code with cute tricks, so I left it as it was – when it comes to production code I’m not a fan of the “If it ain’t broke, let me take a crack at it” school of coding. So I thought I’d illustrate the idea here instead. Here’s a one-line implementation of the same logic, using the System.Windows.Rect type in WPF. (Note that this is a very simple value type, not a full UI element. It’s just 4 numbers.) public static Rect GetBounds( IEnumerable &amp;lt; Rect &amp;gt; rects) { return rects.Aggregate((currBounds, nextRect) =&amp;gt; Rect .Union(currBounds, nextRect));...(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/30/linq-aggregation-and-bounding-boxes.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20636" width="1" height="1"&gt;</description></item><item><title>[WPF] Comment ajouter un &#233;l&#233;ment &#224; un ItemsControl dont la propri&#233;t&#233; ItemsSource a &#233;t&#233; sp&#233;cifi&#233;e ?</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/29/wpf-comment-ajouter-un-l-ment-un-itemscontrol-dont-la-propri-t-itemssource-a-t-sp-cifi-e.aspx</link><pubDate>Tue, 29 Jul 2008 07:49:30 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20609</guid><dc:creator>Thomas Lebrun</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20609.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20609</wfw:commentRss><description>Il est très fréquent que l'on ait besoin, dans son programme, d'ajouter un élément à un ItemsControl (ListBox, ComboBox, etc...). Cela se passe très bien si vous avez indiqué les différents éléments du contrôle mais si vous êtes passé par la propriété... Read More......(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/29/wpf-comment-ajouter-un-l-ment-un-itemscontrol-dont-la-propri-t-itemssource-a-t-sp-cifi-e.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20609" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/.NET/default.aspx">.NET</category><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/WPF/default.aspx">WPF</category></item><item><title>Fixing WPF Command Routing</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/25/fixing-wpf-command-routing.aspx</link><pubDate>Sat, 26 Jul 2008 03:58:27 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20564</guid><dc:creator>Brownie Points</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20564.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20564</wfw:commentRss><description>Bill Kempf , a fellow WPF Disciple , was lamenting the fact that by default a CommandBinding can only refer to a handler defined in the code behind of the Window/Page/UserControl in which it's defined. He wished that a syntax similar to the following was possible &amp;lt; Window &amp;gt; &amp;lt; Window.CommandBindings &amp;gt; &amp;lt; CommandBinding Command =&amp;quot;foo:MyCommands.FooCommand&amp;quot; Executed =&amp;quot;{Event Target={StaticResource MyPresenter}, Handler=OnFooCommand}&amp;quot; /&amp;gt; &amp;lt;/ Window.CommandBindings &amp;gt; &amp;lt;/ Window &amp;gt; I took that scenario as my starting point. The first issue I saw was that I needed a markup extension that let's you specify a Target Object and the name of a handler on that Target returning a ExecutedRoutedEventHandler. So I made one. The Markup Extension exposes two properties: Target (of type object) and Handler of Type String. The ProvideValue override (shown below) uses reflection to get a handle on the function and creates a lambda that invokes it for the result....(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/25/fixing-wpf-command-routing.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20564" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/None/default.aspx">None</category></item><item><title>A Brief Proof That Unrelentingly Catchy Tunes Do Not Good Music Make</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/25/a-brief-proof-that-unrelentingly-catchy-tunes-do-not-good-music-make.aspx</link><pubDate>Fri, 25 Jul 2008 14:44:40 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20556</guid><dc:creator>Charles Petzold</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20556.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20556</wfw:commentRss><description>ABBA. QED. Read More......(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/25/a-brief-proof-that-unrelentingly-catchy-tunes-do-not-good-music-make.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20556" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/Music/default.aspx">Music</category></item><item><title>Great new way for using RoutedCommands with the ViewModel pattern in WPF</title><link>http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/25/great-new-way-for-using-routedcommands-with-the-viewmodel-pattern-in-wpf.aspx</link><pubDate>Fri, 25 Jul 2008 08:17:02 GMT</pubDate><guid isPermaLink="false">37a88c7a-46c6-4bb0-b915-2f75d58e334b:20545</guid><dc:creator>Ruurd Boeke Enterprise development and technobabble - WPF (Avalon)</dc:creator><slash:comments>0</slash:comments><comments>http://wpf.netfx3.com/blogs/wpf_community_bloggers/comments/20545.aspx</comments><wfw:commentRss>http://wpf.netfx3.com/blogs/wpf_community_bloggers/commentrss.aspx?PostID=20545</wfw:commentRss><description>Josh Smith just published a great article about his solution to using RoutedCommands in WPF. The problem he solves, has been solved by others before, however, I think this is a very lightweight succinct way of doing it. Basically, when you set a command to a button, you will have to handle that logic (canExecute and Execute) in the codebehind of the view. Since you are (hopefully) using a MVC, MVP or MVVM approach, you would rather not go through the codebehind of the view, but directly route the commands to the appropriate viewmodel/controller. He creates a relaying object that does just that. This results in a completely empty codebehind for the view, which is exactly what I like! Good job Josh! Read More......(&lt;a href="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/2008/07/25/great-new-way-for-using-routedcommands-with-the-viewmodel-pattern-in-wpf.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://wpf.netfx3.com/aggbug.aspx?PostID=20545" width="1" height="1"&gt;</description><category domain="http://wpf.netfx3.com/blogs/wpf_community_bloggers/archive/tags/WPF+_2800_Avalon_2900_/default.aspx">WPF (Avalon)</category></item></channel></rss>