windows-phone-7

HttpWebRequest initializing - response never received

I am currently working on an implementation of an application for Windows Phone 7 that should retrieve the SHOUTcast stream (inspired by this question). The stream location is represented by an IP address and a port. Here is an example of a SHOUTcast stream URL: http://78.159.104.183:80 I am trying to make a HttpWebRequest to get the ...

How to store passwords offline

Hey. Although this is focused on Windows Phone 7, I guess the principle is universal. I would like to have a password protected zone within my app. However, my application is completely offline and so I will have to store credential details on the phone. My initial idea is to store a hash of the password and the salt. Would this be the...

How to validate that a textbox has a valid monetary value inputed?

I'm making a little app for calculating tips for Windows Phone 7 and I want to validate the inputs before trying to calculate things. How can I check if the textbox has a valid monetary value inserted? No letters and no more than one Dot for decimal places. ...

How can I remove all of numbers after the dot?

I'm making a small tip calculator for the Windows Phone 7 and I'm almost done: I'm having trouble getting the trailing decimals places to do what I want though. I want to display the result with only two values after the comma. Any suggestions? Here's my code: private void btnSubmit_Click(object sender, RoutedEventArgs e) { if (V...

How can I manage different screens on a Windows Phone 7 application?

For example, I want a button to take me to a settings page, and then back to the main screen. Just as an example for me to understand the workflow. Any guidance? ...

Access internal field [WebClient]

I have a WebClient instance that receives data from a remote website. I referenced a DownloadProgressChanged event handler and I am trying to access InnerBuffer, which is an internal field in the DownloadBitsState nested class (set as private) in WebClient. I am using the following code right in the DownloadProgressChanged event handler...

Making HTTPS calls to website that does not have API

I am working on a wp7 app and I want to make an https call (sign-in and then post ) to a website which does not have an REST API. So I will have to use it just like a browser adding headers to the https sign in call and parsing the resulting data get the Cookie data and unique id assigned extra and pass that on to a subsequent https ca...

Using IsolatedStorage, Is it necessary to check if a directory exists before creating it?

I'm working on a Windows Phone 7 app, and I was wondering whether anyone had a definitive answer on whether or not I have to check if a directory exists before creating one, and what the advantages/disadvantages of doing/not doing so are. As far as I can tell, from stepping through my code, the following two blocks of code work in the sa...

Page navigation on left/right swipe

I'm trying to achieve swipe navigation on Windows Phone 7. I would like to navigate from one page to another by swiping left or right. How can i do this? ...

Are there predifined styles for making arrow buttons in windows phone 7?

I want to make some buttons in my app that look like the common round buttons with the arrows found all over the win 7 apps. Anyone know where I can find resources for these? UPDATE Here's a great tutorial on creating round buttons in WP7. This is exactly what I was trying to do, but I will use the images mentioned by John Gardner belo...

Windows 7 Phone app best way to store credentials

I am looking for the best practice for storing user credentials in a windows 7 phone app. I am writing an app for a web service that requires authentication. Thankfully it is only basic authentication at this point. What is the best way to store those credentials? ...

How do I share styles in WP7?

There's no "ResourceDictionary" templates in the WP7 SDK. Is there a different way of creating styles to share across pages? Thanks! ...

How to add GestureListener handler to a control in cs code in silverlight?

I don’t understand how to use some features from Windows Phone Toolkit in cs code in Silverlight (more precise, I don’t understand how to use GestureListener). I saw many examples of using GestureListener in xaml like this <Image Source="something.jpg"> <toolkit:GestureService.GestureListener> <toolkit:GestureListener Tap="i...

Windows Phone 7 target display resolution - recommendations?

The official WP7 emulator uses 800x480 resolution. The only info I can find on planned WP7 phones (eg Samsung Cetus i917) share the same resolution. While I realise the appeal of writing resolution-independant programs, I'd really rather focus on pushing a known set of hardware to the max than sacrificing features and efficiency for one-...

What other tools and frameworks i should aware of before start learning windows7 mobile programming?

I am going to learn Windows7 mobile programming soon, what are tools and frameworks I should make sure to know very well before start. For example, is know silverlight or wpf is something important? what else important? ...

WP7 / Silverlight]Binding remote images in listbox so the UI doesn't block

Hi: (Scenario: Windows Phone 7 / Silverlight) I have a ListBox that i will simplify to this XAML: <ListBox ItemsSource="{Binding Path=ImageLinks}"> <!-- ImageLinks a collection in ViewModel --> <ListBox.ItemTemplate> <DataTemplate> <Image Source="{Binding Path=ImageSource}" /> <!-- ImageSource i...

Dotfuscator for WinPhone 7 and XNA

Does anyone know if Dotfuscator supports WinPhone7 and XNA applications ? ...

Is there a Windows Phone 7 reference application?

Hey All, Are there any solid Windows Phone 7 reference applications that demonstrate core APIs and best practices for Windows Phone 7 + Silverlight? Specifically, I think there are a few major concepts that are not well-documented or well-built-out. Rather than fall back to frameworks, I'd like to have a better understanding of how the...

Where can I download the Windows Phone Developer tools?

I found the web downloader but they never seem to work for me, how can I download the latest release in an ISO format or a full installer? I cannot use the web downloader. Thanks! ...

Is it possible to share code between a Silverlight web app and Windows Phone 7 app

I have a simple Silverlight app that I want to run on Windows Phone 7 almost exactly as is. I've created a new Windows Phone 7 project and when I reference the Silverlight app I get a warning that says "Adding a reference to a Silverlight project might not work properly. Do you want to continue?". If I continue and try to run anyway, th...