标签: c# wpf xaml objectdataprovider
<TextBlock Text="{Binding Path=String46 , Source={StaticResource CurrentResources}}">
此代码在运行时工作,构建项目时没有错误。 但是,每次修改xaml代码时,'String46'都会用以下工具提示加下划线:
"The property was not found in ObjectdataProvider".
这仅出现在VS2017中,而不是旧的VS版本中。