您的位置:首页 > 其它

Xaml cannot create an instance of “X”

2012-03-07 12:04 169 查看
This is because instantiating ApplicationsSettings throws an exception. If you add the following to your constructor, you should be fine;
try { settings = IsolatedStorageSettings.ApplicationSettings; } catch (System.IO.IsolatedStorage.IsolatedStorageException e) { // handle exception }
这是因为有可能出现异常,需要在构造函数中作出判断,抛出异常。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐