Skip to main content

Working with Data

  • Chapter
Accelerated Silverlight 3
  • 164 Accesses

Abstract

Data can take many forms, from simple types passed back from web services to complex formats such as XML. In the previous chapter, you saw how to consume web services from Silverlight and connect to various servers, including ones that live outside your application’s host domain and others that communicate over sockets. Once you have data, though, you must process it and/or display it to users. Silverlight 3 provides an enhanced DataGrid control, new DataForm and DataPager controls, a data binding architecture to connect data to user interface elements, and even item templates for controls like the ListBox to specifically define how each item should appear. On the data-processing side, Silverlight provides a number of classes for working with XML, including Language Integrated Query (LINQ), which was introduced in .NET 3.5 on Windows (but remember, while Silverlight is based on .NET 3.5, it has no dependence on .NET Framework 3.5!). Another important aspect to data is how to save data on the client. While you can use cookies, Silverlight provides something called isolated storage that provides file system semantics for saving and loading data. Let’s dig into all this support Silverlight provides for working with data.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Ashish Ghoda and Jeff Scanlon

About this chapter

Cite this chapter

(2009). Working with Data. In: Accelerated Silverlight 3. Apress. https://doi.org/10.1007/978-1-4302-2430-3_5

Download citation

Publish with us

Policies and ethics