When working with Elmish.WPF from WPF C# code-behind, I dislike using ICommand because it is untyped. OneWayToSourceT bindings are quite helpful, but sometimes I want to pass the call to a different part of my app as an Action<T>. Then I have to create a lambda manually that takes the new value and sets it. What would you think of implementing a setter binding type that is exposed directly as an Action<T>?
When working with Elmish.WPF from WPF C# code-behind, I dislike using
ICommand
because it is untyped.OneWayToSourceT
bindings are quite helpful, but sometimes I want to pass the call to a different part of my app as anAction<T>
. Then I have to create a lambda manually that takes the new value and sets it. What would you think of implementing a setter binding type that is exposed directly as anAction<T>
?