Questions tagged [windows-phone-8]

Windows Phone 8 is a version of Windows Phone (Oct 29, 2012 - present) that succeeds Windows Phone 7.5 and includes many new features.

Windows Phone 8 ("WP8") is a mobile operating system developed by Microsoft, and is the successor to Windows Phone 7.5. Unlike Windows Phone 7 which was based on Windows CE, Windows Phone 8 uses the Windows NT kernel found in Windows 8.

Supported development platforms include C#/VB.Net with XAML, HTML, CSS and Javascript or Typescript and C++ with Direct3D. Although XNA applications can still be developed, they can only target Windows Phone 7.5 instead of Windows Phone 8 and are kept only for legacy purposes. Windows Phone 8 also supports building Windows Phone Runtime Components and has access to APIs also present in Windows 8, making development for both platforms simultaneously easier.

Download the development tools and SDK.

New features include C++ support, Direct3D, multiple resolutions, Micro SD card, NFC, Bluetooth, Multi-core processing, In-app purchase, text-to-speech, speech-to-text, voice commands, Wallet Hub, app2app communication, new background functionality, contacts and calendar write-access, lock screen integration, new tile templates, new camera APIs, built-in maps control, and much more.

Read about what's new in the Windows Phone 8 SDK.

More information

Learning resources

Rewards

18215 questions
23
votes
1 answer

How to use ListView in Universal Windows Platform (Windows 10 app)

Can anyone please explain ItemTemplate.DataTemplate and ListView. In this code snippet. I really don't understand the concept of Templates, it will be help full if someone might put some light on that too. I had look to this question: Metro app:…
Hemant-Webo
  • 543
  • 2
  • 7
  • 16
23
votes
15 answers

"Symbols for the module MyLibrary.dll were not loaded"?

I'm trying to learn Windows Phone dev by making a basic app that provides information about Pokemon. To do this, I've created a portable class library (PokeLib.dll) so it's compatible with universal apps. I've tested this via a project in the same…
Benjin
  • 2,264
  • 2
  • 25
  • 50
23
votes
3 answers

Windows Phone 8.1 Emulator not proxying through Fiddler

I've just started looking into Win Phone 8.1 and playing with proxying some data via Fiddler from the emulator but it doesn't seem to want to play ball. All the guidance around Phone 7 and 8 (not 8.1) seems to be that the emulator will route traffic…
Troy Hunt
  • 20,345
  • 13
  • 96
  • 151
23
votes
2 answers

JavaScript eval() fails with window.external.notify(), works with window.alert()

On WP8, if I execute (1): Microsoft.Phone.WebBrowser wb; wb.InvokeScript("eval", "window.external.notify('abc');"); It throws a 'target of invocation returned an error', unknown error, hresult 80020101. But (2) wb.InvokeScript("eval",…
BobHy
  • 1,575
  • 10
  • 23
23
votes
3 answers

How to use credentials in HttpClient in c#?

I am facing some problems when using the HttpClient class to access to a Delicious API. I have the following code: try { const string uriSources = "https://api.del.icio.us/v1/tags/bundles/all?private={myKey}"; using (var handler = new…
23
votes
3 answers

Converting ordinary Http Post web request with Async and Await

How I can convert my traditional HttpWebRequest "POST" call with Async / Await pattern, Here with this I am attaching my current code, Any one please help me to convert this code using Async / Await pattern for windows phone 8. public void…
Nitha Paul
  • 1,401
  • 1
  • 14
  • 30
22
votes
1 answer

Windows Phone Silverlight 8.1 app - NoFill answer from admob

I have a huge problem with loading ads from AdMob on my Lumia 730. Currently, I have 4 different ads in my app (which is SILVERLIGHT 8.1, NOT 8.0, and not 8.1 WP) and unfortunately, I always get the same error from each page on which particular ad…
CPS86
  • 320
  • 1
  • 7
22
votes
3 answers

Getting Windows Phone version and device name in Windows Phone 8.1 XAML

In Windows Phone 8 Silverlight I use Environment.OSVersion.ToString() to get Windows Phone version and DeviceStatus.DeviceManufacturer+" "+DeviceStatus.DeviceName to get device name. These APIs no longer work with Windows Phone 8.1 XAML. I have…
Igor Kulman
  • 16,211
  • 10
  • 57
  • 118
22
votes
11 answers

Unable to Launch Windows Phone Emulator

I am trying to run unit tests on our CI server. When i run the following command it tries to launch emulator but fails with the following message vstest.console.exe myxapfile.xap Error Message The Windows Phone Emulator wasn't able to ensure the…
22
votes
4 answers

How to convert System.IO.Stream into an Image?

How can I convert a Stream of an image (which I retrieved using the Album.GetArt method from the MediaLibrary) into a usable Image in my application?
Newbie
  • 1,160
  • 2
  • 11
  • 24
22
votes
3 answers

HTML Linq with HtmlAgilityPack, or alternative, in PCL

I have written a project on .NET 4 and am currently in the process of allowing it to run on Windows Phone as well. I am using HtmlAgilityPack, a well known library which allows Linq queries over HTML, and am only using the LoadHtml and Linq…
21
votes
1 answer

Bind to parent datacontext (out of itemsource)

In my Windows Phone 8 app I have list of items. I have defined ItemTemplate for list items. I want to display in each of these items one value from view model, not from the list item itself. How should I set up the binding from list item to…
devha
  • 3,307
  • 4
  • 28
  • 52
21
votes
3 answers

Windows Phone Silverlight 8.1 project app submission error

I submit a test Windows Phone Silverlight Project 8.1 and get this error when submit The package identity associated with this update doesn't match the uploaded appx: "2e740376-677c-4df8-b1af-95b72863f017" Windows Phone 8.0 project dont meet that…
HelloWindowsPhone
  • 680
  • 10
  • 19
21
votes
1 answer

Why does the Synchronized method always return false?

In Windows Phone 8 (only on device!) try running this code: public MainPage() { InitializeComponent(); var myTrue = GetTrue(); Debug.WriteLine(myTrue); // false } [MethodImpl(MethodImplOptions.Synchronized)] private static bool?…
Roman Golenok
  • 1,427
  • 9
  • 26
21
votes
7 answers

How to set a default source for an Image if binding source is null?

I'm using binding for source of an Image control. But this ImageUri can be null, therefor I want to use a default image, a place holder, for that, which can be in /Assets/PlaceHolder.png for example. How can I…
user2715606
  • 267
  • 1
  • 3
  • 9