StackLayout.IsEnabled = FALSE does not Disable the Child Components within it #6008
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Description
In Maui App, if a StackLayout is disabled with IsEnabled = FALSE, all the child controls within it, should be disabled also. But Maui ignores StackLayout.IsEnabaled = FALSE, and all child controls are still enabled. In comparison, Xamarin.Forms will disable all child controls. (See both attached videos)
In Maui:
IsEnabledTestMaui.mp4
In Xamarin.Forms:
IsEnabledTestXF.mp4
Source Code:
XAML:
https://github.com/cbradbaer/BugReports/blob/main/StackLayoutIsEnabled/DisableTestPage.xaml
Code Behind:
https://github.com/cbradbaer/BugReports/blob/main/StackLayoutIsEnabled/DisableTestPage.xaml.cs
Steps to Reproduce
Version with bug
Preview 14 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 11
Did you find any workaround?
I used Triggers to individually set IsEnabled to false on all the child controls. Ugly, but it worked.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: