Have you ever tried to call ICommand.CanExecute()? It actually works fine, but only if you are not as naive as I am… 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 [...]
ICommand.CanExecute() and NullReferenceException
by Christoph Menge in .NET
April 10, 2008
Tags: Custom Command, Custom Controls, ICommand, WPF
Follow me on Twitter!
- Anybody else seen a different twitter public page today? Saw a reddish backgound and a cricket image... quite nice about 4 days ago from web
- RT @cdixon: wonder why VCs are willing to invest in companies w/o business models? Google made $10B+ this quarter. Yet in 2000: http://t ... 10:10:57 PM January 19, 2012 from web
- I know it doesn't have to be a #DayWithoutWikipedia. I only need to disable JavaScript. If only I could find out how w/o Wikipedia. #vicious 05:46:28 PM January 18, 2012 from web
Recent Comments
-
Recent Posts
Blogroll
Cool Stuff
Development
Projects
Xing
Tags
API Design Architecture Article Custom Controls Database db4o Dependency Property Development Differentiated UX DPI Awareness DUX facebook GAT GAX Hardware HelloWorld ICommand linq Memory MenuKiller NoSQL Object Database OODBMS OpenGL Oracle OracleXE p&p Performance Prism RAM SCSF SEO Serialization SmartClient StackExchange Startup Tao Tools TreeView TypeConverter Vista Visual Studio 2008 Webcast Wikorum WPFMeta
Archives
