Book Image

Microsoft SharePoint 2010 Enterprise Applications on Windows Phone 7

By : Todd Spatafore
Book Image

Microsoft SharePoint 2010 Enterprise Applications on Windows Phone 7

By: Todd Spatafore

Overview of this book

<p>Microsoft Windows Phone 7 is a reinvention of the Windows Mobile platform and improves productivity by taking a fresh approach to the most common Smartphone business usage scenarios such as e-mail, calendar, contacts, and collaboration. Microsoft SharePoint is a Web technology-based server that can be used to build portals, collaboration sites, and also content management sites.</p> <p>Microsoft Windows Phone 7 allows you to integrate with Microsoft SharePoint 2010 and create enterprise-ready websites and applications that access SharePoint Server on Windows Phone 7.</p> <p>The book starts by providing an overview of the out-of-the-box features of Windows Phone 7 for enterprises then moves on to an overview of the web browser that is included on the phone, Internet Explorer Mobile, covering the improvements found over the desktop version of Internet Explorer 7 and the limitations of the browser. The book then dives deep into topics such as Windows Phone 7 Web Development, building SharePoint Sites for Windows Phone 7, building SharePoint Pages for Windows Phone 7, and SharePoint Communities amongst others.</p>
Table of Contents (16 chapters)
Microsoft SharePoint 2010 Enterprise Applications on Windows Phone 7
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
5
Customizing SharePoint Communities for Windows Phone 7

Preface

Microsoft Windows Phone 7 is a reinvention of the Windows Mobile platform and improves productivity by taking a fresh approach to the most common Smartphone business usage scenarios such as e-mail, calendar, contacts, and collaboration. Microsoft SharePoint is a web technology-based server that can be used to build portals, collaboration sites, and also content management sites.

Windows Phone 7 allows you to integrate with Microsoft SharePoint 2010 and create enterprise-ready websites and applications that access Microsoft SharePoint Server on Windows Phone 7. This book will show you how to do so.

The book starts by providing an overview of the out-of-the-box features of Windows Phone 7 for enterprises then moves on to an overview of the web browser that is included on the phone, Internet Explorer Mobile, covering the improvements found compared to the desktop version of Internet Explorer 7 and the limitations of the browser. The book then dives deep into topics such as Windows Phone 7 Web Development, building SharePoint Sites for Windows Phone 7, building SharePoint Pages for Windows Phone 7, and SharePoint Communities amongst others.

What this book covers

Chapter 1, Introducing Windows Phone 7. Windows Phone 7 is a reinvention of the Windows Mobile platform. This chapter begins with an overview of the phone controls and capabilities. Then Microsoft Outlook capabilities are covered. This includes working with e-mail, contacts, and calendars. Next the full range of Microsoft Office capabilities is reviewed covering OneNote, Word, Excel, PowerPoint, and SharePoint. The chapter concludes with a brief overview of the Windows Marketplace.

Chapter 2, Getting Started with Internet Explorer Mobile. Windows Phone 7 includes a mobile version of Internet Explorer that has most of the rendering features found in the desktop Internet Explorer 7 and the JavaScript capabilities of desktop Internet Explorer 8. This chapter begins with a brief discussion of web page architecture. It follows that up with a more in-depth investigation of the browser found in Windows Phone 7. Next is a discussion of the mobile friendly META tag settings. The chapter concludes with an example of building a single web page that will render for both the desktop browsers and Windows Phone 7 Internet Explorer.

Chapter 3, Enhancing SharePoint Sites for Windows Phone 7. SharePoint is a powerful tool and this chapter begins to expose the power found in SharePoint by discussing the customizations available to users and administrators. Next, an overview of the structure of SharePoint from sites to web applications is discussed. Then, an overview of the development environment used for the rest of the book is examined. This leads into a summary of the various site templates available in SharePoint. The chapter concludes with an example of building a custom site.

Chapter 4, Building SharePoint Pages for Windows Phone 7. Within a site, data is stored as either lists or libraries. This chapter begins with an examination of these differences. Then it describes adding columns to a list and customizing the list item output. The chapter ends with an example of replacing the mobile home page.

Chapter 5, Customizing SharePoint Communities for Windows Phone 7. This chapter focuses on customizing SharePoint communities for use on Windows Phone 7. The SharePoint communities of interest are blogs and Wikis.

Chapter 6, Introduction to Programming Windows Phone 7 with the SharePoint Client Services. This chapter moves away from programming SharePoint's web interface for Windows Phone 7 to building Windows Phone 7 applications that utilize SharePoint data. After a brief discussion of security in SharePoint, the chapter provides an example of building a simple RSS reader. The simple RSS reader gets data from an anonymous RSS feed from a SharePoint list, and discusses many of the basics of building a Windows Phone 7 application.

Chapter 7, Building a Windows Phone 7 Dashboard Application with SharePoint Data. The chapter begins with another discussion of security in SharePoint and the example in this chapter utilizes forms based authentication in SharePoint. The example from Chapter 6 is revisited, but this time a username and password are used to access the data. After a brief discussion of the tools available for building SharePoint applications on the desktop the focus turns to building out the dashboard application for Windows Phone 7.

Appendix A, Additional Resources. There are a lot of resources on the Internet that provide the bits and pieces required to build the exceptional applications that enterprise consumers will require from their phones. This chapter provides a list of additional resources that could come in handy while developing for both SharePoint and Windows Phone 7.

Appendix B, What wasn't covered in this book and why? This book isn't an exhaustive reference for how to develop Windows Phone 7 applications and sites for SharePoint. This appendix will cover some topics that weren't described in any detail, but might be of use for an enterprise SharePoint application on Windows Phone 7.

What you need for this book

For working with samples and development situations in the book, two machines and ideally a Windows Phone 7 device will be required.

  1. 1. Windows 7 with Visual Studio 2010 and the Windows Phone 7 Development Tools

  2. 2. Windows Server 2008 R2 with SharePoint 2010 Foundation, Visual Studio 2010, and the SharePoint 2010 SDK

It is worth noting that the Windows Phone 7 Emulator will not run on a machine running other virtualization software and as such, the Windows 7 machine can neither run on a virtual machine nor on other virtual machines while the emulator is running. For more information on setup, please refer to Chapter 3, Enhancing SharePoint Sites for Windows Phone 7.

Who this book is for

If you are a .NET developer who wants to create enterprise-ready websites and applications that access Microsoft SharePoint Server 2010 on Windows Phone 7, then this book is for you. You should have a basic knowledge of Windows Phone 7 and SharePoint Server 2010. This book also assumes some knowledge of C#, managed code in general, and a basic level of familiarity with Visual Studio.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We next take the selected item cast it into an RSSItem and save the result in a variable named selectedItem."

A block of code is set as follows:

var items = from item in rssElement.Descendants("item")
select new RSSItem
{
Title = item.Element("title").Value,
Date = item.Element("pubDate").Value,
PostUrl = item.Element("link").Value
};

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

public DetailsView() {
InitializeComponent();
this.Loaded += new RoutedEventHandler(DetailsView_Loaded);
}

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "In the dialog that appears, select Wiki Page Library, as shown in the following screenshot".

Note

Warnings or important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail .

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code for this book

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.