2 implementations of CanExecute
Microsoft.Maui.Controls (1)
Command.cs (1)
105
public bool
CanExecute
(object parameter)
PresentationCore (1)
System\Windows\Input\Command\RoutedCommand.cs (1)
89
bool ICommand.
CanExecute
(object parameter)
48 references to CanExecute
Microsoft.Maui.Controls (36)
Cells\TextCell.cs (3)
25
textCell.IsEnabled = newcommand.
CanExecute
(textCell.CommandParameter);
37
textCell.IsEnabled = textCell.Command.
CanExecute
(newvalue);
109
IsEnabled = Command.
CanExecute
(CommandParameter);
ClickGestureRecognizer.cs (1)
65
if (cmd != null && cmd.
CanExecute
(parameter))
CommandElement.cs (1)
36
return commandElement.Command.
CanExecute
(commandElement.CommandParameter);
Entry\Entry.cs (1)
182
if (ReturnCommand != null && ReturnCommand.
CanExecute
(ReturnCommandParameter))
Items\CarouselView.cs (2)
141
if (command.
CanExecute
(commandParameter))
253
if (command.
CanExecute
(commandParameter))
Items\ItemsView.cs (1)
175
if (RemainingItemsThresholdReachedCommand?.
CanExecute
(RemainingItemsThresholdReachedCommandParameter) == true)
Items\SelectableItemsView.cs (1)
160
if (command.
CanExecute
(commandParameter))
ListView\ListView.cs (2)
617
RefreshAllowed = RefreshCommand != null && RefreshCommand.
CanExecute
(null);
725
RefreshAllowed = newCommand.
CanExecute
(null);
PointerGestureRecognizer.cs (5)
192
if (cmd?.
CanExecute
(PointerEnteredCommandParameter) == true)
205
if (cmd?.
CanExecute
(PointerExitedCommandParameter) == true)
218
if (cmd?.
CanExecute
(PointerMovedCommandParameter) == true)
231
if (cmd?.
CanExecute
(PointerPressedCommandParameter) == true)
244
if (cmd?.
CanExecute
(PointerReleasedCommandParameter) == true)
SearchBar\SearchBar.cs (1)
134
if (cmd != null && !cmd.
CanExecute
(SearchCommandParameter))
Shell\BackButtonBehavior.cs (3)
94
IsEnabledCore = Command.
CanExecute
(CommandParameter);
107
IsEnabledCore = Command.
CanExecute
(CommandParameter);
118
IsEnabledCore = Command.
CanExecute
(CommandParameter);
Shell\SearchHandler.cs (8)
584
if (command != null && command.
CanExecute
(commandParameter))
602
if (command?.
CanExecute
(commandParameter) == true)
661
IsSearchEnabledCore = Command.
CanExecute
(CommandParameter);
666
ClearPlaceholderEnabledCore = ClearPlaceholderCommand.
CanExecute
(ClearPlaceholderCommandParameter);
679
ClearPlaceholderEnabledCore = ClearPlaceholderCommand.
CanExecute
(ClearPlaceholderCommandParameter);
690
ClearPlaceholderEnabledCore = ClearPlaceholderCommand.
CanExecute
(CommandParameter);
703
IsSearchEnabledCore = Command.
CanExecute
(CommandParameter);
714
IsSearchEnabledCore = Command.
CanExecute
(CommandParameter);
SwipeGestureRecognizer.cs (1)
118
if (cmd != null && cmd.
CanExecute
(CommandParameter))
SwipeView\SwipeItem.cs (1)
39
if (Command != null && Command.
CanExecute
(CommandParameter))
SwipeView\SwipeItemView.cs (4)
41
if (Command != null && Command.
CanExecute
(CommandParameter))
49
IsEnabled = Command?.
CanExecute
(CommandParameter) ?? true;
70
IsEnabled = Command.
CanExecute
(CommandParameter);
75
IsEnabled = Command.
CanExecute
(CommandParameter);
TapGestureRecognizer.cs (1)
59
if (cmd != null && cmd.
CanExecute
(CommandParameter))
PresentationCore (1)
System\Windows\Input\Command\CommandManager.cs (1)
415
if (command.
CanExecute
(parameter))
PresentationFramework (5)
MS\Internal\Commands\CommandHelpers.cs (3)
129
return command.
CanExecute
(parameter);
167
else if (command.
CanExecute
(parameter))
184
else if (command.
CanExecute
(parameter))
System\Windows\Shell\ThumbButtonInfo.cs (2)
268
else if (command.
CanExecute
(parameter))
307
CanExecute = Command.
CanExecute
(parameter);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Input\CommandHelpers.cs (2)
49
else if (command.
CanExecute
(parameter))
97
return command.
CanExecute
(parameter);
System.Windows.Forms (4)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
195
/// Occurs when the <see cref="Input.ICommand.
CanExecute
(object?)"/> status of the
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
416
/// Occurs when the <see cref="Input.ICommand.
CanExecute
(object?)"/> status of the
System\Windows\Forms\DataBinding\ICommandBindingTargetProvider.cs (2)
120
Enabled = commandBackingField.
CanExecute
(CommandParameter);
127
Enabled = Command?.
CanExecute
(CommandParameter) ?? false;