Forum General


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.


Lost_OliveLost_Olive Member ✭✭

I've got a label in my MainPage.xml with the name 'txtInhoud', but when I try to set the text of it in my MainPage.xml.cs, I get the error that the name doesn't exist in the current context.

I've tried rebuilding the project and deleting the bin and obj files, but that didn't work.

Any help?


  • Massimo_98Massimo_98 Member ✭✭

    Did you put the InitializeComponent(); method in your MainPage.xaml.cs constructor?

Sign In or Register to comment.