windows-phone-7

Autocomplete textbox in Windows Phone 7

I'm creating my first Windows Phone 7 application, and I'm struggling to find an autocomplete textbox. Is there an easy way to add one to the toolbox? Or do I need to create my own control? ...

Dynamically add columns to a listbox

I'm brand new to Windows Phone 7 development, and almost as equally new to Silverlight. I have a ListBox with a DataTemplate, StackPanel, and TextBlocks like so: <ListBox Height="355" HorizontalAlignment="Left" Margin="6,291,0,0" Name="detailsList" VerticalAlignment="Top" Width="474" Background="#36FFFFFF"> <ListBox.ItemTem...

Remove Registry Keys for Windows Phone 7 Emulator

I am trying to get the updated Windows Phone 7 tools installed, but can't get rid of the old ones. The uninstaller wouldn't run, so I had to try more extreme means. I got everything removed except for "Microsoft Windows Phone Emulator x64". Does anyone know what vm_web.exe (the tool installer) is checking for (registry, file, etc.) th...

Dependency Injection for Windows Phone 7

I was trying to use Unity 2.0 beta 2 for Silverlight in my Windows Phone 7 project and I kept getting this crash: Microsoft.Practices.Unity.Silverlight.dll!Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.DynamicMethodConstructorStrategy() + 0x1f bytes Microsoft.Practices.Unity.Silverlight.dll!Microsoft.Practices...

Detect that the onscreen keyboard has been displayed on Windows Phone 7

Simple question: How do I detect that the onscreen keyboard has been displayed on windows mobile 7? Is there an event I can add a listener to? It takes up about half the screen and I want to scroll the view up when it gets displayed... EDIT: A comment below indicates more clearly what I'm trying to do: I have a textbox input, and as ...

Windows Phone 7, download xml over ssl with authentication

Hi, I'm trying to download a file from my provider. The url is protected with basic username and password, and everything is sent over ssl. So I try to do this: WebClient proxy = new WebClient(); proxy.DownloadStringCompleted += (o, dscea) => System.Diagnostics.Debugger.Break(); proxy.Credentials = new Network...

What is the difference between NavigationService.Navigate() method and PhoneApplicationFrame.Source property?

Taken from Exercise 1: Creating Windows Phone Applications with Microsoft Visual Studio 2010 Express for Windows Phone Task 3: Step 9 // navigate this.NavigationService.Navigate(new Uri("/PuzzlePage.xaml", UriKind.Relative)); Note: The PhoneApplicationPage class provides methods and properties to navigate to pages through its N...

VS2010 and non XNA/Silverlight Windows phone dev

Hi, Is it possible to devlop old school Windows Phone app with VS2010 ? Do I have to dowload the template as I couldn't find this kind of project when I start a new project. I definitively want to devlop old .Net Compact Framework 3.5 app, and no XNA or Silverlight app. Do I have to swith back to VS2008 ? Regards ...

Can the Windows Phone 7 Series emulator be made to run on Windows XP?

Well thats all there is to it...is this possible? I understand that officially it's not supported but has anyone figured it out? I have some work to do where XP would be the preferred platform. I would expect that users of the actual device are not required to use Windows 7 so it stands to reason that this can be done. Any poitners i...

How do I use the additional Silverlight Toolkit controls?

I've got VS2010 installed, I've downloaded the Windows Phone add-in and the Silverlight Toolkit from CodePlex, but I cannot work out for the life of me how to actually use the controls in a Windows Phone 7 application... How do I add the controls into the toolbox, or link them so that the XAML doesn't give me errors all the time? For i...

MouseLeave LostFocus events Silverlight

Hello! I'm writing a Windows phone 7 Silverlight Application. and i have to set Visibility of my Stackpanel to Collapsed when mouse leaves this control. But this event occurs even if i simply click on my control without mouse movings. Lost focus event doesn't work too. How to achieve my goal? Thx in advance! ...

Scroll Gestures not Passed to IScrollInfo implementing panel in Windows Phone 7 CTP

I am using a custom panel as a ItemsPanel for a ItemsControl in a with a custom template that provides for a scroll viewer. (See Xaml below.) So long as my panel does not implement IScrollInfo, scrolling works in this scenerio. I implement IScrollInfo and update my viewport and extent sizes in measure override. The scroll bar shows t...

Windows Phone 7 Search Button

BASED ON OUT DATED BETA Is there support for the Search Button yet in WinPhone 7 sdk? I can't find it, nor anything info on it. Just thought someone might know. ...

MVVM using Page Navigation On Windows Mobile 7

The Navigation framework in Windows Mobile 7 is a cut down version of what is in Silverlight. You can only navigate to a Uri and not pass in a view. Since the NavigationService is tied to the View, how do people get this to fit into MVVM. For example: public class ViewModel : IViewModel { private IUnityContainer container; priva...

Isolated storage location for windows phone 7?

Hi, I'm building a windows phone 7 application using silverlight 4. I store my data in Isolated storage as outlined here. The program runs with no errors. My question is where I can see the file I have saved? Is it possible to find the file in the windows phone 7 emulator? Thanks in advance. ...

How do you get Windows Mobile Device Center to detect a Windows Phone 7 Series emulator?

Hello, I'm running some tests and need to be able to get Windows Phone 7 Series emulator synced with an exchange account or local Outlook account via the Device Center. I'm using the unlocked version of the emulator so that i actually have a reasonable set of software on the phone to work with. When the emulator launches i expect the ...

Developing apps for Windows Phone 7

Can we start developing apps for the upcoming windows mobile 7. Are developer tools available? Do we have to buy the visual studio program for this? ...

What is this event?

Could someone explain what this C# code is doing? // launch the camera capture when the user touch the screen this.MouseLeftButtonUp += (s, e) => new CameraCaptureTask().Show(); // this static event is raised when a task completes its job ChooserListener.ChooserCompleted += (s, e) => { //some code here }; I know that CameraCaptur...

How to handle the back button on Windows Phone 7

On the windows phone 7 emulator, when the hardware back button is pressed, the default behaviour is for it to close your current application. I want to override this default behaviour so that it navigates to the previous page in my application. After some research, it seems it should be possible to do this by overriding the OnBackKeyPr...

WP7-Silverlight Asynchronous Unit Test, EnqueueCallBack is not supported by the language?

I am working on a unit test for a Windows Phone 7 Silverlight app. The code for the test looks like this: [TestMethod] [Asynchronous] public void StuffIsLoading() { WaitFor(_repository, "LoadingStuffComplete"); var viewModel = new MainPageViewModel(_repository); EnqueueCallback(() => Assert.IsTrue(viewModel.Stuf...