Create a Mobile Aware Field Control

Version: 1.0.0

Description

Mobile Web applications are one consideration for creating business solutions that cross platforms from desktop browser to mobile browser. Properly written, Web applications may be easier to maintain and easier to manage as they are designed to work for many different browsers and do not need to be deployed to a device.

Overview

Mobile Web applications are one consideration for creating business solutions that cross platforms from desktop browser to mobile browser. Properly written, Web applications may be easier to maintain and easier to manage as they are designed to work for many different browsers and do not need to be deployed to a device.

In this lab, you will create a Silverlight Field Control for SharePoint that uses Latitude and Longitude to display the position on a Silverlight map. You will add functionality to the control that enables mobile browsers to handle the address field when Silverlight cannot be displayed, ensuring that the user can access the data from any platform.

Objectives

In this hands-on lab, you will learn how to:

  • Learn how to create a Bing Maps Portal account and register an API key
  • Learn how to create a Field Control in SharePoint that displays a map
  • Learn how to enhance the field control to display a clickable address in Windows Phone
  • Learn how to add alternate rendering when Silverlight is not displayed in the browser

Prerequisites

The following is required to complete this hands-on lab:

Note:
See Setting Up A SharePoint and Windows Phone 7 Development Environment Module for instructions that describe how to set up the SharePoint and Windows Phone 7 developer machine.

  • Windows 7 x64 installed with all Windows Updates installed, in one of the following scenarios.
    • Installed on a physical machine
    • Installed on a bootable VHD
  • SharePoint 2010 installed on the Windows 7 x64 developer machine configured with a site collection that uses Forms Based Authentication (FBA).

Note:
The following prerequisites are not included in the Setting Up A SharePoint and Windows Phone 7 Development Environment Module installation instructions. If you are using a development machine built according to the Setting Up A SharePoint and Windows Phone 7 Development Environment Module instructions you must install these components.

Note:
The Bing Maps API is only available to internet-connected computers. This lab requires a connection to the internet to function correctly.