Proposal: Update light-dismiss layer to pass the click through to underlying UI #917
Labels
area-Flyouts
feature proposal
New feature proposal
needs-winui-3
Indicates that feature can only be done in WinUI 3.0 or beyond. (needs winui 3)
team-Controls
Issue for the Controls team
Proposal: Update light-dismiss layer to pass the click through to underlying UI
Summary
Today, Xaml's light dismiss layer swallows the pointer click that dismisses its transient UI. So with a flyout open, when a user clicks on a button through the invisible light-dismiss layer, the button does not receive the click event. Instead, the click is used to dismiss the flyout (and its invisible light-dismiss layer). The user is forced to click on the button a second time to activate it.
App developers can specify the button in the above example as the flyout's
OverlayInputPassThroughElement
. However, using this property results in behavior that feels inconsistent to end-users. There's no visual indication whether the click will pass through the light dismiss layer or be swallowed by it.A more straight-forward solution that avoids slowing down users and reduces inconsistency of experiences is for the light dismiss layer to never swallow its dismiss click.
Rationale
LightDismissOverlayMode
enum, but this smoke layer is typically only turned on for Xbox. Rather than adding more, potentially confusing, visual affordances it feels cleaner to eliminate the need for such an affordance.Scope
Important Notes
This proposal was opened based on discussion #858.
Open Questions
The text was updated successfully, but these errors were encountered: