1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user