Fix SegmentedItem selected bug

This commit is contained in:
chinboy
2025-02-26 16:35:18 +08:00
parent 5bb7d1c661
commit d187d4e230
@@ -100,7 +100,7 @@ internal class SegmentedItemTheme : BaseControlTheme
// 选中状态
var selectedStyle = new Style(selector => selector.Nesting().Class(StdPseudoClass.Selected));
selectedStyle.Add(TemplatedControl.ForegroundProperty, SegmentedTokenKey.ItemSelectedColor);
selectedStyle.Add(TemplatedControl.BackgroundProperty, SharedTokenKey.ColorTransparent);
selectedStyle.Add(TemplatedControl.BackgroundProperty, SegmentedTokenKey.ItemSelectedBg);
enabledStyle.Add(selectedStyle);
// 没有被选中的状态