I had the same error at a 'TextBlock' within a grid cell which defined its content in the body, not in 'Text'. As soon as the content was moved to 'Text' the exception vanished. But I needed multiple lines. So I placed the TextBlock inside a 'ContentControl' or 'Border' and both worked. I guess in my case it's a bug in Visual Studio. The version is 17.13.7.