IsEnabled is unable to update visual appearance #13971
Labels
legacy-area-controls
Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor
platform/android 🤖
s/needs-repro
Attach a solution or code which reproduces the issue
s/no-recent-activity
Issue has had no recent activity
t/bug
Something isn't working
Description
I'm working on a MAUI app, that's currently targeting .net 7.
I have an issue with one of my pages, where data inputs are enabled/disabled depending on data we get from an API.
I navigate to this page, via a relay command, from a CollectionView. It hits the following command:
I hit the OnNavigateTo method in my page:
public override async void OnNavigatedTo(INavigationParameters parameters)
I have an observable property in my ViewModel
Which is set in the OnNavigatedTo method.
I have multiple fields in my xaml file like this:
The binding works fine, and actually does enable and disable them correctly. However the visual state is always as if it's disabled:
If i set my _allowEdit to true, the visual appearance will always stay as if it's enabled, even though it might be disabled.
Steps to Reproduce
Link to public reproduction project repository
I cannot provide this atm
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 13
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: