Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding.Create error while doing binding with string type left and double type right property #2

Open
dksdheeraj opened this issue Apr 7, 2020 · 0 comments

Comments

@dksdheeraj
Copy link

Hi ekalchev,

I used binding to update product price on Xamarin Android UI on real time update through web socket.

But these is one issue, when I use expression string to string like below it works fine. But not working when I have left side string with double on right side.
Working:- temp.Add(Binding.Create(() => listHolder.FirstRightTextView.Text, () => data.LastPriceStirng));
Not Working:- temp.Add(Binding.Create(() => listHolder.FirstRightTextView.Text, () => data.LastPrice));

data model has string LastPriceStirng; double? LastPrice;

Error Message:
The type arguments for method 'Binding.Create(Expression<Func>, Expression<Func>, params object[])' cannot be inferred from the usage. Try specifying the type arguments explicitly.

Can you please suggest how to resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant