Skip to content

Commit 984fecc

Browse files
committed
pass CommandParameter to CanExecute method
1 parent 5899d8e commit 984fecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controls/src/Core/CheckBox/CheckBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial class CheckBox : View, IElementConfiguration<CheckBox>, IBorderEl
2525

2626
checkBox.Handler?.UpdateValue(nameof(ICheckBox.Foreground));
2727
checkBox.CheckedChanged?.Invoke(bindable, new CheckedChangedEventArgs((bool)newValue));
28-
if (checkBox.Command is not null && checkBox.Command.CanExecute(null))
28+
if (checkBox.Command is not null && checkBox.Command.CanExecute(checkBox.CommandParameter))
2929
{
3030
checkBox.Command.Execute(checkBox.CommandParameter);
3131
}

0 commit comments

Comments
 (0)