Windows Phone 7.5 Application Development with F# - Lohith G N - E-Book

Windows Phone 7.5 Application Development with F# E-Book

Lohith G N

0,0
20,39 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

Windows Phone is an OS which is also a platform in itself and provides an opportunity for application developers to build their apps and sell them on the Windows Phone Marketplace. Windows Phone is slowly catching up in the race with iOS and Android. Although well suited for scientific and mathematical calculations, the Windows Phone Platform provides an opportunity to program in F#. "Windows Phone 7.5 Application Development with F#"  focuses on making the user aware of Windows Phone App Development with the F# programming language in as short a time as possible. The book teaches you about the development environment, helps you understand the project structure, understand the controls, and ends with some of the cool features of the platform like sensors, launchers, and choosers. The book starts off with enabling the user with the right tools required to start developing. It focuses on getting the IDE ready, and project and item templates. By the end of the book the user will be familiarized with the different aspects of the platform itself. The transition from one chapter to another is short and focused so that you can get to the meat of the topic quickly.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 125

Veröffentlichungsjahr: 2013

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Windows Phone 7.5 Application Development with F#
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Instant Updates on New Packt Books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Setting up Windows Phone Development with F#
What is Windows Phone?
Windows Phone – a standardized platform
Development option for Windows Phone
Windows Phone Application Platform Architecture
What is F#?
Prerequisites for development
Visual Studio 2010
Windows Phone Software Development Kit 7.1
Windows Phone project and Item Templates for F#
Summary
2. F# Windows Phone Project Overview
Windows Phone Project Templates for F#
F# and C# Windows Phone Application (Silverlight) Project Template
The AppHost project
The App project
Output
F# and C# Windows Phone List Application (Silverlight) Project Template
F# and C# Windows Phone Panorama Application (Silverlight) Project Template
Summary
3. Working with Windows Phone Controls
Supported controls in Windows Phone
Hello world in F#
Working with the Button control
Working with the Checkbox control
Working with the Hyperlink control
Working with the ListBox control
Working with the MessageBox control
Working with the PasswordBox control
Working with the ProgressBar control
Working with the RadioButton control
Working with the Slider control
Working with the TextBox control
Summary
4. Windows Phone Screen Orientations
Orientation
Types of orientations
Setting orientation
Detecting orientation
Changing orientation in an emulator
Orientation handling techniques
Auto sizing and scrolling
Grid layout
Summary
5. Windows Phone Gesture Events
Gestures
Gesture support in Silverlight for Windows Phone
Manipulation events
Gesture events
Understanding manipulation events
Understanding gesture events
Summary
6. Windows Phone Navigation
Navigation in Windows Phone
Windows Phone navigation model
PhoneApplicationFrame
Phone application page
Hub and Spoke navigation model
F# XAML Item Templates
Navigating between pages using a hyperlink button
Navigating between pages using NavigationService
Passing data between pages
Summary
7. Windows Phone and Data Access
Data sources
Resource files
Content files
Isolated storage
IsolatedStorageSettings
IsolatedStorageFile
HTTP classes
Summary
8. Launchers and Choosers
Overview of Launchers and Choosers
Launchers
BingMapsTask
BingMapsDirectionsTask
EmailComposeTask
MarketplaceDetailsTask
MarketplaceHubTask
MarketplaceReviewTask
MarketplaceSearchTask
MediaPlayerLauncher
PhoneCallTask
SmsComposeTask
WebBrowserTask
Choosers
AddressChooserTask
CameraCaptureTask
EmailAddressChooserTask
PhoneNumberChooserTask
SaveEmailAddressTask
Summary
9. Windows Phone Sensors
Accelerometer
GPS (location services)
Summary
Index

Windows Phone 7.5 Application Development with F#

Windows Phone 7.5 Application Development with F#

Copyright © 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: April 2013

Production Reference: 1030413

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-84968-784-3

www.packtpub.com

Cover Image by Siddharth Ravishankar (<[email protected]>)

Credits

Author

Lohith G.N.

Reviewers

Senthil Kumar

Vivek Thangaswamy

Acquisition Editor

Kevin Colaco

Commissioning Editor

Priyanka Shah

Technical Editors

Worrell Lewis

Lubna Shaikh

Copy Editors

Brandt D'Mello

Alfida Paiva

Laxmi Subramanian

Ruta Waghmare

Project Coordinator

Esha Thakker

Proofreader

Elinor Perry-Smith

Indexer

Hemangini Bari

Graphics

Aditi Gajjar

Production Coordinators

Manu Joseph

Nitesh Thakur

Cover Work

Manu Joseph

About the Author

Lohith G. N. hails from Mysore, India and currently resides in Bangalore, India. He has over 12 years of experience in software development. He presently works as a Developer Evangelist for Telerik in India and takes care of Evangelism for the South Indian region. He comes from a Production Engineering background and ended up in software development thanks to the FORTRAN language that he learned during his graduation days. Being well versed with the .NET platform, Lohith has experience building web applications, Windows applications, and Service Oriented Architecture. He has spent close to a decade mostly in the services-based industry and is well versed with the agile method of software development.

Lohith is also a two time Microsoft Most Valuable Professional (MVP) in the area of ASP.NET/IIS. He was given this prestigious award from Microsoft in 2011 and 2012. He often writes on ASP.NET/ODATA and maintains his own blog at http://kashyapas.com. He can be reached on Twitter and his Twitter handle is @kashyapa. To know more about Lohith you can check out http://about.me/kashyapa. Lohith is also one of the User Group leads for Bangalore DotNet User Group—one of the most active User Groups in India. He is a regular speaker at the local user groups.

This is the first ever book that I have written and I take this opportunity to thank my parents. I would also like to thank my lovely wife Rashmi and my lovely son Adithya for having put up with me while writing this book. I have promised them a nice vacation as soon as I am done with the book.

About the Reviewers

Senthil Kumar is a Software Engineer and a passionate blogger. He works mainly on Windows or client development technologies and has good working experience in C#/.NET, Delphi, Win forms, Windows Phone, Windows 8, and SQL Server.

He completed his Master of Computer Applications from Christ College (Autonomous), Bangalore in the year 2009 and is a MCA rank holder (gold medalist).He has worked as a technical reviewer for Windows Identity Foundation Cookbook, Sandeep Chandra, Packt Publishing.

You can connect with him on Twitter at http://twitter.com/isenthil, on Facebook at http://www.facebook.com/kumarbsenthil, and his blog at www.ginktage.com.

Vivek Thangaswamy is highly committed to technology support and service to the global community and workplace. Looking at his community support activity Microsoft awarded him the Most Valuable Professional (MVP) award for three consecutive years—2007 for ASP.NET, 2008 and 2009 for SharePoint. He has also been awarded the Professional Excellence and Innovation Award for the year 2011 from www.npa.org. He has been awarded with bronze, silver, and gold medals by dotnetspider.com for his contribution to the community. www.experts-exchange.com has awarded him Master status in XML, ASP.NET, and SharePoint.

Apart from this recognition, Vivek has contributed to the MSDN forums and www.codeproject.com. He is the administrator for all technology-related discussions at www.redpipit.com. He is the creator for two projects in www.codeplex.com—an open source community for Microsoft Technologies. He has authored Exploring SharePoint Foundation 2010, Darkcrab Press and VSTO 3.0 for Office 2007 Programming, Packt Publishing, co-authored the book System Analysis and Design, LAP Lambert Academic Publishing, and has been the technical reviewer for three books Microsoft Office Live Small Business: Beginner's Guide, Packt Publishing, Refactoring with Microsoft Visual Studio 2010, Packt Publishing, and BlackBerry Enterprise Server 5 Implementation Guide, Packt Publishing.

I would like to dedicate this book to my family and friends; they are the confidence and the strength in my life.

www.PacktPub.com

Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books. 

Why Subscribe?

Fully searchable across every book published by PacktCopy and paste, print and bookmark contentOn demand and accessible via web browser

Free Access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

Instant Updates on New Packt Books

Get notified! Find out when new books are published by following @PacktEnterprise on Twitter, or the Packt Enterprise Facebook page.

Preface

Windows Phone 7.5 Application Development with F# is a book for anyone who is familiar with F# and wants to try a hand at Windows Phone application development. This book will cover the basics of application building on the Windows Phone platform but using F# as the language. We will cover everything, from basic requirements to programming on the platform, to project templates, and to developing screens. This book will act as a ready reckoner for folks who want to quickly look at the concepts of Windows Phone application programming.

What this book covers

Chapter 1, Setting up Windows Phone Development with F#, is all about setting the stage for Windows Phone development with F#. Here we will take a look at the Windows Phone platform, the F# language, and the prerequisites required to start developing applications.

Chapter 2, F# Windows Phone Project Overview, is all about becoming familiar with the different project templates available for developing Windows Phone applications. We will decipher each project template and understand what each project type contains and how to work with each type. We will also look at some of the item templates required for app development.

Chapter 3, Working with Windows Phone Controls, helps us understand the controls provided by the platform. We will look at more than 10 controls provided by this platform. We will take one control and walk you through how to work with that control. By the end of this chapter you will be familiar with the "toys" you can use to play on this platform.

Chapter 4, Windows Phone Screen Orientations, introduces you to a concept called orientation and shows you how to deal with it in your applications. Since a phone is a handheld device, the user has all freedom to turn the phone upside down or rotate it left or right. This changes the orientation of your application, and as the developer, it is your responsibility to react to this. This chapter will help you understand the different orientations and how to code for handling orientation changes.

Chapter 5, Windows Phone Gesture Events, teaches you how to read the gestures performed by the user in your application. We will take a look at what gestures are and what gesture events are supported by the platform. We will also look at how to handle gesture events in your applications.

Chapter 6, Windows Phone Navigation, is all about understanding how to allow users to move from one screen to another screen in your application. We will look at the Windows Phone navigation model and different techniques to enable navigation.

Chapter 7, Windows Phone and Data Access, helps you understand how to store and access data on the Windows Phone platform since one of the fundamental aspects of any application is data. We will try to understand the different data source options available on the platform.

Chapter 8, Launchers and Choosers, introduces a whole set of built-in applications, also known as Launchers and Choosers. Launchers and Choosers help us make use of the built-in apps or call the built-in apps right from our own apps.

Chapter 9, Windows Phone Sensors, introduces you to multiple sensors supported by Windows Phone that allow apps to determine orientation and motion of the device. With sensors, it is possible to develop apps that make the physical device itself an input. Typical uses of these sensors are for games, location-aware apps, and so on. The Windows Phone platform provides APIs to retrieve data from the individual sensors.

What you need for this book

In order to work through this book and to learn Windows Phone 7.5 Application Development with F#, you will need to have the following software:

Visual Studio 2010Windows Phone Software Development Kit 7.1Windows Phone Project and Item Template for F#

Who this book is for

If you know F# and are interested in developing for the Windows Phone 7.5 platform, this book is for you. It gives you a jump-start to developing Windows Phone 7.5 apps using F#.

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 <[email protected]>, and mention the book title via the subject of your message.

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

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