Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static View Bindings: Wiring up events drops out of the Elmish model #4

Closed
dsyme opened this issue Feb 7, 2018 · 2 comments
Closed

Comments

@dsyme
Copy link
Collaborator

dsyme commented Feb 7, 2018

See discussion here: elmish/Elmish.WPF#33. Basically, if your Xamarin Xaml wires up an event then you end up dropping out of the Elmish programming model, which feels wrong

Conversation with Xamarin.Forms archtiects:

I am wondering if it would make sense to allow

                ItemSelected=“{Binding [ItemSelected]}”

where the view model property returns a delegate of an appropriate type. XF would store this as if it were a one-way property binding, and invoke the delegate as needed when firing the event. That seems to make sense, at least in theory.

@dsyme dsyme changed the title Wiring up events drops out of the Elmish model Static Bindings: Wiring up events drops out of the Elmish model Apr 30, 2018
@dsyme
Copy link
Collaborator Author

dsyme commented Apr 30, 2018

Note this doesn't affect dynamic views

@dsyme dsyme changed the title Static Bindings: Wiring up events drops out of the Elmish model Static View Bindings: Wiring up events drops out of the Elmish model Apr 30, 2018
@dsyme dsyme closed this as completed Jun 19, 2018
@dsyme
Copy link
Collaborator Author

dsyme commented Jun 19, 2018

Since this is only static bindings we can ignore this for now

TimLariviere added a commit that referenced this issue Mar 29, 2022
Ported TicTacToe sample - almost fully working
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant