windows-phone-7

Windows Phone 7 Settings

Hi All, I've noticed that in the Phone 7 Beta emulator there is a settings application. It contains an "applications" panel. This seems to imply that we should be writing settings plugins so that settings for all apps are managed centrally, similarly to how the iPhone settings work. Does anyone know how we write/register these plugins?...

What's the right pattern? An observer between the viewmodel & service

I am building a WP7 client app that talk to a web service (SOAP like) using Mvvm-Light. I have a ViewModel that both implements INotifyPropertyChanged and calls RaisePropertryChanged with the broadcast flag set. Both my view (XAML) and my model (which does HTTP requests to the web service) subscribe to property changes. XAML, obviou...

Notification Architecture

Hi everyone, With the arrival of WP7, I developed a solution to business appointments. And I wonder about the architecture. My Silverlight application needs to communicate with web services, no problem here. By cons, I have another need that is a push to notify phones with the Microsoft Notification Push Service. My problem is how to h...

Getting GPS coordinates on Windows phone 7

How can I get the current GPS coordinates on Windows Phone 7? ...

How to Select a Particular PivotItem in Windows Phone 7 Using WP7 Panorama & Pivot Controls?

I have started using the Windows Phone 7 Panorama & Pivot Controls for a Windows Phone 7 application. In an OnNavigatedTo event, I'm trying to select which PivotItem to start the new View on. All SelectedItem and SelectedIndex seem to do is select the header. The content of the PivotItem is not shown and while the header is selected the ...

How can I detect network connectivity in Windows Phone 7?

How can I detect network connectivity in Windows Phone 7? Is there a simple API for that? ...

Change applicationbar buttonicon at runtime

hey, I'm developing a WP7 app and needs to change the icon of a button on the application bar given the state of a request. I have tried: if (App.Servers[index].ServerState == "Enabled") { DetailsAppBar.btnStart.IconUri = new Uri("/AppBar/appbar.stop.rest.png"); } else { DetailsAppBar.btnStart.IconUri = ne...

WP7 : How to do some treatment during splash screen, but before the first page is open ?

In a Windows Phone 7 application, I need to do some treatment before the first page gets opened. But I'd like to do it during the splash screen, so the user knows the application is effectively running. I tried several events : Application.Launching event is fired before splash screen Frame.Navigated event is fired after the first pag...

Best way to get a glow effect windows phone 7

I'm messing around with the Windows Phone 7 sdk and I'm trying to make the screen look like an old fashion digital display. Right now I'm trying to figure out how to make the text "glow" like one of those cool digital clocks. This is the sort of thing I'd assume you would look in to using shaders for, but it seems that shaders are disabl...

windows phone 7: how to create an application theme?

I would like to define a theme for my Windows Phone 7 application, to be applied at application launch regardless of the system theme set by the "Settings" phone menu. How can this be done? I see on MSDN that Fill="{StaticResource PhoneAccentBrush}" allows the control using that brush to respond to system-wide theme changes. How can I d...

Silverlight - How to navigate from a User Control to a normal page?

If I do this inside a User Control: NavigationService.Navigate(new Uri("/Alliance.xaml", UriKind.Relative)); it says this error: An object reference is required for the non-static field, method, or property 'System.Windows.Navigation.NavigationService.Navigate(System.Uri)' Thank you ...

Why don't I have a zh-HK CultureInfo in the RTM Windows Phone 7 SDK?

When I try to create a CultureInfo for zh-HK using the Windows Phone 7 RTM SDK, I get a System.ArgumentException with "Value does not fall within the expected range.". This is using the ENU variant of the SDK (US / English). http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo(v=VS.95).aspx specifically uses the "zh...

Silverlight ListBox with ObservableCollection<T> and dynamic filter

Lets say I have this class: public class MyData { public bool IsActive{get;set;} public String Data1 {get;set;} public String Data2 {get;set;} } and an ObservableCollection<MyData> data = new ObservableCollection<MyData>; ListBox.ItemsSource = data; Adding items to the ObservableCollectionworks as expected; however, I w...

Where is the "WebClient.UploadString" Method in Windows Phone 7 ?

I have some old code that I'm converting to use in Windows Phone. The old code was : private String Post(string url, string Data) { return webClient.UploadString(url, "POST", Data); } The problem is there isn't a function called UploadString in webClient. Instead, it's the asynchronous one (UploadStringAsync). How can I convert the ab...

HttpWebRequest for ShoutCast on Windows Phone7

Hi I tring to stream shoutcast stream in my window phone 7 app I start an async HttpWebRequest like this //Init Request HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create("http://ACommonoShoutCastUrl:8000"); myHttpWebRequest.Headers["Icy-MetaData"] = "1"; myHttpWebRequest.UserAgent = "WinampMPEG/5.09"; myHttpWebRe...

Fiddler and Windows Phone 7 emulator - redirect to proxy

I am just curious - did anyone got Fiddler to work with Windows Phone 7 emulator (RTW build)? When I try working with Fiddler, I am getting a WebException when working with HttpWebRequest insances - NotFound, to be specific. WireShark works fine. The problem I see here is that Fiddler acts as a proxy and the WP7 application I am using d...

How to read in a txt file in XNA 4 for Windows Phone 7?

I had a look at this previous question however this doesn't seem to work for XNA 4 for a Windows Phone 7 project: http://stackoverflow.com/questions/1234426/xna-framework-importers I've been trying to use: string line; using (StreamReader sr = new StreamReader("credits.txt")) { while ((line = sr.ReadLine()) != null) { ...

Where to download templates for windows phone 7?

Can somebody list out the tools needed to develop for windows phone? How do I test my app apart from the emulator? Are there test phones available? I don't want to go through the installation of VS 2010 express. ...

How should I handle click events on pushpins in my Bing Maps control for WP7

I'm about to add templated <Button> controls inside each of my Pushpins on my Map, in order to interact with the user clicking (er, touching) a pushpin. Is this the proper way to work with pushpins? I don't want to handle MouseDown and MouseUp and reinvent everything (and nobody should). I just need confirmation. ...

Set a map's top-left and bottom-right coordinates

I have a fixed number of pushpins on a Bing Map control, and need to set the map's center and zoom level so that I see all pins. In other words, knowing the leftmost, rightmost, topmost and bottommost pins, how can I adjust the view so I see them all? Is the ZoomLevel value of any significance relative to the scaling/coordinates? ...