Help get this topic noticed by sharing it on Twitter, Facebook, or email.
I’m frustrated

TextBlocks not working with WPF and Visual Studio 2015

Following Lab 1 and chapter 2 in the book (Head First C# 3rd edition) I create text blocks and give them names. Example in chapter 2 - created the TextBlock and renamed it output. I can see in the .xaml code that the name has been assigned. In the .xaml.cs code, however, the reference to output.Text says that the name "output" does not exist in the current context.

Whenever I have a TextBlock it gives me the same problem, regardless of whether I use my code or download yours.

Any help would be appreciated.
1 person has
this problem