maui
maui copied to clipboard
Connect gestures LifeCycle to Container and Window
Description of Change
- Only instantiate and setup gestures if a window has been set on a
VisualElement. This way, when theViewis removed from the visual tree the platform gestures all get removed. This should help some with memory leaks. - When the
ContainerViewproperty mapper runs we now re-evaluate the gestures to see if we need to apply them to a new view
I moved the GestureManager behavior to GesturePlatformManagers so that I could just move all the Gesture handling out of VisualElement and into a separate class to help simplify VisualElement up a bit.
I added some internal interfaces that map to Controls view properties which let me write some better unit tests.
Issues Fixed
Fixes #12116