AvaloniaUI / Avalonia.Xaml.Behaviors

Port of Windows UWP Xaml Behaviors for Avalonia Xaml.
MIT License
385 stars 46 forks source link

Add IsEnabled property to InvokeCommandAction #146

Closed Soar360 closed 5 months ago

Soar360 commented 7 months ago

Added a new boolean property, IsEnabled, with a default value of true to the InvokeCommandAction. The Execute method now checks this property, and if it is set to false, the command is not executed.

Soar360 commented 7 months ago

@dotnet-policy-service agree