❔ Hi i need wpf help
im following this article https://wpf-tutorial.com/xaml/events-in-xaml/ and i want to know why doesnt the text light up when i paste it in like it does in the example heres my xaml code so far (its my first one im doing a pratice to sharpen skills/learn) here is my full xaml code https://pastebin.com/gRimzLhj
8 Replies
What do you mean "doesn't light up"?
You mean the colors?
yea the code
like Name doesnt turn red like it would when you typed it out in the example
Well, the code on the left is just on some website
It doesn't have actual, proper syntax highlighting, just some CSS
Your code on the right, I assume, is grayed out because you don't have the methods defined or something
The code's highlighted, so hover over it and see what the issue is
Thank you for the reply I’ll try that as soon as I can.
The reason you are getting the squiggly line is because you did not paste those properties inside the Grid's angle brackets.
In the example its like this:
But in your code you have:
Ah, good eye, completely missed that
ty so much! 😄
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.