13 lines
314 B
C#
13 lines
314 B
C#
using System.Windows.Input;
|
|
|
|
namespace WPFDark.Internals
|
|
{
|
|
internal static class CommandExtensions
|
|
{
|
|
internal static void ExecuteIfCan(this ICommand command, object? parameter)
|
|
{
|
|
if (command.CanExecute(parameter))
|
|
command.Execute(parameter);
|
|
}
|
|
}
|
|
} |