Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 977 Bytes

icommand_canexecute_508446764.md

File metadata and controls

36 lines (20 loc) · 977 Bytes
-api-id -api-type
M:Windows.UI.Xaml.Input.ICommand.CanExecute(System.Object)
winrt method

Windows.UI.Xaml.Input.ICommand.CanExecute

-description

Retrieves whether the command can execute in its current state.

-parameters

-param parameter

Data used by the command. If the command does not require data, this object can be set to null.

-returns

true if this command can be executed; otherwise, false.

-remarks

Typically, a command source calls this method when the CanExecuteChanged event is raised.

-examples

-see-also

Command design basics, Commanding in Universal Windows Platform apps using StandardUICommand, XamlUICommand, and ICommand, XamlUICommand, StandardUICommand