Resource modifications aren't being reflected?

If I add / modify say a textView on a layout, I am unable to get a reference of the item added/modified by referring to it as :

Resources.Id.

Why is this an issue?

There is no problem with namespaces.

To verify I created a new solution, and complied it. Worked fine.

I added a text element and tried referring it in MainActivity.cs as Resources.Id.. I had compile issues.

Answers

  • ShailDShailD USMember ✭✭

    You want Resource.Id and not Resources.Id.

    image

  • Nishitha.0813Nishitha.0813 USMember
    edited March 2015

    Sorry that was a typo. I was using resources.Id.

    I switched to a licensed version from the trial version of Xamarin and the same piece of code ran just fine. Seems like it was an unstable build that had auto-updated on my system

Sign In or Register to comment.