Questions tagged [windows-phone-7]

Windows Phone is Microsoft's, now deprecated, mobile operating system and software development platform. Use this tag for questions specific to Version 7.x

Windows Phone is a mobile operating system developed by Microsoft, and is the successor to its Windows Mobile platform. Supported platforms for building applications for Windows Phone include Microsoft Silverlight for traditional applications and Microsoft XNA for games. This platform is no longer supported by Microsoft and should be considered obsolete.

Development on the Windows Phone platform is only supported in managed languages, using either Silverlight or XNA. With the 7.1 SDK update, Silverlight applications can be integrated with XNA.

Windows Phone 7 featured a new user interface, based upon Microsoft's Windows Phone design system, codenamed and commonly referred to as Modern UI (previous name was Metro). The home screen, called the "Start screen", is made up of "Live Tiles", which have been the inspiration for the Windows 8 live tiles.

NOTE: With the 7.1 SDK, the ID_CAP_INTEROPSERVICES capability was removed, rendering third-party support for COM interop unusable. The native (unmanaged) layer is currently only available to OEMs.

External Resources

More information

See for more information.

19662 questions
38
votes
10 answers

The name 'InitializeComponent' does not exist in the current context. Cannot get any help on net searches

Hi I am getting an error of InitializeComponent in my app.xaml.cs page I have checked the net and everything but no solution works. Please help. InitializeComponent does not exist C# file: using System; using System.Collections.Generic; using…
nik
  • 576
  • 2
  • 7
  • 14
37
votes
1 answer

TemplateBinding to DependencyProperty on a custom control not working

Currently, I'm working on a simple custom button that uses user supplied images as a background for the pressed and normal states. I've a lot of buttons so I decided to write a custom button and implement two properties for the pressed and normal…
Waleed
  • 3,105
  • 2
  • 24
  • 31
37
votes
4 answers

Windows Phone 7 (WP7) Change a button's background color on click

This seems like a really, really simple problem, but I can't figure it out. The culprit appears to be WP7's default style. It changes the background color to white when a button is clicked, then back to the button's default background. The problem I…
Jason
  • 1,225
  • 2
  • 16
  • 18
37
votes
6 answers

Windows Phone 7 and native C++/CLI

Microsoft recently released tools and documentation for its new Phone 7 platform, which to the dismay of those who have a big C++ codebase (like me) doesn't support native development anymore. Although I've found speculation about this decision…
Fabio Ceconello
  • 15,819
  • 5
  • 38
  • 51
36
votes
1 answer

How do I change the startup page on a WP7 Silverlight app?

I have added a new XAML page to my WP7 app and I need the application to startup on this new page. How do I do that ? I cannot find MainPage (which is the current / default start page) referenced anywhere in App.xaml or App.xaml.cs.
driis
  • 161,458
  • 45
  • 265
  • 341
35
votes
6 answers

How should I implement ExecuteAsync with RestSharp on Windows Phone 7?

I'm attempting to use the documentation on the RestSharp GitHub wiki to implement calls to my REST API service but I'm having an issue with the ExecuteAsync method in particular. Currently my code looks like this for the API class: public class…
joshcollie
  • 471
  • 1
  • 4
  • 9
34
votes
4 answers

Windows Phone 7 Browser - Turn off the gray shading when links are clicked

With the Windows Phone 7 Browser, when the user clicks a link, it is shaded with a gray rectangle for approximately 0.5 seconds. This is fine in generally, however, if you have dynamic page behaviour, for example, clicking a link updates the DOM so…
ColinE
  • 68,894
  • 15
  • 164
  • 232
34
votes
8 answers

"UpdateSourceTrigger=PropertyChanged" equivalent for a Windows Phone 7 TextBox

Is there a way to get a TextBox in Windows Phone 7 to update the Binding as the user types each letter rather than after losing focus? Like the following WPF TextBox would do:
Jason Quinn
  • 2,443
  • 3
  • 28
  • 36
34
votes
1 answer

Visual Studio 2010 Express. Write to the output window

I'm new to Visual Studio and Windows Phone 7 developping. I did activate the redirect all output text option, but neith Debug.Writeline() or Console.WriteLine() are working... How can I log infos ?
Thomas Joulin
  • 6,590
  • 9
  • 53
  • 88
34
votes
4 answers

Local Sql database support for Windows phone 7

I would like to develop for Windows Phone 7 but the lack of database support still blocks me. Has anyone found a good library, stack to use for accessing local database from WinPhone7? Can you post links/examples of good practices to select/insert…
Cris
  • 12,124
  • 27
  • 92
  • 159
34
votes
2 answers

Getting GPS coordinates on Windows phone 7

How can I get the current GPS coordinates on Windows Phone 7?
user380719
  • 9,663
  • 15
  • 54
  • 89
34
votes
3 answers

HttpUtility.UrlEncode in Windows Phone 7?

The regular .Net framework contains HttpUtility.UrlEncode in the System.Web Assembly and in Silverlight it appears it was moved to System.Windows.Browser. But in Windows Phone 7 (which I thought was the same as Silverlight) I can't seem to find a…
Luke Foust
  • 2,234
  • 5
  • 29
  • 36
34
votes
2 answers

Divide timespan by 2?

I have two times, and their values are picked up from a XML from web. XElement xmlWdata = XElement.Parse(e.Result); string SunRise = xmlWdata.Element("sun").Attribute("rise").Value; string SunSet =…
Megaoctane
  • 919
  • 3
  • 9
  • 10
33
votes
1 answer

Custom WP7 Silverlight control with dynamic 3D content

Ideally I need to implement a WP7 control that can be added to any XAML and which displays a dynamic, interactive 3D scene. Currently I have this implemented via XNA in shared mode, and the UI is rendered on top of the scene using UIElementRenderer.…
SnakE
  • 2,355
  • 23
  • 31
33
votes
3 answers

Will I still need tombstoning in Mango?

With multi-tasking enabled, can I safely throw away tombstoning when porting my project to Mango?
Sergey Aldoukhov
  • 22,316
  • 18
  • 72
  • 99