-
Notifications
You must be signed in to change notification settings - Fork 1.9k
StackLayout IsEnabled Property does not work #5287
Copy link
Copy link
Closed
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterfixed-in-8.0.0-preview.1.7762Look for this fix in 8.0.0-preview.1.7762!Look for this fix in 8.0.0-preview.1.7762!highIt doesn't work at all, crashes or has a big impact.It 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 sprintWork that is important, and has been scheduled for release in this or an upcoming sprints/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
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
- Create a new blank .NET Maui app (Xaml/C#)
- In Xaml, add Button and two Entry views to the main StackLayout
- Set the isEnabled property of the StackLayout to false
- Run the program on any platform
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterfixed-in-8.0.0-preview.1.7762Look for this fix in 8.0.0-preview.1.7762!Look for this fix in 8.0.0-preview.1.7762!highIt doesn't work at all, crashes or has a big impact.It 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 sprintWork that is important, and has been scheduled for release in this or an upcoming sprints/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working