Home > Store

SharePoint 2010 Development with Silverlight

Register your product to gain access to bonus material or receive a coupon.

SharePoint 2010 Development with Silverlight

eBook

  • Your Price: $34.39
  • List Price: $42.99
  • About Watermarked eBooks
  • This PDF will be accessible from your Account page after purchase and requires PDF reading software, such as Acrobat® Reader®.

    The eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

    Watermarked eBook FAQ

Description

  • Copyright 2012
  • Dimensions: 7" x 9-1/8"
  • Edition: 1st
  • eBook
  • ISBN-10: 0-13-269792-0
  • ISBN-13: 978-0-13-269792-7

This book is for every SharePoint developer who wants to build state-of-the-art solutions with Silverlight—within the enterprise, for consulting clients, or for commercial sale.

Developers increasingly want to build rich applications that run in the SharePoint 2010 browser user interface while offering a far more compelling and engaging experience than conventional web pages. One proven technology gives them all the tools and resources they need to achieve these goals: Silverlight®. Using Silverlight and SharePoint together, developers can create state-of-the-art applications that utilize Silverlight’s outstanding user experience, and fully leverage the vast collections of business data already stored in corporate SharePoint deployments. In SharePoint 2010 Development with Silverlight, two SharePoint gurus collaborate to teach all the concepts and techniques needed to create robust Silverlight solutions for delivery through SharePoint 2010, and present fully documented code that demonstrates superior design and programming.

Bob German and Paul Stubbs draw on their extensive experience developing custom SharePoint business solutions with Silverlight and presenting on these technologies at leading Microsoft developer events. Writing for both experienced and new SharePoint developers, they quickly review the fundamentals of both SharePoint and Silverlight development, and then demonstrate how to use both platforms together to build uniquely powerful solutions. These include:


• Simple and connected Silverlight Web Parts (Chapter 5) and Silverlight Web Part Editing (Chapters 7 and 10)

• Advanced use of the SharePoint Client Object Model including dynamic loading, paging, and server-side exception handling (Chapter 8)

• Use of SharePoint’s REST API including paging, caching, and filtering (Chapter 9)

• Integration with SharePoint search and social networking (Chapter 10)

• Solutions that improve performance and reduce server traffic by passing serialized .NET objects on the web page (Chapter 7)

• Use of SharePoint’s JavaScript API with JQuery (Chapter 7)

• SharePoint applications for Windows Phone 7 (Chapter 12)

• Integration with Office 365 and Windows Azure™ services (Chapter 14)

• Silverlight field types in SharePoint, featuring a mapping field that allows geocoding SharePoint content (Chapter 15)

 

Including New Features in Silverlight 5

Silverlight 5 introduces a number of new features such as implicit data templates and debugging data binding that can be very helpful in SharePoint solutions. All the examples in this book have been tested with Silverlight 4; some have been extended to showcase the new capabilities in Silverlight 5. See Chapter 3 for a list.

Sample Content

Table of Contents

Foreword xvii

Preface xix

PART I Getting Started 1

1 Getting Started with SharePoint and Silverlight 3

Why SharePoint? 4

Why Silverlight? 6

Why SharePoint and Silverlight Together? 9

Who Should Read This Book 11

How to Use This Book 11

Creating a Development Environment 13

Summary 26

2 Introduction to SharePoint Development 27

Understanding SharePoint Content 28

Building a Web Part 33

Lists and Libraries 43

Accessing Lists and Libraries with the SharePoint Server API 51

Updating List Data with the SharePoint API 59

LINQ to SharePoint 60

Web Parts as Composite Controls 63

Event Receivers 67

Solutions and Features 69

Feature Receivers 75

Summary 77

3 Introduction to Silverlight Development 79

Placing Silverlight on a Web Page 80

Building a Simple Silverlight Application with Visual Studio 2010 82

Toolbox and Layout Controls 87

Setting Control Properties 92

Creating and Showing Child Windows 93

Advanced Features of .NET in Silverlight 97

Networking and Web Services in Silverlight 104

Asynchronous Response Handling 106

Introducing Silverlight 5 108

Summary 109

PART II SharePoint and Silverlight Development 111

4 A First Look at Silverlight in SharePoint 113

Create Content 114

Media Web Part 121

Media Field Control 127

Organizational Chart 128

Workflow Visualization 130

Silverlight Web Part 133

Other Hosting Options 138

IFrame 144

Summary 147

5 Web Part Development 151

Silverlight Web Parts 151

Manually Building a Silverlight Web Part 152

Visual Studio Silverlight Web Parts Extension 156

Building a Silverlight Web Part 159

Building a Custom Silverlight Web Part 166

Connecting Web Parts 172

Summary 182

6 Expression Blend, Data Binding, and Sample Data 183

Behaviors 184

SketchFlow 197

Design with Data 213

Summary 221

7 Accessing SharePoint Using the HTML Bridge 223

Passing Data to Silverlight with the HTML Bridge 223

Passing Data on the Web Page 226

Passing SharePoint Library Content to Silverlight 231

Introducing the Visual State Manager 240

Displaying and Caching Images 243

Full Screen and Printing in Silverlight 246

Web Part Editing and Posting Back with the Web Page 247

Calling SharePoint Javascript and JQuery from Silverlight 253

Summary 259

8 Accessing SharePoint Data with the Client Object Model 261

Client Object Model Goals 261

Hello World 262

Client Context 266

Load and LoadQuery 268

Object Model 270

Retrieving List Data 271

Updating List Data 274

Deleting List Data 275

Creating List Data 276

Paging 277

Document Upload 282

Creating Ribbon Custom Actions 283

Server Side Exception Handling 285

Deployment and Redistribution 287

Summary 289

9 Accessing SharePoint Data with WCF Data Services 291

REST and the Open Data Protocol 292

Getting Started with WCF Data Services 293

Binding to a SharePoint List Using WCF Data Services 296

Updating SharePoint Data 304

Paging through Large Data Sets 306

Caching Paged Data 310

Filtering and Sorting the Data 312

Using Silverlight 5 to Bind Style Setters 315

Summary 317

10 Accessing SharePoint with Web Services 319

Web Services in SharePoint 320

The SearchView Web Part Sample Solution 322

Accessing Enterprise Search 339

Accessing Social Data 354

Updating SearchView for Silverlight 5 361

Building Custom WCF Services for SharePoint 366

Summary 373

11 Accessing External Data 375

Building a Feed Reader Web Part 379

Building a Custom Feed Reader Proxy 386

Adding Cross-Domain Policy to SharePoint 390

Using Business Connectivity Services from Silverlight 392

Adding a Web Browser Preview with Silverlight 5 409

Summary 414

PART III Building Solutions 415

12 Windows Phone 7 SharePoint Applications 417

Office Hub 417

Development Framework 419

Development Tools 420

Connecting to SharePoint 425

Databinding to the Task List 435

Development Environment 438

Publishing an Application 443

Summary 445

13 Creating Silverlight Navigation 447

Out-of-the-Box Navigation 447

Site Map Providers 453

Building a Site Map Provider 455

Building a Navigation Web Part 461

Building a Navigation Control 471

Rendering a Navigation Control on a SharePoint Master Page 472

Summary 475

14 SharePoint and Silverlight in the Cloud 477

SharePoint Online Sandboxed Solutions, Development Environment, and Deployment 479

Web Services in SharePoint Online 484

SharePoint Online Debugging 485

SharePoint Online API “Additional” Restrictions for Sandboxed Solutions 486

SharePoint Online Silverlight “Client Side Object Model” Data Project 488

SharePoint Online Silverlight REST Data Project 497

SharePoint Online Azure Project 502

Summary 520

15 Creating a Silverlight Field Control 521

Defining the Bing Maps Field Type 523

Building a Silverlight Field Control 526

Serializing a Bing Maps Location 534

Getting Started with Bing Maps 536

Displaying and Editing Maps in Silverlight 540

Using the Location Field 549

Field Controls and Publishing Sites 553

Defining a Bing Maps Column and Content Type 555

Defining a Page Layout 558

Using the Location Field in a Publishing Site 563

Summary 565

Index 567

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020