Add `SizeChanged` event
See original GitHub issueI would like to store the size of an AbsoluteLayout
control within my model, because based on that I can tell whether some controls (i.e. players) within this layout are touching the border. Xamarin.Forms has VisualElement.SizeChanged
, but in Fabulous I couldn’t find something similar. The only thing I found was OnSizeAllocatedCallback
which only works when attached to a ContentPage
.
Would it be possible for you to enable SizeChanged
events for ViewElement
s or how else could I store the size of a specific control within my Elmish model?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Control.SizeChanged Event (System.Windows.Forms)
This event handler displays a message box indicating that the size of the control has changed.
Read more >How to programmatically raise SizeChanged event
It's very strange that the SizeChanged event doesn't fire with your code, it appears to be correct. Maybe the StackPanel doesn't exists in ......
Read more >Window: resize event - Web APIs | MDN
The resize event fires when the document view (window) has been resized. This event is not cancelable and does not bubble.
Read more >resize event | jQuery API Documentation
Bind an event handler to the "resize" event, or trigger that event on an element. ... version added: 1.7.on( "resize" [, eventData ],...
Read more >onresize Event
The onresize event occurs when the browser window has been resized. ... Using the addEventListener() method to attach the "resize" event on the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for reporting. We will add
SizeChanged
and the other missing events from VisualElement.Yeah, I would also prefer that, thanks a lot.