windows-phone-8

Overriding methods from Library Project

天大地大妈咪最大 提交于 2019-12-24 08:37:03
问题 I am working on Windows Phone 8 application. I have a Windows Phone Class Library project(Called Base) and Windows Phone App(called child). In my Base project i have a class which has methods and static variables. Eg: Class Settings { public static string AppName = "Base"; public virtual List<String> TabDetails() { List<String> TabDetails = new List<string>(); helpTabDetails.Add("AAA"); helpTabDetails.Add("BBB"); return helpTabDetails; } } Now in my child app i am just linking this class (by

Windows Phone 7: How to notify data is updated in ListBox?

Deadly 提交于 2019-12-24 07:41:19
问题 I have above scenario: If user click on ListBox, it will either have sub items (again ListBox) or detail view. So what i did currently is: Whenever user clicks any item, made a web call and filled up the same ListBox if clicked item is having further sub items. Now, issue comes in picture: Suppose i am in 4th screen (detail view), Moved to the 3rd and 2nd screen with data maintained as stack (Its working fine, yes i am maintaining data in ObservableCollection<ObservableCollection<MyObjects>>

How to add listener to the property already defined in .NET

一曲冷凌霜 提交于 2019-12-24 07:24:38
问题 I want to be notified when the NetworkInterfaceType will change from NetworkInterfaceType.MobileBroadbandGsm to NetworkInterfaceType.Wireless80211 and the other way around: var info = Microsoft.Phone.Net.NetworkInformation.NetworkInterface.NetworkInterfaceType; How to do so? I would like to add a listener which will listen for changes of that property. Tried that: System.ComponentModel.DependencyPropertyDescriptor.FromProperty(Microsoft.Phone.Net.NetworkInformation.NetworkInterface

Debugging WP8 Native Code using a file

◇◆丶佛笑我妖孽 提交于 2019-12-24 07:19:20
问题 I'm developing a WP8 app that has some native code (runtime component). Inside the runtime component I need to check to content of a c style array. Because this array is not small, I thought the best I could do is write the array in a file using fopen/fwrite/fclose; Checking the returned value from fopen and fwrite, I can see that it succeeded. But I cannot find the file (using Windows Phone Power Tools). So where has the file been written? Is there another way to dump the content of the

Windows Phone: RemoveBackEntry after navigate failing

耗尽温柔 提交于 2019-12-24 04:21:18
问题 I've got an intermediate "Loading" page for my game: I send them there and it has "Loading..." text that displays while the rather hefty game page loads up: private void OnLoaded(object sender, RoutedEventArgs e) { Dispatcher.BeginInvoke(() => { try { NavigationService.Navigate(new Uri("/GamePage.xaml", UriKind.Relative)); NavigationService.RemoveBackEntry(); } catch (InvalidOperationException) { } }); } Then when you hit the back button you go to the main page rather than back to the loading

Windows Phone 8 detect screen unlock

谁说胖子不能爱 提交于 2019-12-24 03:44:18
问题 My WP8 app is set to run underneath the lock screen because it needs to continue to run even while the screen is locked, but I want to be able to detect when the user unlocks their screen, how do I do this? What methods, if any, are called when the phone is unlocked? 回答1: The frame's Unobscured event will fire when the user unlocks (it will also fire Obscured when the phone is being locked). However these events will also fire for a MessageBox, a Reminder and the like so you will get other

Responding to universal volume control “launch” while the app is running

ε祈祈猫儿з 提交于 2019-12-24 03:43:39
问题 If the application is not in the foreground, tapping on the track name in the Universal Volume Control (UVC) launches the application with the context information of the track (set via MediaHistory.Instance.NowPlaying). However, if the application is already running, no such navigation is made. I'd like to respond to it in order to redirect the user to the "now playing" experience as the built in media player does. Is there an event raised that I'm not aware of, or was this scenario not

Exception thrown in debug mode, but where?

你离开我真会死。 提交于 2019-12-24 03:31:03
问题 A first chance exception of type 'System.IO.IsolatedStorage.IsolatedStorageException' occurred in mscorlib.ni.dll Operation not permitted on IsolatedStorageFileStream. It shows me this notice, but I don't know where does it generate it. How find out where is the code which generates this exception? PS. I'm using debug mode. (C#) 回答1: This is a first-chance exception, i.e. one that has a try-catch block that will take care of it. By default, Visual Studio doesn't break on first-chance

How to install WP 8.0 SDK if WP 8.1 SDK is installed?

落花浮王杯 提交于 2019-12-24 03:30:50
问题 I have the Windows Phone 8.1 SDK on my dev pc installed together with VS 2013. I need to open some WP 8.0 projects in VS 2013, but I can't do that without having WP 8.0 SDK installed. However, when I try to install it from the local ISO, I have the following installation error: ** Setup Blocked ** The product version that you are trying to set up is earlier than the version already installed on this computer. Do I need to remove the WP 8.1 SDK just to install WP 8.0 SDK and then install WP 8

How to install WP 8.0 SDK if WP 8.1 SDK is installed?

空扰寡人 提交于 2019-12-24 03:30:35
问题 I have the Windows Phone 8.1 SDK on my dev pc installed together with VS 2013. I need to open some WP 8.0 projects in VS 2013, but I can't do that without having WP 8.0 SDK installed. However, when I try to install it from the local ISO, I have the following installation error: ** Setup Blocked ** The product version that you are trying to set up is earlier than the version already installed on this computer. Do I need to remove the WP 8.1 SDK just to install WP 8.0 SDK and then install WP 8