fsprojects / FsXaml

F# Tools for working with XAML Projects
http://fsprojects.github.io/FsXaml/
MIT License
171 stars 48 forks source link

Do we want a FunctionBindingExtension #50

Open JohanLarsson opened 7 years ago

JohanLarsson commented 7 years ago

Would be similar to FunctionExtension but enable binding to functions in the viewmodel. Thinking something like:

MouseLeftButtonDown="{fsxaml:Handler {fsxaml:FunctionBinding onMouseLeftDown},
                                     {fsxaml:Function local:Map.mouseEventArgsToPoint}}"

Not sure about it, perhaps it is just api bloat. It would rid us of the need for an IObserver<'t>/ICommand in the viewmodel.

downsides