教程和< Application.Resources>的问题; [英] Problem with tutorial and <Application.Resources>

查看:65
本文介绍了教程和< Application.Resources>的问题;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用VS2010来创建应用程序,这是 I'米 尝试按照 http://msdn中的指南进行操作. microsoft.com/en-us/library/ff637520(v=vs.92).aspx  如何:为Windows Phone构建本地化的应用程序"但是我有一个问题 在"中打开您的App.xaml文件,并将以下XAML代码添加到< Application.Resources> section(...)". 

I've just started using VS2010 to create apps and this is my first ever experience as a developer. I'm trying to follow the tutorial in http://msdn.microsoft.com/en-us/library/ff637520(v=vs.92).aspx "How to: Build a Localized Application for Windows Phone" but i've a problem in "Open your App.xaml file and add the following XAML code to the <Application.Resources> section(...)". 



< Application.Resources >   
2         < local " clr-namespace:WindowsPhoneApplication1"  
3 ;      x: = " LocalizedString"  
4              b ;          < span style ="color:blue">/> </ Application.Resources > ;  
1 <Application.Resources>  
2         <local:LocalizedString xmlns:local="clr-namespace:WindowsPhoneApplication1" 
3                                x:Key="LocalizedString" 
4                                /> 
5 </Application.Resources> 

推荐答案

您是否尝试过重建解决方案?有时,在您构建解决方案之前,错误不会自动得到纠正.

另外,请确保LocalizedString类为 WindowsPhoneApplication1 名称空间.

Have you tried rebuilding the solution? Sometimes errors won't automatically be corrected until you build the solution.

Also, make sure that the LocalizedString class is in the WindowsPhoneApplication1 namespace.


这篇关于教程和&lt; Application.Resources&gt;的问题;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆