Layouts block input even when they do not have a background (null background) #19124
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
t/bug
Something isn't working
Milestone
Description
.NET MAUI does things a bit different to other XAML worlds where a layout will block interaction unless that layout is explicitly marked as input transparent.
The default for other XAML platforms, like WinUI, is to allow interaction through the layout - unless you assign a background - even a transparent color. Setting a null background makes the layout no longer hit testable and input passes through.
I have seen arguments for both ways where adding a layout was expected to block but did not. Then setting a color suddenly changes this - especially if that color is transparent. The other side always expected the layout to not block for null/transparent because you can see through it.
Some options:
InputTransparent="True"
CURRENTInputTransparent
propertynull
backgrounds do not block, only transparent/colorsnull
vsTransparent
colorSteps to Reproduce
The text was updated successfully, but these errors were encountered: