Change Constraint for CommandBehaviorBase for WPF


CommandBehaviorBase for WPF should have FrameworkElement or even UIElement as a constraint for T.
Currently the constraint is Control.
Closed Mar 8, 2012 at 5:57 PM by DCherubini
Hi,We are closing this work item as this is no longer an issue since Prism 4.1 release (http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=28950).The change on type constraint in CommandBehaviorBase was implemented using #if precompiler directives: - For WPF the type constraint is now UIElement. - For Silverlight, type constraint is still Control.Regards,Damian Cherubinihttp://blogs.southworks.net/dcherubini


GUIdev wrote Nov 17, 2010 at 7:06 PM

+1 Wanted to use the CommandBehaviorBase on an Image, adding MouseUp behavior

skina wrote Feb 24, 2011 at 2:28 PM

+1 Was looking to add command support for MouseEnter/MouseLeave on a Border (FrameworkElement)