Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

A Windows Phone 7 behavior to show an image background for a search string

AddThis Social Bookmark Button
On New Year’s Eve I can’t help but writing this last bit of 2011: yesterday on a #wp7nl developer’s meet up, which was basically a free-for-all fun hacking event organized by Matthijs Hoekstra, I wrote a little thingy for Windows Phone 7 that accepts a string, tries to find an image for it using Bing Image search and displays it as a background. Of course it’s a behavior – I write behaviors a dozen, because the concept of reusable dynamic behavior is something that fits very well with the way I think.
Call me the behaviornator if you like ;-) It’s very simple, it’s quite fun, demonstrates at little Rx usage, makes quite unusual use the of Bing Image Search api - and it will play a supporting act in my newest Windows Phone 7 app. The basic structure of the behavior is set up utilizing the #wp7nl library SafeBehavior that I described earlier: using System; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Xml; using System.Xml.Linq; using Microsoft.Phone.Reactive; namespace Wp7nl.Behaviors { /// /// A behavior that puts an image on the background of the Attched object /// using Bing Image...(Read whole news on source site)

Home : Blog List : .NET by Example : A Windows Phone 7 behavior to show an image background for a search string