[BUG] DynamicResource no longer works in .Net 8 MAUI
jamesv-7 opened this issue · comments
Description
Using DynamicResource in xaml is no longer working in .Net 8 MAUI with Prism Maui. The only way to get it to work is use StaticResource which defeates the purpose of DynamicResource.
Steps to Reproduce
- Create new .Net 8 MAUI Project.
- Add ResourceDictionary with a color to App.xaml
<Application.Resources>
#5ACCCC
</Application.Resources> - Set BackgroundColor="{StaticResource main-color}" of xaml
- Change color with button click or another way
Resources["main-color"] = Colors.Red; - Initial xaml background color is white and color never changes on button click
Platform with bug
.NET MAUI
Affected platforms
iOS, Android
Did you find any workaround?
No
Relevant log output
No response
- DynamicResource does work in .net8 maui
- This has nothing to Prism library
DynamicResources do work in .Net 8 Maui until you install Prism Maui then it no longer does.
I was wrong - you are correct! I got it working.
Glad to know you are here if needed.
When should we expect a production version of Prism for MAUI?
We had originally planned on releasing a stable version last month however due to sudden increase of issues for MAUI the last couple of months we have temporarily decided to delay that. There are a couple of small issues I am planning on getting some PRs for and once those are in we'll do another preview and re-evaluate from there.