Skip to content

fix(Button): Command binding resetting on CanExecution exception

Codacy Production / Codacy Static Code Analysis succeeded Oct 3, 2024 in 0s

Your pull request is up to standards!

Codacy found no issues in your code

Annotations

Check warning on line 329 in src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Button.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Button.cs#L329

'System.Exception' should not be thrown by user code.

Check notice on line 465 in src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Button.cs

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Button.cs#L465

Remove this default value assigned to parameter 'execute'.