Forum General

MainPage.xml.cs

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?

Answers

  • Massimo_98Massimo_98 Member ✭✭

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

Sign In or Register to comment.