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

18315 questions
29
votes
4 answers

How to Deserialize JSON data?

I am new to working with JSON data. I am reading data from a web service. The query data sent back is the following: [["B02001_001E","NAME","state"], ["4712651","Alabama","01"], ["691189","Alaska","02"], ["6246816","Arizona","04"], …
eitan barazani
  • 1,073
  • 3
  • 16
  • 33
28
votes
1 answer

StorageFile 50 times slower than IsolatedStorageFile

I was just benchmarking multiple algorithms to find the fastest way to load all data in my app when I discovered that the WP7 version of my app running on my Lumia 920 loads the data 2 times as fast as the WP8 version running on the same device. I…
28
votes
5 answers

How can I use async/await to call a webservice?

I have a webservice written in Yii (php framework). I use C# and Visual Studio 2012 to develop a WP8 application. I added a service reference to my project (Add Service Reference). So I am able to use webservice functions. client = new…
MPeli
  • 530
  • 1
  • 7
  • 18
27
votes
15 answers

Windows Phone emulator not starting (couldn`t setup the UDP port)

After updating Windows 10 to build 10061 windows phone emulators (all 8.1 and 10) stopped starting. I get the following error: "Windows Phone Emulator is unable to connect to the Windows Phone operating system. Couldn`t setup the UDP port" I tried…
27
votes
3 answers

Why do I get an OutOfMemoryException when I have images in my ListBox?

I want to display all images stored in the Windows Phone 8 photo folder in my custom gallery which uses a ListBox for displaying the images. The ListBox code is as follows:
Hyndrix
  • 3,750
  • 7
  • 32
  • 67
26
votes
3 answers

Windows Phone deploy Issue

I have a strange issue that I can not seem to find any record of but it has now happened to me on two separate machines! I am building Windows Phone 8.1 apps and testing them on a physical device. This works fine for a time until at some point with…
Carl Robinson
  • 468
  • 1
  • 4
  • 16
26
votes
2 answers

How do I deserialize an array of enum using Json.Net?

I have a JSON like this: [{ "agencyId": "myCity", "road": { "note": "", "lat": "45.321", "lon": "12.21", "streetCode": "290", "street": "street1", "fromNumber": "", "toNumber": "", …
panizza
  • 295
  • 3
  • 6
26
votes
3 answers

Windows Phone 8 template in Visual Studio 2013 Preview

I am running Windows 8 x64 and have Visual Studio 2012 with the latest update and Visual Studio 2013 preview (latest update) installed. I also have the Windows Phone SDK for Windows Phone 8 development on Visual Studio 2012. I have read somewhere…
JP Hellemons
  • 5,661
  • 8
  • 54
  • 121
26
votes
3 answers

Windows Phone 8 Startscreen Tile sizes and margins

I was wondering if someone knows the exact measurements of the new Windows Phone 8 Startscreen (for 480x800), i.e. margins (top, left & right, between tiles) and the edge length of all three different tile sizes.
Thomas
  • 3,399
  • 4
  • 33
  • 66
25
votes
5 answers

Adding authorization to the headers

I have the following code: ... AuthenticationHeaderValue authHeaders = new AuthenticationHeaderValue("OAuth2", Contract.AccessToken); string result = await PostRequest.AuthenticatedGetData(fullUrl, null, authHeaders); return result; ... public…
Jimmyt1988
  • 18,656
  • 34
  • 113
  • 210
25
votes
3 answers

Properly handling HttpClient exceptions within async / await

I was hoping somebody could enlighten me a little bit on an issue I am facing in regards to async/await exception handling with HttpClient. I have written some code to illustrate, and it is being excecuted on both a Windows Phone 8 device and the…
Nils Holtar
  • 253
  • 1
  • 3
  • 4
25
votes
2 answers

XAML UserControl inheritance

Coming from Java, I'm really used to a common practice when it comes to make GUI components: I usually do some sort of base class which contains all the common objects for my GUI components and then I extend it. So, basically, this is what I'd like…
StepTNT
  • 3,705
  • 5
  • 34
  • 77
24
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,006
  • 2
  • 23
  • 41
24
votes
3 answers

Xaml TextBlock set round corner

I am trying to set rounded corner of TextBlock in xaml. But there is no such property.
Ajay
  • 6,233
  • 15
  • 62
  • 122
24
votes
3 answers

Checking if a DateTime is before DateTime.Now

How can I check using some form of if statement if a certain DateTime, (say in this case called dateAndTime1) is before the current date and time, which I presume will be retrieved using DateTime.Now?
Newbie
  • 1,134
  • 2
  • 10
  • 22