Open janusw opened 7 months ago
Can repro this issue at Android & iOS platform on the latest 17.10 preview2 (8.0.14 &8.0.7)
So the documentation about DynamicResource here does not work... here learn.microsoft.com/theming
You're going to give me a heart attack one of these days! Regards,
So the documentation about DynamicResource here does not work... here learn.microsoft.com/theming
Well, in general DynamicResource
works well in most places for me (e.g. with Label.TextColor
and other properties). It only fails for TableSection.TextColor
AFAICT.
FWIW this was raised back in 2022 too but closed because of no repro, https://github.com/dotnet/maui/issues/8487. It is still an issue today with version 8.0.80
Unless I am mistaken this makes a DarkMode impossible for most semi complex apps that will be using a TableView for at least their settings page.
Description
Setting the
TextColor
of aTableSection
viaDynamicResource
does not work.Using a color code directly or a
StaticResource
works well. The problem occurs also withAppThemeBinding
:This is basically a repost of #8487, which was closed without a fix.
Steps to Reproduce
git clone git@github.com:janusw/maui-samples.git
git checkout TableSection_TextColor_bug_repro
8.0/UserInterface/Views/TableViewDemos/TableViewDemos.sln
, build and run it.TableSection
on theMainPage
andSettingsIntentPage
.I added the same text coloring for a
TextCell
/Label
in each case, in order to show that it works well there.Link to public reproduction project repository
https://github.com/janusw/maui-samples/tree/TableSection_TextColor_bug_repro
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
seen on Android 14, iOS 16 & 17
Did you find any workaround?
No response
Relevant log output
No response