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