Open brinko99 opened 1 year ago
Is that some similar as https://github.com/unoplatform/uno/issues/13887?
Is that some similar as #13887?
I reported the other as well. No, they are not related.
This issue affects the design and styling of the TextBox
when a visual state is applicable. The other relates specifically to the inheritance of the IsEnabled
property.
Thanks
Current behavior
Under Skia.Gtk, the
TextBox
foreground color does not honor visual state styling. For example, theTextBox
foreground color under a disabled state does not change as expected.The
TextBox
is implemented with aScrollViewer
hosting the content. Visual states change theForeground
of this element but these changes have no runtime effect.Even hardcoding the
Foreground
as below has no effect.Changes to
TextBox.Foreground
itself do work as expected.Expected behavior
No response
How to reproduce it (as minimally and precisely as possible)
See the attached repo project. Two
TextBoxes
are defined, one with default styling, one with a hardcodedContentElement
foreground. In both cases, the non-disabled foreground color is displayed.UnoAppTextBoxRepo.zip
Workaround
No response
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
Version 4.10.26
Affected platforms
Skia (GTK on Linux/macOS/Windows)
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response