1
This commit is contained in:
@@ -71,6 +71,10 @@ namespace BITKit.IData
|
||||
Name = attribute.Name;
|
||||
VisualElement.GetType().GetProperty("label",ReflectionHelper.Flags)!.SetValue(VisualElement, Name);
|
||||
}
|
||||
if (fieldInfo.GetCustomAttribute<ReadOnlyAttribute>() is not null)
|
||||
{
|
||||
VisualElement.SetEnabled(false);
|
||||
}
|
||||
if(VisualElement is INotifyValueChanged<TDataType> notifyValueChanged)
|
||||
{
|
||||
notifyValueChanged.SetValueWithoutNotify(currentValue);
|
||||
@@ -80,6 +84,8 @@ namespace BITKit.IData
|
||||
currentValue = x.newValue;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
return VisualElement;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user