windows-phone-7

How to determine orientation of Windows Phone 7 in XNA game?

Similar to this question, but looking for an answer that will work in the context of an XNA game. How can I determine whether the device is in a landscape or portrait orientation? The answer given in the general question relies upon functionality built into PhoneApplicationPage. AFAIK, you wouldn't normally be using that class within ...

Windows Phone 7 Development Books to Suggest !

Hi, Which books would you suggest about Windows Phone 7 Development ? Thanks. ...

System.UnsupportedException using WCF on Windows Phone 7

Has anyone been able to communicate using WCF on Windows Phone Series 7 emulator? I've been trying for the past two days and it's just happening for me. I can get a normal Silverlight control to work in both Silverlight 3 and Silverlight 4, but not the phone version. Here are two versions that I've tried: Version 1 - Using Async Patter...

Good Async pattern for sequential WebClient requests

Most of the code I've written in .NET to make REST calls have been synchronous. Since Silverlight on Windows Phone only supports Async WebClient and HttpWebRequest calls, I was wondering what a good async pattern is for a Class that exposes methods that make REST calls. For example, I have an app that needs to do the following. Login ...

Visual Studio 2010 Express for Windows Phone not installing

I have download and installed Visual Studio 2010 RC and I want to develop for the new Windows Phone 7. But when I run the vm_web.exe (that IS the name of the exe file, isn't it?), It still says that I haven't installed Silverlight 4.0 SDK, BUT I have installed the Silverlight SDK. In my control panel's menu, it says I have installed "Mic...

Windows Phone 7 Connect to SharePoint via SOAP

I am making my second application for the Windows 7 Phone Series platform and I cannot seem to connect to a SharePoint server using https. 99% of the following is not my code. I have borrowed it from http://blog.daisley-harrison.com/blog/post/Practical-Silverlight-and-SharePoint-Integration-Part-Two.aspx untill I can further understand...

Windows Phone - OnNavigatingFrom - problem

I believe this is just a problem for me, due to my lack of programming ability. I am currently exploring transitions between page navigation with Windows Phone apps. I was originally using storyboards, and completed event handlers to have my pages animate on and off screen. These leads to the a problem when you want to navigate to man...

How do I choose files from the local filesystem in Windows Phone 7

I'm trying to choose some files to upload in Windows Phone 7 (in the emulator), and any attempt to ShowDialog of the OpenFileDialog leads to a Security Exception. The open file dialog is being called from an event on a button click but I get a SecurityException [FileDialog_ActiveScripting] Arguments: Debugging resource strings are una...

Good tutorials for learning c# for Windows Phone 7 development

Hi, I have downloaded the Visual Studio 2010 CTP along with Phone 7 emulator, but am finding writing code a little counter intuative (coming from a c++ background). Can someone direct me to some good intermediate-level resources / tutorials? ...

Validating Application Settings Key Values in Isolated Storage for Windows Phone Applications

Hello everyone. I am very new at all this c# Windows Phone programming, so this is most probably a dumb question, but I need to know anywho... IsolatedStorageSettings appSettings = IsolatedStorageSettings.ApplicationSettings; if (!appSettings.Contains("isFirstRun")) { firstrunChe...

WpfToolkit DataGrid does not work in Windows Phone 7

...

Windows Phone 7 : Socket Programming

Is there any support for TCP/IP Sockets in Windows Phone 7? I'm not having any luck finding it so far. I want to connect to a port on a server and issue commands/receive responses ...

How to load any XAP file with the Windows Phone 7 emulator

Does anyone know if it is possible to load a windows phone 7 XAP file into the emulator without the solution or source files? In other words, can I send somebody just a XAP file so that they can test my app, without giving them the full source code? ...

Problem Executing Async Web Request

Hi Can anyone tell me what I've done wrong with this simple code? When I run it it hangs on using (Stream postStream = request.EndGetRequestStream(asynchronousResult)) If I comment out the requestState.Wait.WaitOne(); line the code executes correctly but obviously doesn't wait for the response. I'm guessing the the call to EndGetReque...

Windows phone 7 - Is it possible to use its camera in Silverlight?

Is it possible to use Windows phone 7's camera in Silverlight in ANY way? ...

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 proper way to UrlEncode anything. Neither of the previously mentioned assemblies are availab...

Panoramic view in windows mobile (silverlight 4)

Hi, I was watching MIX session. Presenter there was refering "Panoramic experience" in windows phone. Is a ready-to-use control available anywhere or even beter in silverlight 4 itself? ...

Windows Phone 7 Application + WCF + SSL + Username Authentication

Hello, I have developed a test service with WCF, which I try to consume from a Windows Phone 7 Application, however when calling a method from the service I get a weird exception: There was no endpoint listening at https://server/Service.svc that could accept the message. This is often caused by an incorrect address or SOAP ...

Windows Phone 7 Notifications/Pop/Toasts

If there a way to display a normal Notification/Toast/Popup in Windows Phone 7, which is not a Push Notification? All I want to do is to be able to give the user a message when something occurs... ...

How to get screen size on Windows Phone 7 Series?

How do I programatically get the screen resolution on WP7? Here are a bunch of links that get the same job done in desktop WPF and Silverlight, but none of them are in the Phone SDK. Any ideas? http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/f0639904-a368-44db-9ddd-efcaf8fc736e http://social.msdn.microsoft.com/...