Hello,
Please change the Int64
to long
for your property.
public static readonly BindableProperty Amount64Property = BindableProperty.Create(
propertyName: nameof(Amount64),
returnType: typeof(long),
declaringType: typeof(NewContent1),
defaultValue: default(long)
);
public long Amount64
{
get => (long)GetValue(Amount64Property);
set => SetValue(Amount64Property, value);
}
If you want to convert long to Int64, you can set convert it directly like following code. In C#, long and Int64 are the same. Long is a C# keyword, and Int64 is a structure in the .NET System namespace, both of which represent 64-bit signed integer types.
long myLong = 123456789L;
Int64 myInt64 = myLong;
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.