Error when adding a property to my XAML code
Sebastian Martinez Santos
21
Reputation points
When I try to add KeyDown="Window_KeyDown" to my window, It does not display any errors. When I try to run the program, It shows a compilation error.
By removing KeyDown="Window_KeyDown" the program runs normally. The error also occurs with any other type of object, from labels to textboxes.
My question is why it is not showing me any kind of error, but not allowing me to run it.
Probably a stupid question, sorry, but it's driving me crazy. thanks!