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
33
votes
4 answers

Shouldn't this cause an Overflow? It doesn't!

What's up with this, anyway? I do a simple multiplication: Int64 x = 11111111111; Int64 y = 11111111111; Int64 z = x * y; And at the end of the multiplication, z shows a value of: -5670418394979206991 This has clearly overflowed, but no exception…
Cyberherbalist
  • 12,061
  • 17
  • 83
  • 121
32
votes
2 answers

Disable screen from autolocking on Windows Phone 7

I need to prevent the screen from automatically locking itself if the user dont interact with the device for a while. Is it possible to request some kind of lock to keep the screen on while running my application?
jorgenfb
  • 2,215
  • 1
  • 21
  • 31
31
votes
6 answers

The [NeutralResourceLanguage] attribute is missing on the entry assembly

I'm trying to submit an app to the windows phone 7 marketplace and have never encountered this error when validating my .xap package. App Hub just remodeled and became back online roughly an hour ago. Does anyone know how I can fix this?
Tom
  • 1,187
  • 2
  • 12
  • 21
31
votes
3 answers

How can I simulate multi-touch in the Windows Phone 7 emulator?

I’m running the Windows Phone 7 emulator/simulator and I need to simulate the two-finger pinch/zoom gesture. Any tips?
Alan H.
  • 16,219
  • 17
  • 80
  • 113
30
votes
1 answer

TextBlock.TextWrapping - how to make the text wrap so that the lines are center-aligned?

In a Windows Phone 7 application, when I place a TextBlock in the grid and set its HorizontalAlignment to "Center" and its TextWrapping to "Wrap", why does the text that overflows the width of the container and is placed on the next line, align with…
Peter Perháč
  • 20,434
  • 21
  • 120
  • 152
29
votes
3 answers

Silverlight: Glyphs Width

Scenario I want to use Glyphs on WP7 to create a line of text that is justified, i.e. touches the left and right border of the surrounding rectangle. My solution var glyphs = new Glyphs(); glyphs.FontUri = new…
Tilo
  • 3,255
  • 26
  • 31
29
votes
7 answers

Windows Phone 7 emulator on a VM?

It seems that the Windows Phone 7 SDK doesn't support running inside a VM. On Parallels, the entire VM simply crashes when the emulator is starting up. Around the web, though, a few people have reported that they were able to use it by changing a…
Eduardo Scoz
  • 24,653
  • 6
  • 47
  • 62
29
votes
5 answers

How to make a wpf datagrid fill all available space and resize with window?

How to make a wpf datagrid fill all available space and resize with window? Mind that the datagrid is inside a grid.
user2330678
  • 2,221
  • 14
  • 43
  • 67
28
votes
2 answers

Portable Class Library HttpUtility.UrlEncode

I understand that making web requests is quite well supported in the Portable Class Library. Is there any equivelant of HttpUtility.UrlEncode in the PCL? I need it for Windows Phone and Metro applications.
27
votes
14 answers

Windows Phone 7 close application

Is there any possibility to programatically close Silverlight application on Windows Phone 7?
asd
  • 271
  • 1
  • 3
  • 3
27
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,418
  • 18
  • 79
  • 130
26
votes
6 answers

Map Tile Caching for Offline Viewing

I'm trying to build an application that will use open source maps from Open Street Maps (though the concept should be applicable to any map provider). The application will enable the user to specify a number of waypoints along a route prior to…
Derek Lakin
  • 16,179
  • 36
  • 51
26
votes
4 answers

Align Grid column to right

I have a Windows Phone / XAML Grid composed by 3 columns. In particular, I want the third column to be aligned to the very right side of the screen.
TheUnexpected
  • 3,077
  • 6
  • 32
  • 62
26
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,160
  • 2
  • 11
  • 24
25
votes
6 answers

How do I debug Internet Explorer on Windows Phone 7?

I'm not a Windows Phone developer, and I want as little to do as possible with anything related to Microsoft. Nonetheless, I need to get my mobile web app running properly on Windows Phone 7. What debugging tools are available for the platform?…