Hi Tahmina,
I don't see anything particularly wrong with the code. I've built a test app using that precise code and it's working as expected.
Test Demo
Find the test app attached, here's the result at runtime:
The ViewModel is simply:
Rebuilding After Manual Clean
Since you mentioned that there was a version and package change, you could be experiencing a common Xamarin problem with assembly references.
Take the follow steps to get a clean build:
1 - Close Visual Studio
2 - Navigate to the solution in File Explorer
3 - Go through
every project and permanently delete that project's
bin and
obj folders
4 - If there is a
Packages folder in the solution root, delete that as well (
you shouldn't have this, but just in case)
5 - Open the solution in Visual Studio again
6 - Rebuild the Class Library project first
7 - Rebuild the target platform project next (Android in this case)
When these steps are completed, you've manually ensured that you've compiled the app using the latest references.
Further Assistance
If you are still having trouble, please
open a Support Ticket here and share the project with us so we can investigate directly. Alternatively, if you can make my demo reproduce the issue, send that to us instead.
Note: If you delete the bin and obj folders before zipping up the solution, the ZIP file size should only be a few MBs (
you can attach a ZIP file to a ticket reply).
Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items