windows-phone-7

In WP7 TextBox.Focus() does not work when WebBrowser control is present on page

送分小仙女□ 提交于 2020-01-13 10:46:09
问题 I need to set focus on the textbox. The problem is when a WebBrowser control is present on the page, the SIP is displayed as if textbox is selected, but cursor is not visible in textbox and the input does not go to the textbox. If I comment the WebBrowser control out, then the behavior is as expected - cursor is blinking in the TextBox when page is loaded. Here is the XAML: <phone:PhoneApplicationPage x:Class="WP7Sample.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml

Phonegap File Download to device - Which device path to take?

我与影子孤独终老i 提交于 2020-01-13 09:45:22
问题 i was researching on how to download a file to the native filesystem via a URL with phonegap. I then read about this method: http://docs.phonegap.com/en/1.4.1/phonegap_file_file.md.html#FileTransfer_download It should allow one to save files directly via a URL to the device. But it needs a specified target where to save the file. target - Full path of the file on the device What would be best practise to choose here, so the file does not just get hidden in some folder, but is accessible. What

Browser screenshot as bitmap in WP7

匆匆过客 提交于 2020-01-13 05:56:20
问题 I'm trying to get the screenshot of a given URL as a bitmap image on the Windows Phone. The WebBrowser class does not seem to have the DrawToBitmap method. Any pointers on how to get this working? 回答1: You can't take a screenshot of the WebBrowser Control as there seems to be a bug with the way it works with WriteableBitmaps. An alternative method could be to send the URL to a web service which takes a screenshot on the server and returns it back to your app. 回答2: Use WriteableBitmap to

Can I send parameters in push notifications to toast (Windows Phone)?

穿精又带淫゛_ 提交于 2020-01-13 02:30:41
问题 I have a case in my app where I need to send a push notification to a user device when the application is offline and appears as a toast notification. I need when the user clicks on the toast message to navigate to a specific page in my application depending on the message. I know that this is available in toast notifications but can I send parameters from my server to the toast to determine the page? 回答1: Of course you can. The XML of the toast notification you send from your server looks

Windows Phone 7 emulator : Can I simulate a phone call

流过昼夜 提交于 2020-01-12 19:16:39
问题 I am looking into developing for Windows Phone 7. For testing my app, I need to be able to simulate a phone call. Is it possible in the emulator ? 回答1: No. it's not possible to simualte your application being interupted by a phone call being received. It's also been announced that as the RTM emulator will only support MinUI there will not be a way to test this in the emulator for the foreseeable future. You will need to test this on a real device. Unfortunately there is no way round testing

MvvmCross localization: switch at runtime

馋奶兔 提交于 2020-01-12 05:50:08
问题 Is there a way to change the current language to another one at runtime ? For example: be able to switch when a button is clicked or when starting the app, get the user language and switch. How to tell the plugin to check the user language at startup ? Thanks in advance for your help. 回答1: Is there a way to change the current language to another one at runtime ? yes, call builder.LoadResources(whichLanguage) on your MvxTextProviderBuilder.cs For example: be able to switch when a button is

HttpWebRequest returning “The remote server returned an error: NotFound” on Windows Phone 7

元气小坏坏 提交于 2020-01-12 05:28:26
问题 I am trying to authenticate against the Huddle API using the Windows Phone 7 Emulator. However, I am not getting any success. I keep getting "The remote server returned an error: NotFound". I have even tried "dumbing down" my code and just trying a straight web site, eg. Google but still get the same result. I have the following code: string url = "http://www.google.com"; HttpWebRequest client= WebRequest.CreateHttp(new Uri(url)) as HttpWebRequest; client.AllowReadStreamBuffering = true; //

How do I use the icons provided with the WP7 sdk properly?

懵懂的女人 提交于 2020-01-12 03:40:06
问题 Icons have been provided in the SDK for either "Light" or "Dark" depending on the theme set on the phone. On the application bar when the theme changes the icons automatically change with it. Also, when you press the button the image is reversed (so it's still visible) no matter which theme you're on. I can easily figure out how to change the icon based on the current theme. However what's no easily figured out is how to change the icon when the button is pressed. To be more clear. Let's say

Localizing Windows Phone 7 App

守給你的承諾、 提交于 2020-01-12 03:33:05
问题 I'm having a little trouble getting localized resources files to work on Windows Phone 7. Here's what I'm doing: Create a resource file, say "Strings.resx" (Build Action: Compile) Create a key, say "TestKey" with a default value of empty string Add a English resource file in the same folder with a value of "some English string": Strings.en-us.resx (Build Action: Embedded Resource) Add a Japanese resource file in the same folder with a value of "some Japanese string": Strings.ja-jp.resx (Build

Change FontSize to fit TextBlock

允我心安 提交于 2020-01-12 03:28:27
问题 I'm developing Windows 8 Store Application, we know that display sizes are very different, so all the elements have stretchable settings, so that if display is small elements (pictures, charts etc. ) are smaller, if display is big - bigger. All works perfectly except TextBlocks (labels): TextBlock element itself also is being stretched, but the FontSize remains the same, how i noticed there is no property to change font size to fit TextBlock. Is there a way to change FontSize of the TextBlock