Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackLayout IsEnabled Property does not work #5287

Closed
cbradbaer opened this issue Mar 14, 2022 · 14 comments · Fixed by #12488
Closed

StackLayout IsEnabled Property does not work #5287

cbradbaer opened this issue Mar 14, 2022 · 14 comments · Fixed by #12488
Assignees
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! high It doesn't work at all, crashes or has a big impact. layout-stack p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@cbradbaer
Copy link

cbradbaer commented Mar 14, 2022

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

@cbradbaer cbradbaer added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Mar 14, 2022
@PineYi PineYi added the s/triaged Issue has been reviewed label Mar 15, 2022
@PineYi
Copy link

PineYi commented Mar 15, 2022

Verified Repro with Android 11. Repro Project is available:
#5287.zip

@PineYi PineYi added s/verified Verified / Reproducible Issue ready for Engineering Triage and removed s/triaged Issue has been reviewed labels Mar 15, 2022
@jfversluis jfversluis added area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Mar 15, 2022
@jsuarezruiz jsuarezruiz added the high It doesn't work at all, crashes or has a big impact. label Mar 15, 2022
@Redth Redth added this to the 6.0.300-rc.2 milestone Mar 21, 2022
@hartez hartez modified the milestones: 6.0.300-rc.2, 6.0.300-rc.3 Apr 19, 2022
@Redth Redth modified the milestones: 6.0.300-rc.3, 6.0.300 Apr 27, 2022
@davidortinau davidortinau added the p/0 Work that we can't release without label Apr 29, 2022
@jsuarezruiz jsuarezruiz self-assigned this May 6, 2022
@kristinx0211
Copy link

repro on windows with 17.3.0 Preview 2.0 [32506.368.main]. <StackLayout IsEnabled="False" > does not work. repro project:
MauiApp2.zip

@Redth Redth unassigned hartez May 9, 2022
@samhouts
Copy link
Member

Still an issue on 6.0.300-rc.4.5772

@samhouts samhouts modified the milestones: 6.0.300, 6.0.300-servicing May 12, 2022
@GDT48
Copy link

GDT48 commented Jul 7, 2022

Still an Issue on
Microsoft Visual Studio Community 2022 (64-bit) - Preview
Version 17.3.0 Preview 2.0

@samhouts samhouts added p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint and removed p/0 Work that we can't release without labels Jul 26, 2022
@justcivah
Copy link

This is a rather annoying and serious bug ... When will we have a fix?

@cbaer-extron
Copy link

It's already been 8 months since I opened this issue. Still waiting. I had to work around it by using Visual State Manager on each control within the stacklayout. Really ugly.

@XamerDev
Copy link

XamerDev commented Nov 25, 2022

I'm still waiting too. IsEnabled doesn't work at all

So in general if I want to create some appearing control after clicking a button and disable other controls during appearing of it, I'm still unable to do so. after 8 months
I tested it on android and grid/border controls

@hartez hartez assigned hartez and unassigned SotoiGhost and jsuarezruiz Nov 28, 2022
@dnovaprove
Copy link

@justcivah You're right! This is so frustating for us...

@ghost
Copy link

ghost commented Jan 18, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@imanGDZ
Copy link

imanGDZ commented Feb 2, 2023

This is a serious issue and workaround it is definitely not efficient nor clean. Would appreciate a fix soon. Thanks!

@mattleibow
Copy link
Member

This has been fixed in #12488

@acaliaro
Copy link

acaliaro commented Feb 2, 2023

This has been fixed in #12488

@mattleibow when will the next update be available?

@hosamyousof
Copy link

@mattleibow when will the next update be available?

@samhouts samhouts added the fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! label Feb 22, 2023
@samhouts samhouts modified the milestones: Backlog, 8.0-preview1 Feb 22, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! high It doesn't work at all, crashes or has a big impact. layout-stack p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet