Repository navigation
feat(flyout): Implement FlyoutBase.OverlayInputPassThroughElement - #12853
ramezgerges wants to merge 3 commits into
Conversation
| // Skipping already declared property AllowFocusOnInteraction | ||
| // Skipping already declared property Target | ||
| #if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ | ||
| #if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || false || __NETSTD_REFERENCE__ || __MACOS__ |
There was a problem hiding this comment.
I'm trying stuff out on skia for now.
| new PointerEventArgs(args.GetCurrentPoint(null), args.KeyModifiers), | ||
| args.OriginalSource as UIElement); | ||
|
|
||
| elementToBeHit.OnPointerDown(eventArgs); |
There was a problem hiding this comment.
I'm not sure if this will exactly match the behaviour on Windows. I haven't tested this yet, but I'm not sure of the order of events in the case of having event handlers with HandledEventsToo. Should the first event completely propagate to the top and only then trigger the new event, or should the new event be triggered within the first event propagation cycle (like I've done here)?
| while (child.MoveNext()) | ||
| { | ||
| var childResult = SearchDownForTopMostElementAt(posRelToElement, child.Current!, getVisibility, isChildStale); | ||
| var childResult = SearchDownForTopMostElementAt(posRelToElement, child.Current!, getVisibility, isChildStale, childrenFilter); |
There was a problem hiding this comment.
@dr1rrb Do you know why the recursive call didn't originally include the childrenFilter? I wanted to apply the filter to all the recursive calls, and I thought that was the original intent as well, so I changed it. If that's not correct, I could add a new method that does what I want.
There was a problem hiding this comment.
Yes most probably a bug ... BTW just noticed that this filter is no longer used, if you don't need it we could just remove it.
|
@ramezgerges I think we can close this one as #13968 implements it. |
GitHub Issue (If applicable): closes #12681
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
Copilot Summary
🤖 Generated by Copilot at 4096839
This pull request adds a new feature to the
Flyoutcontrol that allows it to ignore pointer input on a specified element. It also improves the pointer input handling forFlyoutcontrols and makes some methods more accessible and flexible for reuse. It affects the filesFlyoutBase.cs,FlyoutPopupPanel.cs,PopupPanel.cs,VisualTreeHelper.cs, andUITests.Shared.projitems.PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information
Internal Issue (If applicable):