I’ve done some testing and as you say, when the View size is changed it will fire 2+ events.
If I resize a view I get two, if I create a new floating viewport I get quite a few event fires.
My guess is no. It’s likely that on our end the Viewport is modified twice when the size is changed.
I’m listening to this event to pin an Eto-based HUD element to a fixed position in the viewport. To avoid multiple redraws, I added a check to execute my logic only when the screenrectangle is different to the previous one.
I’m fine with this workaround but wanted to let you know about the underlying issue.
I’m doing the same in Python and also noticed the multiple event firing for what it’s worth.
Separately but related, it seems that a full screen toggle does not constitute a ViewModified event?
Do you all see that behavior as well?
If entering full screen, all the Eto.Forms Forms seem to shift downward slightly and then return to their correct position when toggling back to not full screen.
I read somewhere that full screen is different on Mac vs Windows because of what both OSs constitute as a “window” or “view” or whatever.