Xaml Windows 8应用程序:未找到字符串

Xaml Windows 8应用程序:未找到字符串,xaml,windows-8,microsoft-metro,Xaml,Windows 8,Microsoft Metro,我正在使用XAML和C#开发一个Windows8应用程序。 我创建了一个用于存储本地化字符串的资源字典 当使用“”标记时,编译器会识别它,但表示它不受支持 在我当前的配置中: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns

我正在使用XAML和C#开发一个Windows8应用程序。 我创建了一个用于存储本地化字符串的资源字典

当使用“”标记时,编译器会识别它,但表示它不受支持

在我当前的配置中:

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="using:System">

    <s:String x:Key="start">Start</s:String>
    <s:String x:Key="pause">Pause</s:String>
    <s:String x:Key="stop">Stop</s:String>

    <s:String x:Key="deleteSelected">Delete Selected</s:String>

    <s:String x:Key="timer">Timer</s:String>
    <s:String x:Key="timers">Timers</s:String>
    <s:String x:Key="stopper">Stopper</s:String>
    <s:String x:Key="stoppers">Stoppers</s:String>
    <s:String x:Key="alarmClock">Alarm Clock</s:String>
    <s:String x:Key="alarmClocks">Alarm Clocks</s:String>

    <s:String x:Key="recordLap">Record Lap</s:String>
</ResourceDictionary>
改用这个:

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

     <x:String x:Key="start">Start</x:String>

开始
请参见使用此选项:

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

     <x:String x:Key="start">Start</x:String>

开始

请参见

也许您应该看看内置翻译系统:也许您应该看看内置翻译系统: