当我修改资源文件(
.resx
)并添加或修改文本时,我的资源构造函数总是转为 internal,然后当我运行我的 Silverlight 时,在我的绑定 XAML 中出现错误。有没有办法避免这种情况?我需要进入资源的设计器,并将构造函数设置为 public 来解决问题。我在 XAML 文件中像这样使用我的资源。 <UserControl.Resources>
<resources:LibraryItemDetailsView x:Key="LibraryItemDetailsViewResources"></resources:LibraryItemDetailsView>
</UserControl.Resources>
<TextBlock FontSize="12" FontWeight="Bold" Text="{Binding Path=FileSelectedText3, Source={StaticResource LibraryItemDetailsViewResources}}"></TextBlock>