问题标签 [windows-phone-7.1.1]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
2395 浏览

windows-phone-7 - 如何在 Windows 手机应用程序中实现错误记录?

您好我正在开发一个 Windows Phone 应用程序。

我想在我的应用程序中实现错误日志记录。我想以更好的方式处理错误日志。

  • 如何记录错误信息(以便开发人员纠正错误)

  • 是否有任何 3rd 方工具/免费库用于在 Metro 应用程序中记录错误。

  • 可用于错误记录的各种替代方法是什么?

  • 错误记录的最佳实践是什么?

请帮帮我。

你的回答对我很有帮助。

提前致谢。

0 投票
1 回答
185 浏览

windows-phone-7 - wp7列表框选择

我有一个包含 1000 多个项目的列表框。

在xml中

在 cs

在 MyCustomItem xaml

Where IsSelected - 我的 ViewModel 的属性之一。转换器返回两种样式中的一种(如果选择了第一个,第二个 - 如果没有)

总是工作,但我知道 - 它非常耗费资源,而且是错误的决定。怎么做才对?

0 投票
0 回答
312 浏览

windows-phone-7 - WP7 在 App.xaml 的 Application.Resources 中绑定字体

在 App.xaml 中

假设我有

怎么做

或者可能有另一种在 App.xaml 中设置带有绑定的 FontFamily 的方法?

0 投票
1 回答
600 浏览

windows-phone-7 - WP7、WP8 如何设置几个 ResourceDictionaries 使用自定义 FontFamilies

我想为某些控件设置自定义字体,所以如果我在唯一的一个ResourceDictionary 中设置一种字体并在样式中使用它,那么一切正常。但是这种方法对我来说并不好,因为我需要在单独的字典中使用字体声明,然后是使用它们的样式。

App.xaml我制作了几个资源字典

ResourceAgencyDictionary.xaml我有MyFontFamilyNormal声明

ResourceCommonDictionary.xaml我想使用该字体系列(MyFontFamilyNormal):

项目编译但我得到一个运行时错误

System.Windows.Markup.XamlParseException 发生_HResult=-2146233087 _message=找不到名称/键为 MyFontFamilyNormal 的资源

有谁知道我该如何解决?

0 投票
1 回答
83 浏览

windows-phone-7 - 无法在 WP7 应用程序中设置 Adcontrol TestMode 属性值

我已将 AdControl 控件添加到我的 windows phone 应用程序中。在 Xaml 视图设计器中,我可以看到广告预览。但是当我在手机中运行它时,我看到一个黑盒子,里面什么也没有。

我试图设置 TestMode 属性,但 AdControl 没有可用的静态或非静态方法。

我已经交叉检查了 Applicationid 和 AdControlId。添加了所有功能。

这个问题有什么解决办法吗?或者我们可以忽略它并在应用程序发布后直接工作?

0 投票
2 回答
1939 浏览

windows-phone-7 - Windows Phone Emulator issue

I'm developing a windows phone application on Visual Studio 2010, Windows 8 x86. I've setup Visual Studio to Run as an administrator. Every time I try to run the windows phone 7 application, i have also updated sdk 7.1.1 but it still gives me this error:

Windows Phone: Deployment of application to device failed. Exception from HRESULT: 0x89721800

is there any solution regarding this?

0 投票
2 回答
781 浏览

c# - WP8 WebBrowser 作为全景/透视项目

我添加了一个 WebBrowser 作为其中一个全景项目的内容。WebBrowser 可以毫无问题地呈现。如果我通过触摸 WebBrowser 之外的区域来滑动全景图,则会发生滑动。但是,当我尝试通过触摸 WebBrowser 来滑动全景图时,不会发生滑动,而是 WebBrowser 垂直滚动。知道如何解决这个问题吗?

0 投票
1 回答
386 浏览

windows-phone-7 - 如何在我们的 Windows Phone 应用程序运行时禁用自动锁定?

我正在开发一个 Windows Phone 应用程序,在该应用程序中我从服务中获取一些数据,此时设备将自动锁定,因为它长时间没有响应。

那么,当服务发生某些进程/获取/同步时,如何避免 Windows Phone 应用程序中的这种自动锁定。

我无法测试这种情况,因为我正在模拟器上测试它。

1)如何避免windows phone应用程序在运行时自动锁定功能?2)我可以通过哪些可能的方式做到这一点?

请帮帮我。

提前致谢。

0 投票
1 回答
223 浏览

windows-phone-7 - Getting information from child element of stackpanel within listbox

I know there should be a simple solution to this question but I just cant seem to figure it out here is what my code looks like:

I want to get the stackpanel->reference text (Text="{Binding reference}") of the selected item I dont know what my C# should look like but any help will be greatly appreciated.

0 投票
1 回答
152 浏览

c# - 用windows phone读取html页面或php页面并获取数据

我正在尝试阅读 html 或 php 页面。我需要获取此页面的所有艺术家姓名:http ://www.unnu.com/music-artists请帮帮我。我目前正在尝试使用 HtmlAgilityPack 但我无法获得任何数据。谁能帮我?