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
The library exposes a few command properties, I'll take the example of MaterialContentView.ClickedCommand.
This one holds a Xamarin.Forms.Command instance while typically it is recommended to use System.Windows.Input.ICommand instead. Even Xamarin.Forms uses it, see Button.Command for example.
I personally use ReactiveUI's ReactiveCommand to fulfill my needs. This implementation implements ICommand but does not inherit from Xamarin.Forms.Command, leading to this`kind of binding errors:
Binding: ReactiveUI.ReactiveCommand`2[Aterno.Binding.DisplayableRoom,System.Reactive.Unit] can not be converted to type 'Xamarin.Forms.Command'
Now I use a value converter to convert my commands on the fly:
Hello,
The library exposes a few command properties, I'll take the example of
MaterialContentView.ClickedCommand
.This one holds a
Xamarin.Forms.Command
instance while typically it is recommended to useSystem.Windows.Input.ICommand
instead. Even Xamarin.Forms uses it, seeButton.Command
for example.I personally use ReactiveUI's
ReactiveCommand
to fulfill my needs. This implementation implementsICommand
but does not inherit fromXamarin.Forms.Command
, leading to this`kind of binding errors:Now I use a value converter to convert my commands on the fly:
If you don't rely on this specific implementation of
ICommand
, could you use this base interface instead?The text was updated successfully, but these errors were encountered: