Animating Windows Phone Listboxes: Listing 1

Loading runtime data from Flickr.

public MainPage()

    Loaded += MainPageLoaded;

private void MainPageLoaded(object sender, RoutedEventArgs e)
    var wc = new WebClient();
    wc.OpenReadCompleted += FlickrDownloadCompleted;
    wc.OpenReadAsync(new Uri(""));

private void FlickrDownloadCompleted(object sender, OpenReadCompletedEventArgs e)
    var serializer = new DataContractJsonSerializer(typeof(FlickrData));
    var data = serializer.ReadObject(e.Result) as FlickrData;

    Dispatcher.BeginInvoke(() =>{
                                    DataContext = data;

About the Author

Nick Randolph runs Built to Roam, a consulting company that specializes in training, mentoring and assisting other companies build mobile applications. With a heritage in rich client applications for both the desktop and a variety of mobile platforms, Nick currently presents, writes and educates on the Windows Phone platform.

comments powered by Disqus


  • Black White Wave IMage

    Neural Regression Using PyTorch: Training

    The goal of a regression problem is to predict a single numeric value, for example, predicting the annual revenue of a new restaurant based on variables such as menu prices, number of tables, location and so on.

  • Microsoft Ships Visual Studio 2019 v16.9 Servicing Baseline Release

    Microsoft is urging enterprises and professional coders to standardize on the new Visual Studio 2019 v16.9, a servicing baseline release that's guaranteed to receive official support for an extended period.

  • Microsoft Extends Low-Code Push with Power Fx Programming Language

    "Using formulas that are already familiar to hundreds of millions of users, Power Fx allows a broad range of people to bring skills they already know to low code solutions."

  • Microsoft's Tools to Fight Solorigate Attack Are Now Open Source

    Microsoft open sourced homegrown tools it used to check its systems for code related to the recent massive breach of supply chains that the company has named Solorigate.

Upcoming Events