Skip to content

StackLayout IsEnabled Property does not work #5287

@cbradbaer

Description

@cbradbaer

Description

If a StackLayout isEnabled property is set to false. All children of the StackLayout should be disabled. This is what occurs in Xamarin.Forms. But in Maui, all children of a StackLayout remain Enabled.

Steps to Reproduce

  1. Create a new blank .NET Maui app (Xaml/C#)
  2. In Xaml, add Button and two Entry views to the main StackLayout
  3. Set the isEnabled property of the StackLayout to false
  4. Run the program on any platform
  5. Note that the Button and the two Entry views are still enabled and function normally

Version with bug

Preview 13 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, I was not able test on other platforms

Affected platform versions

Android 11, iOS 11, Windows 10

Did you find any workaround?

Use a DataTrigger to disable all other elements on the page. But this doesn't seem to work for CollectionView.

Relevant log output

No response

Metadata

Metadata

Labels

area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterfixed-in-8.0.0-preview.1.7762Look for this fix in 8.0.0-preview.1.7762!highIt doesn't work at all, crashes or has a big impact.layout-stackp/1Work that is important, and has been scheduled for release in this or an upcoming sprints/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions