For a good while now, VS 2022 has been displaying incorrect error squiggles in the code-behind .cs file for WPF controls anywhere that a FrameworkElement is referenced in the code. The code compiles and runs fine but it has become such a hindrance that I’ve had to disable the error squiggles altogether. Has anyone experienced and found a solution to this? Deleting the .vs folder works only temporarily. I searched a lot and best/latest I could get is the issue registered with Microsoft below.
https://developercommunity.visualstudio.com/t/Incorrect-error-messages-in-xamlcs-fi/10595570?space=41&sort=newest