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

Q: How to bind to [mouse] events? #199

Closed
KingKnecht opened this issue Feb 28, 2020 · 2 comments
Closed

Q: How to bind to [mouse] events? #199

KingKnecht opened this issue Feb 28, 2020 · 2 comments

Comments

@KingKnecht
Copy link

Hi,

I'm tyring to write some drawing application. Of course I would need to handle mouse events (move, button down, button up etc) in my message loop.
I have already discovered this issue #33
with the awesome Fable example

How would I do that in Elmish.WPF? From the issue mentioned, it's not clear for me how to accomplish that.
It would be ok for me to write my own Canvas which provides commands instead of events. Is that the way to go or is there another/better solution?
Thx.

@cmeeren
Copy link
Member

cmeeren commented Feb 28, 2020

Check out the bottom of the readme which points to the EventBindingsAndBehaviors sample. Let me know if you still have questions. :)

@TysonMN
Copy link
Member

TysonMN commented Feb 28, 2020

Hello @KingKnecht. I asked a related question in #191. I have learned somethings since then, so I just updated that issue with some more information. Like @cmeeren said, let us know if you have any questions.

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

3 participants