You are previewing Managing Data and Media in Microsoft Silverlight 4: A mashup of chapters from Packt's bestselling Silverlight books.
O'Reilly logo
Managing Data and Media in Microsoft Silverlight 4: A mashup of chapters from Packt's bestselling Silverlight books

Book Description

Manage data in Silverlight, build and maintain rich dashboards, integrate SharePoint with Silverlight.

  • A mashup book from expert Silverlight professionals, from 6 Packt donor titles - professional expertise distilled in a true sense starting at just $19.99

  • Packed with practical, hands-on examples, illustrating techniques to solve particular data problems effectively within your Silverlight business applications

  • Manage data in Silverlight, build and maintain rich dashboards, integrate Sharepoint with Silverlight and more

In Detail

Microsoft Silverlight is a programmable web browser plugin that enables features including animation, vector graphics, and audio-video playback – features that characterize Rich Internet Applications. However, Silverlight is a great Line-Of-Business platform and is increasingly being used to build data-driven business applications. This book will enable .NET developers to get their finger on the pulse of data-driven business applications in Silverlight.

Managing Data and Media in Silverlight 4: A mashup of chapters from Packt's bestselling Silverlight focuses on showing .NET developers how to interact with, and handle multiple sources of data in Silverlight business applications, and how to solve particular data problems following a practical hands-on approach, using real-world examples. This book is a collections of media and data based chapters from Packt’s best selling Silverlight books:

  1. Silverlight 4 User Interface Cookbook

  2. Microsoft Silverlight 4 Business Application Development: Beginner’s Guide

  3. Microsoft Silverlight 4 Data and Services Cookbook

  4. Microsoft Silverlight 4 and SharePoint 2010 Integration

  5. Microsoft Silverlight 4: Building Rich Enterprise Dashboards

  6. 3D Game Development with Microsoft Silverlight 3: Beginner's Guide

The book starts with discussion on layouts and content organization and covers all the options available to access data and communicate with services to get the most out of data in your Silverlight business applications, at the same time providing a rich user experience. Understand sophisticated data access techniques in your Silverlight business applications by binding data to Silverlight controls, validating data in Silverlight, getting data from services into Silverlight applications and much more! Discover the tips, tricks and hands on experience to create, customize and design rich enterprise dashboards with Silverlight from a distinguished team of User Experience and Development authors.

This book contains real-world examples that depict various techniques for interacting with data and services provided by this powerful business collaboration platform, for the enterprise and the Internet. The book ends with an appendix covering 3D Game Development.

The TOC with parent books in brackets:

  • Chapter 1: Layouts and General Content Organization (Silverlight 4 User Interface Cookbook)

  • Chapter 2: Handling Data (Microsoft Silverlight 4 Business Application Development: Beginner’s Guide)

  • Chapter 3: An Introduction to Data Binding (Microsoft Silverlight 4 Data and Services Cookbook)

  • Chapter 4: Advanced Data Binding (Microsoft Silverlight 4 Data and Services Cookbook)

  • Chapter 5: The Data Grid (Microsoft Silverlight 4 Data and Services Cookbook)

  • Chapter 6: Talking to REST and WCF Data Services (Microsoft Silverlight 4 Data and Services Cookbook)

  • Chapter 7: Interacting with Data on the SharePoint Server (Microsoft Silverlight 4 and SharePoint 2010 Integration)

  • Chapter 8: Interacting with Rich Media and Animations (Microsoft Silverlight 4 and SharePoint 2010 Integration)

  • Chapter 9: Building Dashboards in SharePoint and Silverlight (Microsoft Silverlight 4: Building Rich Enterprise Dashboards)

  • Chapter 10: Data Access Strategies (Microsoft Silverlight 4: Building Rich Enterprise Dashboards)

  • Appendix: Working with 3D Characters (3D Game Development with Microsoft Silverlight 3: Beginner's Guide)

Table of Contents

  1. Managing Data and Media in Microsoft Silverlight 4: A mashup of chapters from Packt's bestselling Silverlight books
    1. Table of Contents
    2. Managing Data and Media in Microsoft Silverlight 4: A mashup of chapters from Packt's bestselling Silverlight books
    3. Credits
    4. About the Contributors
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
        3. Instant Updates on New Packt Books
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    7. 1. Layouts and General Content Organization
      1. Introduction
      2. Fluid layout
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. How to do it...
        5. How it works...
        6. There's more...
          1. More info about grid sizing, rows, and columns
          2. When to use fixed and when to use fluid layouts
        7. See also
      3. Creating a navigation pane from scratch
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Hosting content into specific tabs
          2. How to align header text to left
          3. When to use navigation pane?
        5. See also
      4. Window management and positioning
        1. Getting ready
        2. Title bar controls and window borders - How to do it...
        3. Window sizes and states - How to do it...
        4. Window positioning - How to do it...
        5. Title bar controls and window borders- How it works...
          1. ResizeMode
          2. WindowStyle
        6. Window sizes and states - How it works...
          1. WindowState
        7. Window positioning - How it works...
          1. WindowStartupLocation
        8. There's more...
          1. What is the minimum screen resolution you should be targeting?
          2. General window usage guidelines
        9. See also
      5. Wizards
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Brief overview of different wizard page types
            1. Getting started page
            2. Choice page(s)
            3. Commit page
            4. Progress page
            5. Follow-up page
          2. To design resizable wizards or not
          3. When to use wizards
            1. Guidelines
        5. See also
      6. Progressive disclosure—showing additional controls on demand
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Changing the expander control's header label
          2. When to use progressive disclosure
        5. See also
      7. Control docking with DockPanel
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Change the docking order of child elements
          2. Change the orientation of a dock panel
          3. Personal view
        5. See also
      8. Journal navigation
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Removing the navigation chrome
          2. Difference between Title and WindowTitle
          3. When to use journal navigation
        5. See also
      9. Tabs
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Changing tab orientation
          2. Adding icons in tabs
          3. When to use tabs
            1. Real-world metaphor
          4. Implementation guidelines
        5. See also
      10. Adding a status bar area
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Adding other controls to StatusBar
          2. Adding SizeGrip to StatusBar
          3. When to use status bar
          4. Implementation guidelines
    8. 2. Handling Data
      1. Data applications
      2. Time for action —creating a business object
        1. What just happened?
      3. Windows Communication Foundation (WCF)
      4. Time for action —creating a Silverlight-enabled WCF service
        1. What just happened?
      5. Collecting data
      6. Time for action —creating a form to collect data
        1. What just happened?
      7. Validating data
        1. Data object
      8. Time for action —creating a data object
        1. What just happened?
        2. Data binding
      9. Time for action —binding our data object to our controls
        1. What just happened?
        2. Validation
      10. Time for action —validating data input
        1. What just happened?
      11. Data submission
      12. Time for action —submitting data to the server
        1. What just happened?
      13. Summary
    9. 3. An Introduction to Data Binding
      1. Introduction
      2. Displaying data in Silverlight applications
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      3. Creating dynamic bindings
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Binding data to another UI element
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Element bindings without bindings
        5. See also
      5. Binding collections to UI elements
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      6. Enabling a Silverlight application to automatically update its UI
        1. Getting ready
        2. How to do it...
        3. How it works...
          1. Single objects
          2. Collections
          3. Cleaning up the code
      7. Obtaining data from any UI element it is bound to
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      8. Using the different modes of data binding to allow persisting data
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      9. Data binding from Expression Blend 4
        1. How to do it...
        2. How it works...
      10. Using Expression Blend 4 for sample data generation
        1. How to do it...
    10. 4. Advanced Data Binding
      1. Introduction
      2. Hooking into the data binding process
        1. Getting ready
        2. How to do it...
        3. How it works...
          1. The ConvertParameter
          2. Displaying images based on a URL with converters
      3. Replacing converters with Silverlight 4 BindingBase properties
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      4. Validating databound input
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      5. Validating data input using attributes
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. Other uses of data annotations
        6. See also
      6. Validating using IDataErrorInfo and INotifyDataErrorInfo
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      7. Using templates to customize the way data is shown by controls
        1. Getting ready
        2. How to do it...
        3. How it works...
      8. Building a change-aware collection type
        1. Getting ready
        2. How to do it...
          1. How it works...
          2. See also
        3. Combining converters, data binding, and DataContext into a custom DataTemplate
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
    11. 5. The Data Grid
      1. Introduction
      2. Displaying data in a customized DataGrid
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more
        5. See also
      3. Inserting, updating, and deleting data in a DataGrid
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. See also
      4. Sorting and grouping data in a DataGrid
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Sorting a template column
        5. See also
      5. Filtering and paging data in a DataGrid
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      6. Using custom columns in the DataGrid
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      7. Implementing master-detail in the DataGrid
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. Validating the DataGrid
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    12. 6. Talking to REST and WCF Data Services
      1. Introduction
      2. Reading data from a REST service
        1. Getting ready
        2. How to do it...
          1. How it works...
          2. See also
        3. Parsing REST results with LINQ-To-XML
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Persisting data using a REST service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Working with the ClientHttpStack
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. Advantages of ClientHttpStack
          4. See also
        6. Communicating with a REST service using JSON
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Using WCF Data Services with Silverlight
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. Locked-down services
          4. See also
        8. Reading data using WCF Data Services
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        9. Persisting data using WCF Data Services
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        10. Talking to Flickr
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Flickr... more information
          5. See also
        11. Talking to Twitter over REST
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        12. Passing credentials and cross-domain access to Twitter from a trusted Silverlight application
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. Let's go cross-domain!
            2. Pass me those credentials, will you?
    13. 7. Interacting with Data on the SharePoint Server
      1. Managing data in a Silverlight RIA included in a SharePoint solution
        1. Working with the SharePoint 2010 Silverlight Client Object Model to insert items
        2. Inserting items in a SharePoint list with the Silverlight Web Part
        3. Working with successful and failed asynchronous queries
        4. Retrieving specific information about fields
        5. Creating complex LOB applications composed of multiple Silverlight RIAs
        6. Interacting with multiple Silverlight Web Parts in the same page
        7. Understanding Line-Of-Business systems as independent Web Parts
        8. Expanding LOB systems with delete operations
          1. Understanding how to delete an item from a list
        9. Expanding LOB systems with update operations
          1. Updating an item in a list
      2. Summary
    14. 8. Interacting with Rich Media and Animations
      1. Bringing life to business applications and complex workflows
        1. Creating asset libraries in SharePoint 2010
          1. Adding content to an assets library
          2. Browsing the structure for SharePoint Asset Libraries
        2. Controlling the rich media library by using controls in a Visual Web Part
        3. Creating a Silverlight RIA rendered in a SharePoint Visual Web Part
          1. Linking a SharePoint Visual Web Part to a Silverlight RIA
        4. Adding a SharePoint Visual Web Part in a Web Page
          1. Organizing controls in a containing box
          2. Reading files from an assets library
        5. Working with interactive animations and effects
        6. Adding and controlling videos
          1. Video formats supported in Silverlight 4
          2. Adding and controlling sounds and music
          3. Audio formats supported in Silverlight 4
        7. Changing themes in Silverlight and SharePoint
      2. Summary
    15. 9. Data Access Strategies
      1. Data access overview
        1. Core networking classes
        2. Working with WebClient
        3. Using Fiddler
      2. Understanding network security
      3. Building services with Windows Communication Foundation
        1. Working with WCF
          1. The data access layer
        2. Building a SOAP service
        3. Building a REST service
        4. Exploring OData data services
          1. Building an OData service
          2. Consuming an external service
        5. Summary
    16. 10. Building Dashboards in SharePoint and Silverlight
      1. Overview of SharePoint
        1. Setting up SharePoint
      2. Building a Silverlight web part
        1. Using the Client Object Model
      3. Building a SharePoint Silverlight dashboard
        1. Setting up our data source
        2. Building our dashboard
        3. SharePoint Data Access Strategies
        4. Summary
    17. 11. Working with 3D Characters
      1. The second remake assignment
      2. Time for action —exporting a 3D model without considering textures
        1. What just happened?
        2. XAML 3D models
      3. Time for action —from DCC tools to WPF
        1. What just happened?
        2. XBAP WPF applications with 3D content
      4. Time for action —displaying a 3D model in a 2D screen with WPF
        1. What just happened?
        2. Understanding the 3D world
        3. X, Y, and Z in practice
        4. GPU 3D acceleration
        5. Understanding meshes
      5. Time for action —using other XAML exporter for DCC tools
        1. What just happened?
      6. Time for action —adding 3D elements and interacting with them using Expression Blend
        1. What just happened?
        2. Interacting with 3D elements using Expression Blend
      7. Silverlight and the 3D world
      8. Time for action —exporting a 3D model to ASE
        1. What just happened?
      9. Time for action —installing Balder 3D engine
        1. What just happened?
      10. Time for action —from DCC tools to Silverlight
        1. What just happened?
        2. Displaying a 3D model in a 2D screen with Silverlight
        3. Using 3D vectors
        4. Have a go hero — working with multiple 3D characters
        5. Pop quiz — 3D models and real-time rendering
      11. Summary
    18. Index