✅ When I enter Visual Studio WPF, all lines of code in all scripts are underlined. How to fix this?
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1255052946513723506/image.png)
14 Replies
What does it say when you hover over that with your mouse?
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1255056421750575145/d859d88b-6aa9-48d8-acc2-7d3043073c9c.png)
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/The
App.xaml
Your ResourceDictionary.xaml
@Lerock (Pan Bułka) The above is just the syntax and example of using a resource dictionary![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1255062160422211594/image.png)
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1255062160661549119/image.png)
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1255062160908877887/image.png)
I would assume the error would be in the actual ResourceDictionary file you have, 'MenuButtonTheme' file. Just check the syntax there
wait
I restarted the Visual Studio 5th time and it is fixed now
That is so weird lmao. At least it is fixed now.
Yeah, Thank you for help
$close
If you have no further questions, please use /close to mark the forum thread as answered
twoja stara
Normally rebuilding the project helps with those sorts of WPF errors