This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
TabStrip TabItem:selected style does not take effect #17936
Labels
You can continue the conversation there. Go to discussion →
Describe the bug
The Avalonia version is 11.2.3.
I used a control called TabStrip, and to change the font color of the selected item, I customized a style file, but found it ineffective. See the animated GIF below for reference:
When switching to the TabControl control, similar style code works fine. See the animated GIF below for reference:
To find the cause, I tried running it to see the tree structure and found that TabStrip contains TabItem and TabStripItem, while TabStripItem also contains TabItem. After directly modifying the TextElement.Foreground of TabItem in TabStripItem, it took effect.
I am not sure if this is a bug or if there is an issue with my style setting. If it's my own problem, I apologize.
To Reproduce
Using the TabStrip control and setting the style to change the color when selected.
Expected behavior
No response
Avalonia version
11.2.3
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: