Open Youssef1313 opened 11 months ago
cc @dr1rrb
Looking at the code, the UpdateHitTest
in invoked in the ctor in order to properly initialize (i.e. invoke the coerce method that depends on multiple other properties) of the HitTestVisibilityProperty
. It could probably be deferred to the loading.
What would you like to be added
DependencyObjectStore
is evaluated lazily for performance reasons:https://github.com/unoplatform/uno/blob/a252c67d11ce9f2a8a6444881b58af0065262bbd/src/SourceGenerators/Uno.UI.SourceGenerators/DependencyObject/DependencyObjectGenerator.cs#L792-L804
However, all UIElements will access the store in the constructor.
It's worth investigating if we can avoid the
UpdateHitTest
call in UIElement constructor to avoid realizing manyDependencyObjectStore
sWhy is this needed
No response
For which platform
No response
Anything else we need to know?
No response