DependencyProperty with double type.
Posted: 10 Nov 2015, 13:40
I am trying to declare a DependencyProperty:
But when building Noesis fails with the error message:
How come?
I am using Noesis with Unity.
Code: Select all
public static DependencyProperty BatteryLevelProperty =
DependencyProperty.Register("BatteryLevel",
typeof(double),
typeof(BatteryIndicator),
new PropertyMetadata(0, OnBatteryLevelChangedCallback));If I change the type of the property to float instead, it seems to work without issue. When I digged around a bit in the Noesis code for answers, I discovered that it seems like double is not supported (in e.g. NoesisExtend.cs).ApplicationException: Reflection TypeId 'System.Double' for type 'System.Double' already used to register type '.?AVSystemDouble@Gui@Noesis@@'
How come?
I am using Noesis with Unity.