10 Reasons to Upgrade to the Windows Phone SDK 7.1: Listing 1.

Offloading images to a background thread

 with ImageSource.
<ListBoxItemsSource="{Binding Collection}" >
<ListBox.Resources>
<DataTemplate x:Key="ItemTemplate">
<StackPanel>
  <TextBlock Text="{Binding Name}"/>
<Image>
<Image.Source>
<BitmapImageCreateOptions="BackgroundCreation"
UriSource="{Binding Photo}" />
</Image.Source>
</Image>
</StackPanel>
</DataTemplate>
</ListBox.Resources>
<ListBox.ItemTemplate>
<StaticResourceResourceKey="ItemTemplate"/>
</ListBox.ItemTemplate>
</ListBox>

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

  • Visual Studio 'Tea & Technology' Video Miniseries Starts Next Week

    The goal of the miniseries is to provide an insider's snapshot look at some of the people who contribute to shaping the Visual Studio IDE every day.

  • Microsoft Releases OpenJDK 21 Build for Java Jockeys

    Microsoft today announced its "Microsoft Build of OpenJDK 21," taking advantage of new features and functionality in Java 21.

  • 'Dev Home' Update Leads Developer Goodies in AI-Powered Windows 11 Update

    Along with today's new AI-powered Windows 11 update come new goodies for developers, including a new edition of Dev Home, a preview offering described as a "control center" providing coding-focused features and functionality.

  • Community Dev Gives VS Code Python Some YAPF

    The latest update to Python in Visual Studio Code includes a new extension for Python formatting that was contributed by a member of the open source community.

Subscribe on YouTube