Questions tagged [windows-phone]

GENERAL WINDOWS PHONE SUPPORT IS OFF-TOPIC. Windows Phone is Microsoft's mobile operating system and software development platform. Use this tag for programming questions that specifically relate to programming or debugging on a Windows Phone. Windows Phone questions that are not programming-related can be asked on https://windowsphone.stackexchange.com/

Windows Phone is a mobile operating system developed by Microsoft, and is the successor to its Windows Mobile platform.

Development Platforms

External Resources

Windows Phone guide for Android developers

Free Windows Phone Programming Book

More information

6786 questions
19
votes
5 answers

Automatic Dark/Light Icon Support in Windows Phone 8

I think this is a very common problem, but I cannot find a suitable solution for me. As you all know, WP supports a dark and a light theme. The user can change the theme and there are ways to override his decision and to display everything in the…
Markus Rudel
  • 1,318
  • 15
  • 30
18
votes
4 answers

Play an audio file in Windows 7 Phone

I am working on Windows 7 based application development in Silverlight. I have not been able to find a way to play a an audio file in windows 7 phone programmatically. I have been googling it since past few days but i could not get any solution of…
Aqueel
  • 1,246
  • 3
  • 23
  • 46
18
votes
2 answers

simply stop an async method

I have this method which plays a sound, when the user taps on the screen, & I want it to stop playing it when the user taps the screen again. But the problem is "DoSomething()" method doesn't stop, it keeps going till it finishes. bool keepdoing =…
Jaydeep Solanki
  • 2,895
  • 5
  • 36
  • 50
18
votes
1 answer

Set up ads in Windows Phone 8

I found a few scattered responses to similar problems (mostly with Windows Phone 7) but wanted to post an answer that contained all requirements for Windows Phone 8 Ads. I've been having some issues setting an ad up in Windows Phone 8. Every time I…
ellemayo
  • 3,258
  • 2
  • 20
  • 30
18
votes
1 answer

Remove all child elements from a StackPanel

I have the following xaml code: //some code Then I add elements to StackPanel. But at a given moment I need to remove all child elemnts of Mess. How can I do it?
user1597524
  • 271
  • 1
  • 4
  • 11
17
votes
5 answers

How to launch IE7 from a Windows Phone App?

How do you launch an instance of IE from an app? Is it better practice to page to a window with and browser window?
Sevki
  • 3,592
  • 4
  • 30
  • 53
17
votes
2 answers

returning a false when got 400 status of webservice in JSON

In my codebehind file I call this function: private void loginAction(object sender, TappedRoutedEventArgs e) { Webservice webservice = new Webservice(); webservice.getUser(txtLogin.Text, txtPass.Text); } Then in webservice I do this: public…
Steaphann
  • 2,797
  • 6
  • 50
  • 109
16
votes
7 answers

How to get the device platform on Windows 10

Since one release binary will run on pc, xbox and phones, I need a way to fetch the device type on runtime. It is doable by checking with the ApiInformation for present types, methods etc., but I believe there should be a more reliable way.
Darius V
  • 583
  • 1
  • 4
  • 18
16
votes
1 answer

WP 8.1 Runtime code to make phone call, send SMS & send Email (not the Silverlight 8.1)

I'm writing an app which will make a phone call, send sms or email just like the People app in wp 8.1 . So far I've found a link form msdn which said "Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1". So here the code:from this…
truongnm
  • 2,311
  • 2
  • 31
  • 48
16
votes
2 answers

Call back to main thread from a Task

As i don' know about threads much i have a question. I wanna do something in background and in background method i wanna switch back to the main thread on certain condition otherwise work in background. How can i achieve this functionality? I am…
Jatin
  • 462
  • 1
  • 6
  • 19
16
votes
2 answers

Develop for Windows Phone 7 (or 7.1) using Visual Studio 2012 (RTM,Premium)

Is it possible to get the WindowsPhone 7.1.1 sdk to work with Visual Studio 2012? Edit: As stated in the title of my question: I wanted to know whether its possible to develop windows phone 7.1.1 apps using Visual Studio 2012. I already tried…
15
votes
4 answers

Want to start with Windows Phone 7 development

As just now, I heard about the Windows Phone 7 development. So I would like to know the following things regarding Windows Phone 7: From where can I start with Windows Phone 7 development? What are the best books/article/code blog/tutorial,…
Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
15
votes
4 answers

MissingManifestResourceException on Windows Phone 8.1 with .resx resources

I'm developing a Windows Phone 8.1 app that also targets Android(Xamarin) As ever I added my string resources(.resx) on a PCL and referenced them on my launcher project to use it on my views, this all works fine on WP 8.1 silverlight but on the…
15
votes
1 answer

XDomainRequest vs XMLHTTPRequest

We are creating an application using PixiJS which has a dynamic json loader in it. It loads the .json files using the following: if(window.XDomainRequest) { this.ajaxRequest = new window.XDomainRequest(); } else if (window.XMLHttpRequest) { …
Mowday
  • 412
  • 1
  • 3
  • 10
15
votes
3 answers

How can i add AppBar in Windows Phone 8.1

In windows phone 8, its very easy to add an App Bar and manage it, but now i test new windows phone 8.1 SDK to build a project with new Geofencing feature but i don't know how to add an App Bar in the App.
user3540944