Book Image

Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint

Book Image

Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint

Overview of this book

The SharePoint platform is ideal for developers looking to build exciting solutions, and SharePoint 2010 is more equipped than ever for the task. While plenty of SharePoint titles will help you understand general SharePoint development techniques or spend time focusing on one method or tool, "Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint" offers you the option of using four different tools and platforms to achieve exceptional end user experience. This book fills the gap for a comprehensive SharePoint title which describes the end goal of a SharePoint developer. So often books focus on development techniques for one tool; this will get you on your way to developing a good business website with a great user experience, however, you choose to get there, be it using PowerShell, Visual Studio, Silverlight, Windows 7 Phone, or a combination of all four. "Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint" draws from five separate titles from Packt's existing collection of excellent SharePoint titles: Microsoft SharePoint 2010 and Windows PowerShell 2.0: Expert Cookbook Microsoft Silverlight 4 and SharePoint 2010 Integration Microsoft SharePoint 2010 Development with Visual Studio 2010 Expert Cookbook Microsoft SharePoint 2010 Enterprise Applications on Windows Phone 7 Microsoft SharePoint 2010 Business Application Development Blueprints "Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint" is an exciting mash-up of five existing Packt SharePoint titles for extending development techniques. It begins with two never before seen Packt chapters from an exciting new title, giving you a quick overview of the options available for extending SharePoint. It then moves on quickly to building a community site and discusses PowerShell scripting, as well as integrating Silverlight animations and helping you get to grips with SharePoint development on Windows Phone. With this book in hand you won't just find techniques for one development tool, you'll learn how to reach your end goal of developing a site with great user experience using a number of options at your fingertips.
Table of Contents (15 chapters)
Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint
Credits
About the Contributors
www.PacktPub.com
Preface

Customizing the list item output


We can customize how the list item output looks and increase the font size by creating a custom control template. Out of the box, the announcement list does not have a customized mobile view. Even if it did, we would be able to override it with our own. Customizing a control template is fairly easy. Control templates are aspx files that live in the SharePoint root. We will use Visual Studio to create custom control templates.

Creating a project for our custom template

The first thing we need to do is create a project that will contain our custom control. Carry out the following steps to create a project:

  1. 1. Open Visual Studio 2010 as Administrator by right clicking on the icon and selecting Run as administrator on the context menu.

  2. 2. Select Yes in the UAC (User Authentication Control) dialog.

  3. 3. Once Visual Studio has opened, select File | New Project.

  4. 4. In the 2010 node of the SharePoint templates, select Empty SharePoint Project.

  5. 5. Give the project...