资源本地化 xaml
资源本地化 xaml
我试图访问资源文件中的字符串,但在TextBlock的文本中出现了错误。
"The name UIResources" does not exist in the
"clr-namespace:ProjectName.Resources"."
文件存在且所有属性都是公开的。我做错了什么吗?
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:MyApp.Project1" xmlns:p="clr-namespace:MyApp.Project1.Resources" mc:Ignorable="d" Title="TestWindow" Height="300" Width="300">