windows-phone-8

How to reload a Windows phone application page without creating a new copy in the memory?

喜你入骨 提交于 2020-01-11 12:21:36
问题 In my Windows phone application, I'm trying to reload the application page by using the following code: NavigationService.Navigate(new Uri(string.Format("/Page1.xaml?random={0}", Guid.NewGuid()), UriKind.Relative)); I have written the code above to the button click event. The Page1 is reloading fine but every time when I click the button the app memory keep on increasing and at some time app is crashed. Is there any other way to reload or refresh the page with out creating a new copy of the

How to reload a Windows phone application page without creating a new copy in the memory?

吃可爱长大的小学妹 提交于 2020-01-11 12:21:24
问题 In my Windows phone application, I'm trying to reload the application page by using the following code: NavigationService.Navigate(new Uri(string.Format("/Page1.xaml?random={0}", Guid.NewGuid()), UriKind.Relative)); I have written the code above to the button click event. The Page1 is reloading fine but every time when I click the button the app memory keep on increasing and at some time app is crashed. Is there any other way to reload or refresh the page with out creating a new copy of the

Windows Phone 8 Emulator returning Redmond location only

心不动则不痛 提交于 2020-01-11 12:21:13
问题 I am using the following code Geolocator myGeolocator = new Geolocator { DesiredAccuracy = PositionAccuracy.High }; Geoposition myGeoposition = await myGeolocator.GetGeopositionAsync(); Geocoordinate myGeocoordinate = myGeoposition.Coordinate; while running the simulator each time i get the location as Redmond, is this a bug, if yes then how can we get rid out of it? 回答1: There is location sensor simulator available for Windows Phone emulator (both 7.5 and 8): How to test apps that use

Launching PDF reader on windows phone 8

偶尔善良 提交于 2020-01-11 11:18:02
问题 I'm trying to launch pdf reader with the code below but it does not work. Can somebody help me? private async Task<StorageFile> WriteData(string fileName, byte[] data) { StorageFolder folder = ApplicationData.Current.LocalFolder; StorageFile file = await folder.CreateFileAsync(fileName, CreationCollisionOption.ReplaceExisting); using (Stream s = await file.OpenStreamForWriteAsync()) { await s.WriteAsync(data, 0, data.Length); s.Close(); } return file; } private async Task<bool> OpenPdf

Windows Phone 8 - 2 Background Audios Clash and both of the App terminates

主宰稳场 提交于 2020-01-11 09:36:10
问题 around a week ago, I submitted an online Background Radio Streaming app for the Windows Phone store. The app was quite good (as I used the Emulator to test it, it was good on all the possible sectors) but when I submitted it for certification, it failed. According the the error log, if someone is already playing a Music from Music + Video hub and then tries to open this app, both of the apps Crash and stop unexpectedly. So far I understood, it is because the Music of Music + Video hub is also

jQuery / HTML5 / gwt app for WP8 (Lumia 920) device: vertical css scroll fix

二次信任 提交于 2020-01-11 07:41:29
问题 Problem: I try to fix this phenomenom about scrolling out of app boundaries: (Picture source: Prevent scrolling out of CordovaView in Cordova for Windows Phone 8 ) Approach #1 body { overflow: hidden; -ms-content-zooming: none; } this css snippet should fix scroll so that application is stabile when scrolling the content, which it does perfectly, but it leaves application unstable. Application hands now and then without any visible reason. Showing three different views in row freezes app.

How to change start page at startup?

狂风中的少年 提交于 2020-01-11 06:41:48
问题 my application, currently, goes to the MainPage.xaml at startup (I don't know where it has configured though). I want to be able to start with another page in some conditions. I think I can add this code to Application_Launching() in App.xaml.cs page: NavigationService.Navigate(new Uri("/SecondPage.xaml", UriKind.Relative)); but NavigationService is not available in App.xaml.cs. How can I start the application with another page if foo == true ? 回答1: Changing start page in App.Xaml.cs :

MapOverlay binding not working

不想你离开。 提交于 2020-01-11 03:33:08
问题 I'm trying to get a map overlay working on Windows Phone 8 using an MVVM code structure. I can't seem to get the GeoCoordinate property of the MapOverlay to bind to my ViewModel properly and I can't work out why. The XAML as stands is: Header: xmlns:maps="clr-namespace:Microsoft.Phone.Maps.Controls;assembly=Microsoft.Phone.Maps" Code: <maps:Map x:Name="Map" ZoomLevel="6" Height="500" Width="500" CartographicMode="Terrain" Center="{Binding MapCenter, Converter={StaticResource

Parsing inner tag with its value

守給你的承諾、 提交于 2020-01-10 05:47:05
问题 I have a plist in this format: <plist version="1.0"> <array> <dict> <key>Title</key> <string>Chapters</string> <key>Items</key> <array> <dict> <key>Title</key> <string>XYZ</string> </dict> <dict> <key>Title</key> <string>ABC</string> </dict> </array> </dict> <dict> <key>Title</key> <string>ChaptersONE</string> <key>Items</key> <array> <dict> <key>Title</key> <string>ASDF</string> </dict> </array> </dict> </array> I have a Class Chapters class with String and List : i need it like this:

Windows Phone WebBrowser set cookies

点点圈 提交于 2020-01-10 05:43:06
问题 I am using HttpWebRequest for REST services which uses some basic authentication that relies on JSESSIONID cookie. I need to pass that cookie to WebBrowser control to reuse that session, but didn't find any usable solution that would allow me to pass that cookie in the Browser's cookie store. Is there any way? The only way that I can think of now is to use Naviagate(url, null, MANUALLY_CONSTRUCTED_HEADER) which is kind of brute-force. Yes, and really have to use WebBrowser for this kind of