Animating Windows Phone Listboxes: Listing 2

Deserialization of Flickr data.

[DataContract]
public class FlickrData
{
    [DataMember(Name = "items")]
    public FlickrItem[] Items { get; set; }

    [DataContract]
    public class FlickrItem
    {
        [DataMember(Name = "title")]
        public string Title { get; set; }

        [DataMember(Name="media")]
        public FlickrMedia Media { get; set; }

        [DataContract]
        public class FlickrMedia
        {
            [DataMember(Name ="m")]
            public string Url { get; set; }
        }

        [IgnoreDataMember]
        public string ImageUrl
        {
            get { return Media != null ? Media.Url : null; }
        }
    }
}

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

Featured

  • Microsoft's New Programming Language for Excel Now Turing Complete

    Microsoft, which calls its Excel spreadsheet a programming language, reports that an effort called LAMBDA to make it even more of a programming language is paying off, recently being deemed Turing complete.

  • New Visual Studio Razor Editor 'Close to Being Ready' for Blazor and Other Projects

    The experimental Razor editor for Visual Studio introduced last summer has been updated and is "close to being ready for normal daily development."

  • Microsoft Updates 'Must Have' Xamarin Community Toolkit

    The Xamarin Community Toolkit provides all kinds of effects, views and helpers to complement mobile app development with Microsoft's recently released, open source, cross-platform Xamarin.Forms 5.

  • JetBrains Unveils Plans for WinForms, WPF and More in Rider .NET IDE

    JetBrains announced plans for Windows Forms, Windows Presentation Foundation (WPF), ASP.NET and more tooling in the next release of its popular Rider IDE for .NET development.

Upcoming Events