windows-phone-7

How to open a new window or tab via javascript in windows phone 7 browser

元气小坏坏 提交于 2019-12-28 06:01:07
问题 Is it possible to open a new window or tab via javascript in Windows Phone 7 browser? window.open does not appear to be supported nor does target='_blank' . Am I missing something here? This basic feature works just fine on iphone and android. Any ideas on how I can get this working in Windows Phone 7? 回答1: On Windows Phone 7 this is not possible programmatically. It's all in the users hand. To cite a Microsoft employee: "A user can open a link in a new Tab by tapping and holding the link to

A super-simple MVVM-Light WP7 sample?

 ̄綄美尐妖づ 提交于 2019-12-28 05:35:27
问题 I am looking for a sample that demonstrates in the lightest way possible the following: A Model that invokes a SOAP based web service; regularly polling to get the latest value (assume the SOAP service returns a boolean). The model should also support invoking a SOAP method that changes the boolean on the server. A ViewModel that enables the underlying boolean to be bound to controls in the View (e.g. to a checkbox). A View with the above checkbox control bound to the underlying boolean.

Windows Phone 7 Browser - Turn off the gray shading when links are clicked

我的梦境 提交于 2019-12-28 03:45:10
问题 With the Windows Phone 7 Browser, when the user clicks a link, it is shaded with a gray rectangle for approximately 0.5 seconds. This is fine in generally, however, if you have dynamic page behaviour, for example, clicking a link updates the DOM so that the link is no longer visible, the opaque gray rectangle lingers on the screen after the link itself has gone. This looks pretty horrible! Does anyone know how to disable this effect? 回答1: Add a meta tag in you head section in you html file.

How to run application in background in Windows Phone?

安稳与你 提交于 2019-12-28 02:07:20
问题 I want to develop a background application in Windows Phone 8. Like there is a flash screen and after the flash screen starts, immediately it would be moved to back ground. But the timer present in the application should be active from being in background and keep doing the task assigned. So, in the fore ground user can continue using the device and in background the app will run a timer and continue with the tasks. I have tried using Periodic tasks, but they get triggered once in 30 minutes

How to run application in background in Windows Phone?

时光毁灭记忆、已成空白 提交于 2019-12-28 02:07:08
问题 I want to develop a background application in Windows Phone 8. Like there is a flash screen and after the flash screen starts, immediately it would be moved to back ground. But the timer present in the application should be active from being in background and keep doing the task assigned. So, in the fore ground user can continue using the device and in background the app will run a timer and continue with the tasks. I have tried using Periodic tasks, but they get triggered once in 30 minutes

Windows Phone 7 close application

戏子无情 提交于 2019-12-27 12:06:52
问题 Is there any possibility to programatically close Silverlight application on Windows Phone 7? 回答1: If you write an XNA Game, you will have access to an explicit Exit() method. If you are writing traditional Silverlight project, then NO , there is no way to programatically close your app. See also Peter Torr's Blog entry on Exiting Silverlight Apps in Windows Phone 7. There he also mentions the option of throwing an unhandled exception, which IMO is a terrible programing style. An option you

How to bind html content

非 Y 不嫁゛ 提交于 2019-12-26 20:28:31
问题 I'm new to windows phone application development.currently i'm doing xml reader project.in my project display the xml description content.i used textblock to display the content.but HTML tag not supported.please help alternative for textblock.how to bind 回答1: If you have HTML content, the most appropriate tool for viewing it is a WebBrowser control. This will render arbitrary HTML, it will also fetch images over HTTP etc ... 来源: https://stackoverflow.com/questions/8944266/how-to-bind-html

Error Partial xaml WP7

戏子无情 提交于 2019-12-25 19:38:32
问题 I get this error, I try to copy my old project to another with modifing the name of namspace 回答1: The error indicates that you have another file with a partial definition of this same class that shares a different base class. Find this other partial definition and resolve. 来源: https://stackoverflow.com/questions/10121012/error-partial-xaml-wp7

WP7 Converter in ResourceDictionary

吃可爱长大的小学妹 提交于 2019-12-25 18:56:16
问题 On the page we declare a converter as <phone:PhoneApplicationPage.Resources> <local:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter"/> </phone:PhoneApplicationPage.Resources> How to declare it in ResourceDictionary? 回答1: How to declare it in ResourceDictionary? <local:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter"/> 回答2: Add this in App.xaml <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary>

How to know the which activity is ruuning in windows phone 7?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 18:16:14
问题 How to know if an activity is currently running in windows phone 7? 回答1: As of now there is no API to get the currently running task as the assumption is that you invoked the task yourself and thus have no need to retrieve this programmaticaly. It is also important to note that unless you are working with native code or interop there is no supported way to interact with other applications other than those defined in Microsoft.Phone.Tasks 来源: https://stackoverflow.com/questions/8679250/how-to