This commit is contained in:
CortexCore
2024-05-31 01:23:15 +08:00
parent c798b224be
commit 299082fe27
164 changed files with 3604 additions and 2018 deletions

View File

@@ -59,7 +59,16 @@ namespace BITKit.UX
//ve = document.rootVisualElement.Q(bindPathAtt.Path);
if(bindPathAtt.CanBeNull is false && ve is null)
BIT4Log.LogException(new NullReferenceException($"未找到{bindPathAtt.Path}"));
fieldInfo.SetValue(self,ve);
if (fieldInfo.FieldType == typeof(UXContainer))
{
fieldInfo.SetValue(self, new UXContainer(ve));
}
else
{
fieldInfo.SetValue(self, ve);
}
}