private void OnUnderlinedChanged(TabItemExt tabItem, AvaloniaPropertyChangedEventArgs e) { if (_underline != null) { _underline.ApplyBorderProperties(); } }
private void OnUnderlinePlacementChanged(TabItemExt tabItem, AvaloniaPropertyChangedEventArgs e) { underlinedPseudoClasses.ForEach(item => tabItem.PseudoClasses.Remove(item)); if (e.NewValue == null) { tabItem.PseudoClasses.Add(PseudoClass_UnderlinePlacement_NotSet); } else { tabItem.PseudoClasses.Add(PseudoClass_UnderlinePlacement_Set); Dock dock = (Dock)e.NewValue; if (_underline != null) { _underline.Placement = dock; } } }