dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.24k stars 1.76k forks source link

ShellContent IsEnabledProperty does not work #5161

Open HobDev opened 2 years ago

HobDev commented 2 years ago

Description

In Shell I am using TabBar. On a ShellContent I set IsEnabled="False". But the tab is still enabled for interaction.

Steps to Reproduce

Run the repro project. Click on both tabs. The disalbed tab is also navigable. MauiBugSample.zip

Version with bug

Preview 13 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

iOS 15 and Android 11

Did you find any workaround?

When using Flyout, use the IsEnabled property of FlyoutItem. When using Tabs use the IsEnabled property of Tab.

Relevant log output

No response

jfversluis commented 2 years ago

Possibly/probably related in Xamarin.Forms: https://github.com/xamarin/Xamarin.Forms/issues/14285

PineYi commented 2 years ago

Reproduce in Android 11 with above project.

samhouts commented 2 years ago

Still an issue in 6.0.300-rc.4.5681

ghost commented 2 years ago

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.

nogginbox commented 1 year ago

When I use the IsEnabled property on a FlyoutItem, you can still click on the item and it will become selected. The app does not navigate to the page, but I'd expect not to be even able to click on it. Is that the same bug as descibed in this issue?

And, if not one is working on this, can you provide me some tips where to look and what to change so I can fix it?

XamlTest commented 1 year ago

Verified this issue on Visual Studio Enterprise 17.6.0 Preview 3.0. Repro on Android emulator (13.0-API 33) with below Project: MauiBugSample.zip

ajay-verma8245 commented 10 months ago

This issue still persists.. anyone found solution for this?

SaeedAtEposcompany commented 7 months ago

This issue still persists. is this ever going to be fixed?

JaisonAnderson13 commented 1 month ago

This is still an issue, once you get to fixing it, it'd be great to see the MenuItem also greyed out, Thanks!