windows-phone-7

XML Serialization/Deserialization per item

hey I'm designing a car catalogue and need to use XML files for storage. In previous projecs, I was manually editing XML files with Linq. However, I came across XML serialization and am thinking this might be a better approach. Each item in the catalogue would be of type CarItem and contain various attributes. The catalogue can contain ...

A custom datetime struct

I am trying to develop a clock application with images for each digits from 0-9. Wrote a struct that gives me each digits every now and then. Following is the struct. public struct TimeStruct { public DateTime dt { get { return DateTime.Now; } } public int s { get {...

Windows Phone 7 Developer Tools and Existing Visual Studio 2010 Install - How?

Microsoft's Windows Phone 7 developer site that contains the following: * Visual Studio 2010 Express for Windows Phone CTP * Windows Phone Emulator CTP * Silverlight for Windows Phone CTP * XNA Game Studio 4.0 CTP I already have Visual Studio 2010 installed. Will the installer use my existing installation of VS2010 and add to it or wi...

How to pass the image value in one xaml page to another xaml page in windows phone 7?

Hi, My Requirement is, in first xaml page place all the images .if whenever click on particular image that image can be displayed in another xaml page .How To pass The image value from one xaml page to another xaml page for windows phone 7 app developement using silverlight. ...

HTTP Streaming issues with WP7 (Windows Phone 7) and Fiddler

I am having a very peculiar problem with a program that I am developing for WP7. First a background, I am developing a streaming quote application that uses HttpWebRequest/Response asynchronously. I am also monitoring the whole thing in Fiddler to make sure everything is right. The quotes are coming in through an always open Http conn...

How To set Media element in Windows Phone 7 ?

I Want Details Explanation and Code For How To Set MediaElement In Windows Phone 7? ...

UI not updating in async web request callback

I'm using this to make a web request and download some data: public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); var client = new WebClient(); client.DownloadStringCompleted += (s, e) => { textBlock1.Text = e.Result; }; client.Do...

Protocol buffer net with windows phone 7

I'm trying to download a response from a server wich is in Protocol Buffer format from a Windows Phone 7 application. I'm trying to do this with a WebClient, my problem is the following. The WebClient has only two method for downloading DownloadStringAsync(new Uri(url)); and OpenReadAsync(new Uri(url)); but this two method are...

How To add Background audio in windows phone 7?

I Want To add Background Audio When Image Is Displaying .Give Detail Explanation and Sample Code For That One . ...

Static resources not found in brand new Windows Phone 7 Silverlight app

I've just installed the Beta version of the windows phone developer tools, however now when I create a brand new application using the 'Windows Phone Application" template, I see a number of warnings about static resources not being found e.g. Warning 3 The resource "PhoneFontFamilyNormal" could not be resolved. Couldn't fi...

QueryString Concept in Windows phone 7 developement?

I am using Silverlight to develop a Windows Phone 7 application. My requirement is when clicking on 1 image then it can be displayed in next page and zoomin that image automatically in that page. In the same way by clicking on another images same approach has to be occur. Give Detail explanation and Code For that One i'm new in windows ...

How To Display the Images Dynamically in windows phone 7 application developement?

I Want to Display the Images Dynamically.i'e If Whenever Click On Particular image some more (4 to 5 times)times that can be disappear and new image can be fill this place.in that i want to display the images dynamically in windows phone 7 using silverlight. ...

How To Navigate Images From One Page To Another page in windows phone 7?

I Want To Display One Xaml page Image In Another Xaml Page When clicking On It in windows Phone 7 Application Using Silverlight.Give Sample Code for That One. ...

How to change background/foreground colors in ReadOnly textbox?

In Windows Phone 7, a textbox with IsReadOnly property is set to true, when it runs (at least in the Beta emulator), even with Background color set to Black and Foreground color set to White, the background remains gray with the foreground chars a lighter gray. I need to change this so it is readable! So is there a way to override th...

How to test the accelerometer for Windows Phone 7?

I'm wondering what is the best way to test the accelerometer? There doesn't seem to be any simulation for movement on the emulator, and mocking seems like it would be difficult. Should I just do a best guess and wait until the real devices come out or is there another approach to consider? ...

Windows Phone app crashes when navigating back from a task

Some pages in my app allow users to click a hyperlink to launch the external browser via a WebBrowserHelper. I'm carefully saving the app state in OnNavigatedFrom and restoring it in OnNavigatedTo, but when the user navigates back from the web browser into my app, the app hangs, then crashes. I've carefully followed the great blog post...

WP7: Remove Underscore in application name

I have a Windows Phone 7 app that has a space in the name. VS replaced the space with an underscore throughout the app, which is Ok for namespaces and such, but I cannot figure out how to remove it from the app name as it appars on the device start menu. ...

Why is Windows Phone 7 emulator so slow compared to, um, iPhone OS Emulator?

I don't mean to start a war between iPhone vs Windows Phone 7, nor am I against Windows Phone 7. But I've noticed on both of my computers Windows Phone 7 emulator (Beta and CTP) lags like it's running on a crappy last-decade Celeron computer. I have 2 computers: Macbook Pro 13" (2010 Model) with 2.4GHZ Core 2 Duo, 4GB RAM and ASUS G1 wi...

Is it possible to make WP7 Beta compile code with Tuples?

When I use Tuples, compile breaks. Anybody knows if it possible to use Tuples within WP7 without re-implementing? ...

WP7 - ViewModel Unit Testing

I had a unit test project for my windows phone 7 app ViewModels using the April Tools Refresh and everything worked fine. I just updated to the beta tools and now I can't get the test project to add a reference to nunit. The error I receive is "Reference can not be added because it was not built using the Windows Phone runtime. Win...