Error in binding resource string with a view in WPF

前端 未结 1 438
攒了一身酷
攒了一身酷 2020-12-30 05:04

I am trying to bind a static string defined in the Resources.resx called title. When I run the application I get the following error below.

Upon investigating the err

相关标签:
1条回答
  • 2020-12-30 05:49

    It seems that you need to use the PublicResXFileCodeGenerator generator.

    Try right clicking on the resource file in the Visual Studio Solution Explorer and selecting the Properties option and then setting the Custom Tool property to PublicResXFileCodeGenerator. You can also set the Access Modifier property to Public in the resources designer window in Visual Studio.

    0 讨论(0)
提交回复
热议问题