windows-phone-7

I have visual studio 2010 installed, what else do I need for windows phone 7 development?

I have VS2010 and Expression studio 4 on my machine. I have done a fair amount of programming on Silverlight. What do I need to get started with development on Windows phone 7. I googled and found out that I need to install VS2010 express for WP7 beta. Can't I just use my existing VS2010 installation with some additional templates and an...

Storyboard.GetTarget in Silverlight for Windows Mobile

I have a problem with WP7 app. I'm trying to write WP7 app form WPF sample code. private void storyboard_Completed(object sender, EventArgs e) { ClockGroup clockGroup = (ClockGroup)sender; // Get the first animation in the storyboard, and use it to find the // bomb that's being animated. DoubleAn...

How to start developing for the Windows 7 phone?

I had a link that had some great information regarding the new developer tools for Windows 7 phone, but I lost it! :( Where can I download the appropriate tools? Is there an emulator that simulates the phone on my laptop so I can do short tech demos for my study group? Thank you. ...

Non-dev-tools Windows Phone 7 emulation

In developing a number of WP7 apps, I have a need to show clients how the app will be when deployed. The clients are a) not in the same location as I am, b) not technical at all, and c) may not even be using a PC. The purpose is to demo, get feedback and make any needed changes. I'm not finding any realistic options to just simply show ...

Does the new Windows 7 phone platform use Silverlight for it's UI?

When I created a new Windows 7 project it mentioned Silverlight. Thanks for the information. ...

Adding an Image in xaml code?

How can I add an image to my program in XAML? I want to display the 'no.png' image on my application. Also, I need both yes and no to appear in the same place. My plan was to set them both to hidden and display them only when necessary. How can I do this? ...

How can I know when a user hits submit?

I have a simple textbox on my Windows Phone 7 application. I want to execute a method when the user types something in the textbox and confirms it. My question is, how would I go about this? When I click the textbox in the emulator, a keyboard pops up, I'm guessing the preferred way is somehow capturing that submit event. Any guidance? ...

Can't use an XDocument in Silverlight?

I'm creating a Windows Phone 7 application that will consume an exposed webservice. For now, I want to load a dummy xml file and parse information from that. I'm used to using XDocument for things like this, but it seems I can't type in the using namespace in my code. Any other ideas? ...

How do I get access to the QueryString in Windows Phone 7 from a user control

I have a simple user control in Windows Phone 7 and I want to get access to the querystring collection from the user controls Constructor. I have tried many ways and cannot seem to get acess to the containing XAML's querystring collection. Essentially I am navigating to the page and the my user control is going to access the querystring...

Faking synchronous calls in Silverlight WP7

I'm porting some code from the full .NET framework to the WP7 version and I'm running into an issue with synchronous vs async calls. string response; string requestString = GenerateReqString(); HttpWebRequest req = (HttpWebRequest) WebRequest.Create("endpoint"); req.Method = "POST"; req.ContentType = "text/xml"; req.ContentLength...

VS 2010 unable to locate WP7 Resources

Lately I have installed Windows Phone 7 developement tools and noticed that VS2010 unable to resolve the phone resources like styles and fonts. But Blend does load them all, it's bit annoying that all time get exception message on designer. Can anyone suggest the solution please? ...

ADO.NET Entity Framework and WCF Service

I have a simple ADO.NET Entity Framework 4.0 model (edmx) which defines database tables with foreign key relationships. How can I send these entities down to a Windows Phone 7 client? I have created a WCF Service (using WShttpbinding),with the method... public List<LocationCity> ListCities() { var dc = ObjectFactory.GetInstance...

Event triggers don't work

I have some trigger in my Windows Phone 7 Silverlight app such as <Grid x:Name="ContentGrid" Grid.Row="1" Background="Red" Height="100"> <Grid.Triggers> <EventTrigger RoutedEvent="Loaded"> <BeginStoryboard> <Storyboard> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Story...

Porting to Windows Phone 7 from iPhone

If you were going to attempt this, what would be the main factors to consider, easy/hard parts, pitfalls? ...

What are the options for editing a date in WP7?

There doesn't appear to be a date-picker with the current beta Windows Phone 7 SDK. What are the options available? Will there be a date control when the final SDK comes out? ...

How can I navigate two pages deep in a single apparent operation

I have a scenario where page A can navigate to page B, and page B can navigate to page C, but A can also navigate to C and I want B to be inserted in the stack so that navigating back from C always ends on B. More graphically, I want to allow these navigations: A --> B --> C (back) B (back) A (normal navigation) A --> C (back) B (back...

Windows Phone 7 Font Styles

I'm looking at Fonts for Windows Phone and noticed that the font list includes both fonts and 2 of its 3 available styles of its styles (Bold and Italic, but not Bold Italic). For example: Arial Arial Bold Arial Italic (missing: Arial BoldItalic) Does this mean that the style Bold Italic is explicitly not available in ROM on WP7 (f...

Windows Phone 7 Styles on Desktop app

I' building an hobby project in WPF also decided to use Metro style theme to application. Is it possible to use Windows phone 7 styles in desktop application instead of recreating? ...

Using RestSharp in Windows Phone 7

I'm trying to use RestSharp (http://restsharp.org/) in a Windows Phone 7 project, but I'm having an issue it seems with the Newtonsoft Json.NET library that RestSharp uses. When I'm trying to execute my code like so: _restClient.ExecuteAsync<Model.Song>(restRequest, (response) => { if (response.StatusCode == HttpStatusCode.OK) { } ...

Silverlight asserting in release builds

I'm just playing around with Windows Phone and trying to write an app for it. I can't seem to find a Trace.Assert in System.Diagnostics. This exists in .NET for the PC and lets me throw assertions in Release builds. I'm guessing that this is just something that's not a part of the silverlight toolkit. What is the correct way of enab...