Windows Phone 8 开发的设计问题 [英] Design Issues with Windows Phone 8 Development

查看:24
本文介绍了Windows Phone 8 开发的设计问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 WP8 有许多 Emulaotors 并且在不同的分辨率下工作,我正在关注以下链接,但代码似乎不起作用.请检查第 4 点、第 6 点和第 7 点

As the WP8 has many Emulaotors and works on different resolutions, I was following the following link , but the code doesnt seem to work . Kindly Check Point 4 , Point 6 and point 7

多- 适用于 Windows Phone 8 的分辨率应用

代码出现错误.请检查

推荐答案

代码中有错误.在步骤 4 中更改此行:

There is an error in the code. Change this line in step 4:

public class MultiResImageChooserUri

为此:

public class MultiResImageChooser

那么它应该可以工作了.

Then it should work.

这篇文章根本没有提到命名空间,所以我假设这是你的问题.在第 6 步中,它说要添加 xaml 命名空间:

The article doesn't mention namespaces at all and so I'm assuming that is your issue here. In step 6 it says to add the xaml namespace:

xmlns:h="clr-namespace:MultiResSnippet"

因此,基于此,您需要确保您的类位于 MultiResSnippet 命名空间中(或将其更改为您自己的命名空间).

So based on that you need to make sure your class is in the MultiResSnippet namespace (or change this to your own namespace).

因此请确保您的代码是:

So make sure your code is:

使用 System.Windows.Media.Imaging;

using System.Windows.Media.Imaging;

namespace MultiResSnippet
{
  public class MultiResImageChooser
  {
     ...
  }
}

在此处了解更多关于 xaml 命名空间的信息.

这篇关于Windows Phone 8 开发的设计问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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