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

New Post: prism:Click.Command & Property Binding

$
0
0

Hi Peter,

Based on my understanding the Click class creates a ButtonBaseClickCommandBehaviorwhen a Click.Command attached property is set (i.e. Click.Command,) used to "map" the Click event of the Button to the Execute method of the Command. This behavior inherits from theCommandBahaviorBase class, which in turn changes the IsEnabledproperty. This could be the reason why the binding to the CheckEnabledproperty is being "ignored."

However, take into account that the Click class (and the Click.Command attached property) are obsolete and their usage is discouraged as sinceSilverlight 4  binding Buttons to Commandsis directly supported. Hence, it's recommended to use common Commandbindings instead.

Regards,

Damian Cherubini
http://blogs.southworks.net/dcherubini


Viewing all articles
Browse latest Browse all 1878

Trending Articles