修复表格中对样式的依赖与更新

This commit is contained in:
2026-06-28 20:46:07 +08:00
parent 84b60c6835
commit 6c0478dc42
14 changed files with 5300 additions and 356 deletions
+2 -2
View File
@@ -103,12 +103,12 @@ namespace XericUI.Core.StyleSheetUI
public void SubscribeAll(Action<StyleValue> callback)
{
foreach (var f in AllFields) { if (f != null) f.OnValueChanged += callback; }
foreach (var f in AllFields) { if (f != null) f.Member.OnValueChanged += callback; }
}
public void UnsubscribeAll(Action<StyleValue> callback)
{
foreach (var f in AllFields) { if (f != null) f.OnValueChanged -= callback; }
foreach (var f in AllFields) { if (f != null) f.Member.OnValueChanged -= callback; }
}
#endregion