Closed vmiwouter closed 1 year ago
Since rc1 cant focus a textbox anymore:
System.ArgumentException: 'Cannot find method named Focus on object of type Avalonia.Controls.TextBox that matches the expected signature.'
xaml: `
`
Via code behind it still works: ` txtUsername.Loaded += OnActivated;
void OnActivated(object? sender, RoutedEventArgs e) { txtUsername.Focus(); }`
It's because Focus method in avalonia now requires additional arguments. So CallMethodAction will not work this way.
You can use FocusControlAction, I've added TargetControl support.
Since rc1 cant focus a textbox anymore:
System.ArgumentException: 'Cannot find method named Focus on object of type Avalonia.Controls.TextBox that matches the expected signature.'
xaml: `
`
Via code behind it still works: ` txtUsername.Loaded += OnActivated;