windows-phone-7.1

Databinding + Dynamic Pivot

三世轮回 提交于 2019-12-07 11:57:02
问题 I am having troubles with dynamically adding a PivotItem to a templated and databound Pivot. The classes in use (a bit simplified to keep it quickly comprehensable); class Menu { string Name List<Dish> Dishes_1; List<Dish> Dishes_2; List<Dish> Dishes_3; } class Dish { string Description string Price; } I want to use a Pivot to display a list of Menu-Objects. I create PivotItems dynamically based on the number of items in that list. Each PivotElement should thus follow the same layout and

Remove back entry in windows phone mango

那年仲夏 提交于 2019-12-07 05:42:27
问题 how can i remove back stack in wp7.1.I have 3 pages and say A,B,C when i navigate from A to B and in B there is a button to add new contact detail.when i click it page navigate to page C and In page C there is a Done button and when i clicked done button the page navigate to home page that is the page A and when i clicked back button from page A.the page C is visible since it is not finished.How can i clear the back stack.Also let me know is there any method to clear a particular page from

Windows Phone 7 - Camera Flash App Not Functioning

∥☆過路亽.° 提交于 2019-12-07 03:16:25
In attempting to follow the instructions here - http://msdn.microsoft.com/en-us/library/hh202949.aspx I have coded a very simple WP7 app to turn on the camera flash. Everything appears to work, except....the flash doesn't activate. My phone is Samsung SGH-I917 (latest OS update), I am using the WP7 SDK 7.1, I've checked that the flash of my camera actually does work. I have also checked to make sure the following is in the WMAppManifest.xml file. <Capability Name="ID_CAP_ISV_CAMERA" /> The MessageBox use you see in my code below, indicates that the camera object has been initialized properly,

How to use async-await with WCF in VS 2010 for WP7?

亡梦爱人 提交于 2019-12-06 12:52:36
问题 Async CTP is very nice to use. I saw some examples for windows phone, all using: (Assembly AsyncCtpLibrary_Phone.dll, v2.0.50727, AsyncCtpExtensions). var client = new WebClient(); string data = await client.DownloadStringTaskAsync(new Uri(url)); or something like the above code. How can I use methods with async / await for my services? (WCF) Today all methods work this way: service.MyRequestCompleted += service_myRequestCompleted; service.MyRequestAsync(); I can not find a way to use

What is x-wmapp2 and x-wmapp1?

丶灬走出姿态 提交于 2019-12-06 08:57:21
问题 I am getting x-wmapp2:/app/www/index.html as output when I try to console.log(windows.location.href); in my Windows Phone PhoneGap app when I try to run in emulator. When I try to run actual device, it gives x-wmapp1:/app/www/index.html . What is x-wmapp2 and x-wmapp1? What is the difference between them? I also find there exists x-wmapp0 also. Could someone explain this? 回答1: It appears to be the Scheme of the WebBrowser element whenever one is opening locally-stored web pages. Actually, it

Thread sleep doesn't work well on Windows Phone 7

独自空忆成欢 提交于 2019-12-06 06:25:38
I want to put my program to a sleep for a couple of seconds. When I use thread.sleep(x) entire program doesn't respond. According to this article -> http://msdn.microsoft.com/en-us/library/hh184840(v=VS.92).aspx application which is not responsible for 3 seconds doesn't pass the certification :/ (I have to wait 5 seconds). You need to rethink what you are trying to do with your pause. It's a bit hard to say given that we don't have much info about what you try to achieve with this pause, but I'll give an example here to illustrate how you can get the wanted effect without having to pause the

Convert wav to wma

核能气质少年 提交于 2019-12-06 06:14:19
问题 I want to convert a .wav file to .wma (or .mp3) on Windows Phone 7 Mango. I want to save a recording from the microphone and use the SaveRingtoneTask so I can save it as a ringtone. How can I convert the file on Windows Phone 7 so I don't have to use a web service? If it can't be done on the phone does anyone know how to convert it and trim it down to 40 seconds? 回答1: I ended up using this example http://www.codeproject.com/KB/audio-video/MP3Compressor.aspx and stripping out everything but

Emulator won't show in Visual Studio 2010

半腔热情 提交于 2019-12-06 06:07:41
I have been experiencing this issue for a week and tried a lot of workarounds in the internet with no results. Here is my case: I am trying to install Windows Phone SDK 7.1 on a Windows 8 x64 host. The steps I have followed are: Installed Windows Games for Marketplace Client Installed Visual Studio 2010 and update it to Visual Studio 2010 SP1 Installed Windows Phone SDK 7.1 Updated SDK to Windows Phone SDK 7.1.1 I have tried opening by using Run as administrator None of the steps listed above returned an error. But I can't seem to run the emulator at all. The emulator list shows nothing in

Detect application launch from Universal Volume Control

独自空忆成欢 提交于 2019-12-06 05:54:15
问题 I have an application, targeting mango devices, which plays music via a BackgroundAudioAgent. As such it integrates with the universal volume control (UVC). Is there a way to detect when the application is launched by tapping the artists details in the UVC? Alternatively, is there a way to set a deep link for the UVC to use? I want this so that I can take the user to the "Now playing" page, rather than the main page, when the app is launched via the UVC. Update This also affects launching the

Accessing variables from XAML and object from ViewModel using Code Behind

元气小坏坏 提交于 2019-12-06 05:54:05
问题 I'm a newbie in windows phone development. I would like to ask if it is possible to do this scenario. I need to access a variable in XAML using my code behind, then I will add it as an item to my existing list found in my View Model. Therefore, I need to access both of my View Model to get the list and the XAML to get the variable from the resources. Is this doable? If yes, how can I access it. This is what I have in my current XAML. <phone:PhoneApplicationPage.Resources> <system:String x:Key