CalcBinding
CalcBinding copied to clipboard
Calc expressions do not work for `UInt64`
This outputs raw value in bytes:
{calc:Binding MemoryUsage.UsedBytes, Mode=OneWay}
However, this just outputs empty string (should output kilobytes):
{calc:Binding MemoryUsage.UsedBytes/1024, Mode=OneWay}
UsedBytes if of type UInt64.
DynamicExpresso.Interpreter used by CalcBinding to process expression has not implemented implicit convertion between ulong and int and CalcBinding doesn't support explicit convertion.
To make your code working , just add 'UL' suffix to the constant:
{calc:Binding MemoryUsage.UsedBytes/1024UL, Mode=OneWay}