Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

Commented Unassigned: The property 'Click.Command' does not exist in XML namespace [10611]

$
0
0
Hi,

I just update to Prism 5.0 and i realize that the Click.Command is no longer in the component,
what is the migration path, i dindn't find it in the documentation.

I got following message :

Error 274 The property 'Click.Command' does not exist in XML namespace 'clr-namespace:Microsoft.Practices.Prism.Commands;assembly=Microsoft.Practices.Prism'. Line 13 Position 94.

Regards,
Johannes
Comments: ** Comment from web user: GOstrowsky **

Hi Johannes,

Based on my understanding the _Click_ class has become deprecated on new techonologies. As Damian explains in the following thread, this class was available for use on App with __Silverlight__ versions that would not support _Command Bindings_ to Buttons:
#
* [prism:Click.Command & Property Binding](https://compositewpf.codeplex.com/discussions/405813)

Therefore, new techonologies that support _Command Bindings_ should not be using the _Click_ class.
You can easily bind the _Command Property_ of a Button into the _Button Click_ handler. You may find an example of it on the __Commanding QuickStart__ at ___OrdersToolBar.xaml___:
#
* [Commanding QuickStart Using the Prism Library 5.0 for WPF](http://msdn.microsoft.com/en-us/library/ff921082(v=pandp.40).aspx)

I hope this helped you,
Regards.

Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky


Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>