windows-phone-7

How to know if a phone running a XNA application has a keyboard?

Hello, For the purpose of a game which must respect MS' TRC, I need to know if a phone has a physical keyboard to handle it. How can I know it? Here is an integrated function which permit to know it? Thanks, KiTe ...

In Windows Phone 7 how can I save a BitmapImage to local storage?

In Windows Phone 7 how can I save a BitmapImage to local storage? I need to save the image for caching and reload if it is requested again in the next few days. ...

Collection with 10 elements (only)

Hi, I would like to make a score list with only 10 elements. Basically, simple collection which adds the value. If new value is higher than other one it adds one and last one get out. (everyone knows how it looks like :) ) Secondly, I need a list of 5 lastest values that have been changed, something like history panel. All in all, both...

what is the correct build action for windows phone 7 image files?

I've been working on a Windows Phone 7 app, and after a bit of Googling it seems that for images that I have added to the Visual Studio project, I need to set the build action to "Content" in order to be able to reference the images in my app. However, the Windows Phone List Application project template includes an image (ArrowImg.png) ...

Silverlight class library to Windows phone 7 class library

Does anyone know of a tool or a way within Visual Studio 2010 to convert a Silverlight 4 class library project to a Windows Phone 7 Class Library project? I could resort to copying and pasting class files, but if I can avoid that with a conversion tool, that would save all kinds of time. Steve ...

Drag/Swipe to scroll the screen

What would be the best way to have a vertical scrolling screen? My game will consume two screens high, the user should be able to move between the two screens by a simple drag or swipe action. The background is not tiled and sprites will be placed on it. What would be the best way to go about such screen management? ...

Windows Phone 7 - controls content and async request

I think this is trivial, but I cannot find the answer :( I have a WP7 page that hosts some controls that I want to populate with date read from a web request. The web request is done with: WebClient wr = new WebClient(); wr.DownloadStringCompleted += new DownloadStringCompletedEventHandler(Event_DownloadStringCompleted);...

Can't twitter status using oAuth and .net Hammock library on Windows Phone 7

I've been able setup the oAuth calls to get the users access Token following a couple blog posts: http://sudheerkovalam.wordpress.com/2010/08/28/a-windows-phone-7-twitter-application-part-1/ and :/byatool.com/c/connect-your-web-app-to-twitter-using-hammock-csharp/comment-page-1/#comment-9955 But I'm having problems sending a status up...

WIndows Phone 7 - ListViewItem Class Problem

I have an app which was developed using WP7 developer CTP tools.Now I'm trying to run the same app but on WP7 beta tools. I have made all the changes needed for the above conversion as per Microsoft Release Notes It has mentioned that ListView and ListViewItem classes are removed from Microsoft.Phone.Controls namespace. Following is t...

How to make local touch event handler for windows phone page?

Hi, I have several pages in my windows phone/silverlight project in a constructor of one of the pages added touch event handler like this: Touch.FrameReported += Touch_FrameReported; The problem is that it works for all the pages in my project, but I need to limit it just to one page. How can I do that? How to make local touch event...

Is my Windows Phone 7 app restricted to SMSComposeTask?

The documentation is somewhat scarce, but my search has not turned up anything but SMSComposeTask for sending text messages from an app. Will this be the only way to send SMS messages in Windows Phone 7 from an app? Does Android and iOS (4 or previous) place similar restrictions on sending SMS messages from an app? ...

Input validation in textbox in windows phone 7

I am new to windows phone 7 development platform.I am trying to do validation for textbox input. On debugging ,in case of invalid input , I get the error "exception was unhandled".How to correct this?This code works fine for silverlight application. TextBox Text="{Binding Name, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExcep...

Silverlight - Binding Listbox ActualWidth to ListboxItem Width

Hi, I'm working on a photo gallery for Windows Phone 7 and I'm trying to get each image to take the full screen and slide horizontally. What I am doing so far is to use a listbox that I have modified to scroll horizontally but the problem is that I can't seem to find a way to bind the width and the height of the ListboxItem with the A...

Windows Phone 7: web service problem

From a WindowsPhone7 application I need to query a web service by sending a "category" string parameter an expecting to get a string in return. I tried to follow identically the "Weather Forecast" sample from the MSDN, but I always get en empty string. If I add some Debug.WriteLine commands I can see that the callback executes AFTER the ...

Very simple databinding crashes / GlobalOffsetZ / Windows Phone

HI there, I'm playing around with the new Windows Phone 7 SDK and have a prob here... xaml <Rectangle Fill="#FFFFEA00" Stroke="Black" Height="300" Width="300"> <Rectangle.Projection> <PlaneProjection GlobalOffsetZ="{Binding Path=Test}" /> </Rectangle.Projection> </Rectangl...

Listbox in reverse order (template)

Is there a template reverse order in Listbox? I'm using ObservableCollection and I would like to avoid any extra sorting, inserting etc. ...

Beginning Phone Applications Development

I've been developing applications for a long time now, but now I want to jump into Phone applications development. There are four main candidates: Nokia's Symbian Apple's iPhone Google's Android Microsoft Windows Mobile Phone Can anyone suggest one, considering documentation, market, samples and availabilty of emulators, I'm not a mi...

SQLite and sub-sonic

Does Subsonic supports SQLite, if so can subsonic work with Win7 Phone ? ...

Extremely confused about ContentPresenter

FYI I'm pretty new to Silverlight. Okay, so I want to build a simple user control that contains a button plus some additional XAML as specified by the client of the control. I got searching on Google and found at least 30 different articles that were all very confusing; especially because they talk about styling animation, customizing ...

Windows Phone 7 emulator : Can I simulate a phone call

I am looking into developing for Windows Phone 7. For testing my app, I need to be able to simulate a phone call. Is it possible in the emulator ? ...