<?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>emphess .NET &#187; ICommand</title>
	<atom:link href="http://www.emphess.net/tag/icommand/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emphess.net</link>
	<description>Christoph Menge&#039;s Blog</description>
	<lastBuildDate>Tue, 15 Jun 2010 00:50:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ICommand.CanExecute() and NullReferenceException</title>
		<link>http://www.emphess.net/2008/04/10/icommandcanexecute-and-nullreferenceexception/</link>
		<comments>http://www.emphess.net/2008/04/10/icommandcanexecute-and-nullreferenceexception/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 17:12:57 +0000</pubDate>
		<dc:creator>Christoph Menge</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Custom Command]]></category>
		<category><![CDATA[Custom Controls]]></category>
		<category><![CDATA[ICommand]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://www.emphess.net/?p=31</guid>
		<description><![CDATA[Have you ever tried to call ICommand.CanExecute()? It actually works fine, but only if you are not as naive as I am&#8230; Simply calling it without the proper know-how might result in a NullReferenceException, so what you should read is how to implement ICommandSource. See
MSDN: How To: Implement ICommandSource
MSDN: Implement ICommandSource Sample.
Not a big thing, [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever tried to call <code>ICommand.CanExecute()</code>? It actually works fine, but only if you are not as naive as I am&#8230; Simply calling it without the proper know-how might result in a <code>NullReferenceException</code>, so what you should read is how to implement <code>ICommandSource</code>. See</p>
<p><a href="http://msdn2.microsoft.com/en-us/library/ms748978.aspx">MSDN: How To: Implement ICommandSource</a><br />
<a href="http://msdn2.microsoft.com/en-us/library/ms771361.aspx">MSDN: Implement ICommandSource Sample</a>.</p>
<p>Not a big thing, but since google didn&#8217;t show anything for &#8220;ICommand.CanExecute NullReferenceException&#8221;, it might help somebody I hope&#8230;</p>
<div style="float: right;"><p align="right"><a rel="nofollow" class="tt" href="http://twitter.com/home/?status=ICommand.CanExecute%28%29+and+NullReferenceException+http://bit.ly/d5NelM" title="Post to Twitter"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-twitter2.png" alt="Post to Twitter" /></a> <a rel="nofollow" class="tt" href="http://delicious.com/post?url=http://www.emphess.net/2008/04/10/icommandcanexecute-and-nullreferenceexception/&amp;title=ICommand.CanExecute%28%29+and+NullReferenceException" title="Post to Delicious"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-delicious.png" alt="Post to Delicious" /></a> <a rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.emphess.net/2008/04/10/icommandcanexecute-and-nullreferenceexception/&amp;title=ICommand.CanExecute%28%29+and+NullReferenceException" title="Post to Digg"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-digg.png" alt="Post to Digg" /></a> <a rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.emphess.net/2008/04/10/icommandcanexecute-and-nullreferenceexception/&amp;t=ICommand.CanExecute%28%29+and+NullReferenceException" title="Post to Facebook"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.emphess.net/2008/04/10/icommandcanexecute-and-nullreferenceexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
