You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
in our application we have some global x:Boolean DynamicResource that we use to show\hide some buttons along all the application.
We have updated from XF 4.8.0.1560 to 5.0.0.2012 and that DynamicResource doesn't update the UI anymore.
The value changes correctly but the UI value not changes.
The issue is present from the XF version 5.0.0.1931.
Up to version 5.0.0.1905 works fine.
I'm using the same verision of Xamarin.Essentials.
Steps to Reproduce
add a x:Boolean resource to the resourceDictionary in App.xaml
ex. <x:Boolean x:Key="MostraMenuDettaglioWo">False</x:Boolean>
add a Button with a command that get and change the resource
ex: bool actual = (bool)Application.Current.Resources["MostraMenuDettaglioWo"]; Device.BeginInvokeOnMainThread(() => { Application.Current.Resources["MostraMenuDettaglioWo"] = !actual; });
bind the resource to something in the XAML page
ex to the text button: <Button BackgroundColor="Red" Command="{Binding TestCommand}" Text="{DynamicResource MostraMenuDettaglioWo}" />
EDIT:
This happens also with the latest version 5.0.0.2083 but only on iOS devices.
Expected Behavior
The value should be chage and also the UI value.
Actual Behavior
The value changes but not the UI value
Basic Information
Version with issue: 5.0.0.1931
Last known good version: 5.0.0.1905
Platform Target Frameworks:
iOS: tested on emulator iPhone with iOS 14.5 and on physical iPhone with iOS 14.6
Hi, We have the same problem. Also only on iOS and also since Xamarin Forms higher than 5.0.0.1905. On Android it works fine.
I have stripped down our app and attached it as example. The DynamicResource is used to set the background color in some places. It is set/changed when you login. The issue is that in our menu page the toolbar is not updated and also when you go back to the settings or login page, you still see the old color.
Steps:
Start the app -> you go to the settings page with a blue background
Press "Save" -> you go to the login page with a blue background
Press "Login with Red theme" -> you go to the demo page with a red toolbar.
Press "Menu" -> you go to the menu page with a red page but the toolbar is blue (= wrong; should be red)
Press "Logout" -> you go to the login page again but the background is still blue (= wrong; should be red)
(the theme is saved; if you restart the app you will get your last theme)
@jsuarezruiz Any news on this issue? We are now stuck to this old version of Xamarin Forms. It is so old that we cannot use Hot Reload anymore and we have to build our iOS version with an old version of Xcode on an old mac that still runs Big Sur.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Hi,
in our application we have some global x:Boolean DynamicResource that we use to show\hide some buttons along all the application.
We have updated from XF 4.8.0.1560 to 5.0.0.2012 and that DynamicResource doesn't update the UI anymore.
The value changes correctly but the UI value not changes.
The issue is present from the XF version 5.0.0.1931.
Up to version 5.0.0.1905 works fine.
I'm using the same verision of Xamarin.Essentials.
Steps to Reproduce
ex.
<x:Boolean x:Key="MostraMenuDettaglioWo">False</x:Boolean>
ex:
bool actual = (bool)Application.Current.Resources["MostraMenuDettaglioWo"]; Device.BeginInvokeOnMainThread(() => { Application.Current.Resources["MostraMenuDettaglioWo"] = !actual; });
ex to the text button:
<Button BackgroundColor="Red" Command="{Binding TestCommand}" Text="{DynamicResource MostraMenuDettaglioWo}" />
EDIT:
This happens also with the latest version 5.0.0.2083 but only on iOS devices.
Expected Behavior
The value should be chage and also the UI value.
Actual Behavior
The value changes but not the UI value
Basic Information
Environment
Show/Hide Visual Studio info
Screenshots
Download videos
The text was updated successfully, but these errors were encountered: