Wednesday, August 31, 2011

Windows Phone 7 - NavigateToString, WebBrowser, and anchors

I needed to show some html in a page, using a WebBrowser control and the NavigateToString method.

The html was ok; it has some anchor in it to move from a section to another.

When I tested it in a standard web browser, or loading it with the phone IE9, worked perfectly.

But when I loaded the same html in the app page, using as I said the Navigatetostring method, the anchors didn't work anymore.

Then I tried to use some javascript to move to the anchors, using location.replace(#anchorname) – but again when I tested the html outside the app it worked… but not in the app.

I posted the question to the MSDN Forums, end Eric Fleck suggested me to use another approach, while confirming that the wrong behavior is in the latest RC of the WP7 tools.

The new approach is described in detail in this MSDN page, and basically uses IsolatedStorage to save the html fragments in order to load them in the WebBrowser using the .Navigate method. This way all the anchor links work… and I’m happy Sorriso

G’day everybody!

Tuesday, August 23, 2011

Some “metro style” windows phone backgrounds

Found today: I like these backgrounds, see if you like them:

- Metro Lock for Windows Phone

- Metro Lock 2 for Windows Phone

A couple images, in Mango Occhiolino flavour:

Metro Lock (Mango)Metro Lock 2 (Mango)

Windows Phone 7 – Mango time

Today I uploaded my first Mango update. My “Fatto Quotidiano” app now id 7.1 compatible!

To celebrate this I also rewdesigned completely the layout, now the app is more readable, I think that it’s really better than before.

A couple of useful links / resources:

- To download the Windows Phone SDK 7.1 Release Candidate go here: SDK 7.1 RC

- With the RC you will also have at your disposal a great tool: the “Marketplace Test Kit”, integrated with Visual Studio. The tool “provides a suite of automated, monitored, and manual tests to help make sure that your applications are accepted in the Marketplace the first time you submit them”. Read about it here.

To see the list of my WP7 apps, click here