Symphony Framework
CanExecute Method
Symphony.Conductor.Commands Namespace > RoutedCommandBase Class : CanExecute Method
The bound User Interface object
CanExecute returns true/false depending on if the command can be executed. The default is to return TRUE, override in the extending class to add logic
public bool CanExecute( 
   object sender


The bound User Interface object
The bound User Interface control executes the CanExecute method when the RoutedCommandBase.CanExecuteChanged event is raised. This method should be overriden by the extending class to allow logic to be applied to determine if the bound control can be executed.

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


RoutedCommandBase Class
RoutedCommandBase Members