<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to attach commands to any UIElement ?</title>
	<atom:link href="http://www.japf.fr/2008/12/how-to-attach-commands-to-any-uielement/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.japf.fr/2008/12/how-to-attach-commands-to-any-uielement/</link>
	<description>Jeremy Alles Presentation Foundation: WPF, Silverlight, Windows Phone 7, Windows 8</description>
	<lastBuildDate>Fri, 13 Jan 2012 15:59:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: charley</title>
		<link>http://www.japf.fr/2008/12/how-to-attach-commands-to-any-uielement/comment-page-1/#comment-1127</link>
		<dc:creator>charley</dc:creator>
		<pubDate>Mon, 22 Feb 2010 15:40:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=22#comment-1127</guid>
		<description>It will work when i double click.But one thing trouble me that it will fire the handler before the mouse not up.And I don&#039;t know how to let it be fired after the mouse up.

best regards</description>
		<content:encoded><![CDATA[<p>It will work when i double click.But one thing trouble me that it will fire the handler before the mouse not up.And I don&#8217;t know how to let it be fired after the mouse up.</p>
<p>best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charley</title>
		<link>http://www.japf.fr/2008/12/how-to-attach-commands-to-any-uielement/comment-page-1/#comment-1123</link>
		<dc:creator>charley</dc:creator>
		<pubDate>Sun, 21 Feb 2010 16:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=22#comment-1123</guid>
		<description>It&#039;s just what i want.But i found it can&#039;t work in HierarchicalDataTemplate .I don&#039;t know why.
 
            
                
                    
                
            
        </description>
		<content:encoded><![CDATA[<p>It&#8217;s just what i want.But i found it can&#8217;t work in HierarchicalDataTemplate .I don&#8217;t know why.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blindmeis</title>
		<link>http://www.japf.fr/2008/12/how-to-attach-commands-to-any-uielement/comment-page-1/#comment-880</link>
		<dc:creator>blindmeis</dc:creator>
		<pubDate>Tue, 15 Dec 2009 09:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=22#comment-880</guid>
		<description>mhh cant post code. so you have to look for CommandReference to work with keybinding and mousebinding.

ciao

ps: bad english i know^^</description>
		<content:encoded><![CDATA[<p>mhh cant post code. so you have to look for CommandReference to work with keybinding and mousebinding.</p>
<p>ciao</p>
<p>ps: bad english i know^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blindmeis</title>
		<link>http://www.japf.fr/2008/12/how-to-attach-commands-to-any-uielement/comment-page-1/#comment-879</link>
		<dc:creator>blindmeis</dc:creator>
		<pubDate>Tue, 15 Dec 2009 09:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=22#comment-879</guid>
		<description>from the mvvm template on codeplex




            
                
            
        </description>
		<content:encoded><![CDATA[<p>from the mvvm template on codeplex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.japf.fr/2008/12/how-to-attach-commands-to-any-uielement/comment-page-1/#comment-305</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 06 May 2009 06:07:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=22#comment-305</guid>
		<description>Actually, I try a sample with double click and it worked fine...

The problem with both MouseBinding and KeyBinding is that they inherit from InputBinding and the Command property of InputBinding is not a dependency property. 

Basically, you cannot write Command=&quot;{Binding SomeCommand}&quot; which is what we always do in MVVM. Using an attached property, it&#039;s possible.

Hope this helps ;)</description>
		<content:encoded><![CDATA[<p>Actually, I try a sample with double click and it worked fine&#8230;</p>
<p>The problem with both MouseBinding and KeyBinding is that they inherit from InputBinding and the Command property of InputBinding is not a dependency property. </p>
<p>Basically, you cannot write Command=&#8221;{Binding SomeCommand}&#8221; which is what we always do in MVVM. Using an attached property, it&#8217;s possible.</p>
<p>Hope this helps <img src='http://www.japf.fr/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Sherwood</title>
		<link>http://www.japf.fr/2008/12/how-to-attach-commands-to-any-uielement/comment-page-1/#comment-303</link>
		<dc:creator>David Sherwood</dc:creator>
		<pubDate>Wed, 06 May 2009 02:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=22#comment-303</guid>
		<description>Why could you not do this with InputBindings? This worked for me with the Enter key but doubleClick did not work. How come?</description>
		<content:encoded><![CDATA[<p>Why could you not do this with InputBindings? This worked for me with the Enter key but doubleClick did not work. How come?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.japf.fr/2008/12/how-to-attach-commands-to-any-uielement/comment-page-1/#comment-256</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Fri, 13 Mar 2009 17:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=22#comment-256</guid>
		<description>Hi Ulli, 

I just updated the link, it should be working now :)</description>
		<content:encoded><![CDATA[<p>Hi Ulli, </p>
<p>I just updated the link, it should be working now <img src='http://www.japf.fr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulli</title>
		<link>http://www.japf.fr/2008/12/how-to-attach-commands-to-any-uielement/comment-page-1/#comment-255</link>
		<dc:creator>Ulli</dc:creator>
		<pubDate>Fri, 13 Mar 2009 17:39:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=22#comment-255</guid>
		<description>This is exactly what I am looking for. Unfortunatelly the example isn&#039;t available. Can you please post a working link?</description>
		<content:encoded><![CDATA[<p>This is exactly what I am looking for. Unfortunatelly the example isn&#8217;t available. Can you please post a working link?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: attached property &#171; Steveluo&#8217;s Blog</title>
		<link>http://www.japf.fr/2008/12/how-to-attach-commands-to-any-uielement/comment-page-1/#comment-220</link>
		<dc:creator>attached property &#171; Steveluo&#8217;s Blog</dc:creator>
		<pubDate>Tue, 24 Feb 2009 04:38:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=22#comment-220</guid>
		<description>[...] How to attach commands to any UIElement ? Possibly related posts: (automatically generated)Friday Fun: Who shares your [...]</description>
		<content:encoded><![CDATA[<p>[...] How to attach commands to any UIElement ? Possibly related posts: (automatically generated)Friday Fun: Who shares your [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

