You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested again with ReactiveUI v20.1.1, the issue is still happening. As a workaround, passing the name of the event as the fourth argument works: this.BindCommand(ViewModel, vm => vm.MyCommand, v => v.Button, nameof(Button.Click)).DisposeWith(disposed);
Describe the bug 🐞
Using Avalonia 11.0.10, when binding a command using BindCommand in the code behind of the view as follows:
The following exception is being throw:
Terminating app due to uncaught exception 'System.ArgumentException', reason: 'Property set method not found. (System.ArgumentException)
at System.Reflection.RuntimePropertyInfo.SetValue(Object , Object , BindingFlags , Binder , Object[] , CultureInfo )
at System.Reflection.PropertyInfo.SetValue(Object obj, Object value, Object[] index)
at ReactiveUI.CreatesCommandBindingViaCommandParameter.BindCommandToObject(ICommand command, Object target, IObservable
1 commandParameter) in /_/src/ReactiveUI/Bindings/Command/CreatesCommandBindingViaCommandParameter.cs:line 60 at ReactiveUI.CreatesCommandBinding.BindCommandToObject(ICommand command, Object target, IObservable
1 commandParameter) in /_/src/ReactiveUI/Bindings/Command/CreatesCommandBinding.cs:line 39Step to reproduce
Reproduction repository
https://github.com/yvcabrerago/AvaloniaReactiveApplication
Expected behavior
The application should not crash.
Screenshots 🖼️
No response
IDE
Rider macOS
Operating system
No response
Version
No response
Device
IPad 10th generation, IPadOS 17.1.1
ReactiveUI Version
18.3.1
Additional information ℹ️
No response
The text was updated successfully, but these errors were encountered: