Fix RoutedCommand input element tracking
This commit is contained in:
Родитель
01257d1fef
Коммит
1740cca844
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче