Fix RoutedCommand input element tracking

This commit is contained in:
Benedikt Stebner 2023-06-02 10:53:03 +02:00
Родитель 01257d1fef
Коммит 1740cca844
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -50,7 +50,7 @@ namespace AvaloniaEdit
private static void GotFocusEventHandler(Interactive control, GotFocusEventArgs args)
{
_inputElement = control as IInputElement;
_inputElement = args.Source as IInputElement;
}
public static RoutedEvent<CanExecuteRoutedEventArgs> CanExecuteEvent { get; } = RoutedEvent.Register<CanExecuteRoutedEventArgs>(nameof(CanExecuteEvent), RoutingStrategies.Bubble, typeof(RoutedCommand));