如何更新旧的导航服务

时间:2014-01-31 19:28:32

标签: windows-phone-8

我正在查看NavigationService的在线文档,我发现它需要一个URI和一个对象......

我系统上的导航服务只接受URI。

public bool Navigate(Uri source);

以下是引用的DLL的路径:

C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework \ Silverlight \ v4.0 \ Profile \ WindowsPhone71 \ Microsoft.Phone.dll

运行时版本:v2.0.50727

版本:7.0.0.0

如何更新系统以使用新的导航服务?

由于

1 个答案:

答案 0 :(得分:1)

Windows Phone 8的NavigationServicereference)类目前包含一个Navigate方法(reference):

public bool Navigate(
    Uri source
)

您可能正在查看Windows Presentation Foundation的文档(reference)。

我经常使用Windows Phone Development的主页和顶部的搜索栏,以确保我只查看Windows Phone支持的API(它只是在您使用该搜索时进行预过滤)。使用像谷歌这样的完整搜索引擎往往会产生误导,因为它会指向看似正确的网页,因为许多MSDN网页上都有指向“Windows Phone”的链接。