1. Trang chủ
  2. » Công Nghệ Thông Tin

a0099 apress windows phone recipes 2nd edition dec 201 morebook vn 7541

7 2 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Windows Phone Recipes A Problem-Solution Approach
Tác giả Fabio Claudio Ferracchiati, Emanuele Garofalo
Người hướng dẫn Ewan Buckingham, Lead Editor
Chuyên ngành Mobile Computing
Thể loại Companion eBook
Năm xuất bản 2011
Định dạng
Số trang 7
Dung lượng 846,48 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Companion eBook US $39.99 Shelve in Mobile Computing User level: Beginning–Intermediate www.apress.com Books for professionals By professionals® With detailed code samples and rapid walk

Trang 1

Companion eBook

US $39.99

Shelve in Mobile Computing User level:

Beginning–Intermediate

www.apress.com

Books for professionals By professionals®

With detailed code samples and rapid walkthroughs to support you every

step of the way, Windows Phone Recipes has everything you need to

devel-op first-class Windows Phone applications

This book utilizes a proven problem-solution approach First, a problem is iden-tified Then, a clear explanation of the solution is given, supported by a fully worked code sample that demonstrates the feature in action

Inside Windows Phone Recipes, you’ll find recipes that unlock advanced user

interface features, deal with data storage, integrate with cloud services, add media and location services, and work with Silverlight and Expression Blend

You’ll learn how to use sensors such as the camera, GPS, and accelerometer to build cutting-edge applications as well as new ways to interact with applica-tions using the gestures library both from the XNA Framework library and the Silverlight Windows Phone Toolkit library

With Windows Phone Recipes, you’ll learn:

How to design, develop, test, and distribute your Windows phone applications

To create compelling user interfaces using Silverlight and Expression Blend

How to work with device data using isolated storage, LinQ, and XmL serialization

How your application can be extended into the cloud using push notifications and web-based services

To distribute your application for sale using the Windows phone marketplace

Existing NET and Windows Mobile developers will discover that this is just the book for them Developers moving to Windows Phone programming from other areas, such as iOS development, will equally find its quick-reference for-mat especially valuable

Put a professional polish on your Windows Phone development with Windows

Phone Recipes!

Windows Phone

Recipes

A Problem-Solution Approach

Fabio Claudio Ferracchiati | Emanuele Garofalo

Avoid the common pitfalls of Windows Phone programming with this concise recipe collection written specifically for the busy developer

Companion

eBook

Available

SOURCE CODE ONLINE

SECond Edition

SECond Edition

Trang 2

For your convenience Apress has placed some of the front matter material after the index Please use the Bookmarks and Contents at a Glance links to access them

Trang 3

Windows Phone Recipes

A Problem-Solution Approach

Fabio Claudio Ferracchiati

Emanuele Garofalo

Trang 4

Windows Phone Recipes, Second Edition

Copyright © 2011 by Fabio Claudio Ferracchiati and Emanuele Garofalo

All rights reserved No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher

ISBN-13 (pbk): 978-1-4302-3371-8

ISBN-13 (electronic): 978-1-4302-3372-5

Trademarked names, logos, and images may appear in this book Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image, we use the names, logos, and images only

in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark

The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject

to proprietary rights

President and Publisher: Paul Manning

Lead Editor: Ewan Buckingham

Technical Reviewer: Simona Nasetti

Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Morgan Ertel, Jonathan Gennick, Jonathan Hassell, Robert Hutchinson, Michelle Lowman, James Markham, Matthew Moodie, Jeff Olson, Jeffrey Pepper, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Gwenan Spearing, Matt Wade, Tom Welsh

Coordinating Editor: Jessica Belanger

Copy Editor: Kimberly Burton

Cover Designer: Anna Ishchenko

Compositor: Bytheway Publishing Services

Indexer: SPI Global

Artist: SPI Global

Distributed to the book trade worldwide by Springer Science+Business Media, LLC., 233 Spring Street, 6th Floor, New York, NY 10013 Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail

orders-ny@springer-sbm.com, or visit www.springeronline.com

For information on translations, please e-mail rights@apress.com or visit www.apress.com

Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use eBook versions and licenses are also available for most titles For more information, reference our Special Bulk Sales—eBook Licensing web page at www.apress.com/bulk-sales

The information in this book is distributed on an “as is” basis, without warranty Although every

precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work

The source code for this book is available to readers at www.apress.com You will need to answer questions pertaining to this book in order to successfully download the code

Trang 5

To Simona and Claudia, women of mine —Fabio

To my mommy and daddy, my lighthouse in the fog — Emanuele

Trang 6

■ INDEX

464

User interface, Panorama and Pivot Controls

(cont.)

MainViewModel.cs, 133

Microsoft.Phone.Controls.dll assembly,

131

MVVM architecture, 131

Title property, 131

TvSchedule7 application, 131

TvSchedulePivot7, 137

predefined styles

emulator, 123

Font static resource styles, 120

Pivot control, 118, 120, 122

Resource property, 118

Settings system page, 117

static resource styles, 118

SIP keyboard

Duration text box, 114

emulator, 115

InputScope Enumerator, 113

InputScope property, 113

Number virtual keyboard, 116

Theme Template

emulator, 110

PhoneBackgroundBrush resource, 109

ResourceDictionary class, 109

UpdateUI method, 109

with Silverlight Toolkit

AutoCompleteBox control, 139, 140, 154

ContextMenu control, 139, 141

DatePicker and TimePicker control, 139

DatePicker control, 143

DateTimeConverters, 139

ExpanderView control, 139

GestureService/GestureListener controls,

139

HubTile control, 139

ItemTemplate, 145

ListPicker control, 139, 143

LongListSelector control, 139, 144, 145

MenuItem tag, 141

official application, 153

Page Transitions, 139

PerformanceProgressBar control, 139, 148

See method, 151

SelectionChanged event, 146

TiltEffect control, 139, 149

TimePicker control, 143

ToggleSwitch control, 140, 149

Transitions control, 151

Transitions effects, 150

WrapPanel control, 140, 152

 V

Vertical Drag gesture, 203

 W

Wi-Fi sensor, 4 Windows Communication Foundation (WCF), 381–387

Windows Live ID, 29 Windows Mobile, 4 Windows Phone Accelerometer sensor, 4 A-GPS sensor, 4 Application template, 7 Audio Playback Agent, 8 Back button, 2

camera sensor, 4 Certification Requirements, 32 Class Library template, 7 customization, 4 Databound Application template, 7 deployment

Application Deployment tool, 29 target combo box, 30

using Visual Studio 2010, 29 Windows Phone Developer Registration tool, 29

Zune software, 29 Developer Registration tool, 29, 30 Developer Tools, 29

development tools

IL code, 5 installation steps, 6 .NET applications, 5 setup, 6

Silverlight applications, 5 XNA applications, 5

execution model (see Execution model)

hardware buttons usage, 2–3 hardware overview, 2 hubs, 4

live tiles, 4 Location service, 4

Marketplace (see Windows Phone

Marketplace) memory, 3 Metro user interface, 3

Trang 7

■ INDEX

465

multitasking, 5

multi-touch screen, 4

Office service, 4

Pictures hub, 3

predefined styles, 123

push notifications, 5

screen resolution, 2

Search button, 2

sensors and services, 4

Silverlight application (see Silverlight

Windows Phone application)

Soft Input Panel (SIP), 3

Start button, 2

trial version

Draw method, 37

DrawString method, 37

Guide class, 34, 35

Initialize method, 37

MarketplaceDetailTask, 35

MarketplaceReviewTask, 35

OnExiting event handler, 37

ShowMarketplace method, 37, 39

SilverlightApplication, 41

Silverlight framework, 34, 35

SilverlightTrialApplication, 39

sprite font object, 37

.spritefont file, 36

XNA framework, 34, 35

XNATrialApplication, 41

using XNA application (see XNA Windows

Phone application)

Wi-Fi sensor, 4

Windows Phone Emulator (see Windows

Phone Emulator)

XNA and Silverlight mixed application (see

XNA and Silverlight mixed application)

Windows Phone Emulator

accelerometer tool, 27

application, 13–14

location tab, 27

multi-touch capabilities, 27

screenshot tool, 27

target combo box, 25, 26

Windows Phone Game (4.0) project template, 14

Windows Phone Marketplace

applications, 32

developer rules, 32–33

Microsoft Authenticode certificate, 32

Visual Studio 2010, 33 Windows Phone Certification requirements,

32 Windows Phone Panorama Application template, 7

Windows Phone Performance Analysis testing,

447

Windows Phone Pivot Application template, 7

Windows Phone resource dictionary, 11 Windows Phone Scheduled Task Agent, 8 Windows Phone Silverlight and XNA Application,

8 Windows Presentation Foundation (WPF) framework, 281

WMAppManifest file, 9 WMAppManifest.xml, 32 WPConnect.exe program, 31

 X, Y

XAML markups See Extensible Application

Markup Language (XAML) markups XElement class, 134

XNA application, 5 XNA and Silverlight mixed application ApplicationLifetimeObjects section, 21 AppServiceProvider class, 20

GameTimer object, 21, 22 InitializeXnaApplication method, 21 OnNavigatedFrom method, 23 OnNavigatedTo method, 23 SharedGraphicsDeviceManager class, 19 XNA Content project and library, 20 XNA Windows Phone application Draw method, 17

Game1.cs file, 15 GraphicsDeviceManager object, 16 initialize method, 17

LoadContent method, 17 update method, 16 using Windows Phone Game (4.0), 14

on Windows Phone Emulator, 18 X-NotificationClass, 412, 414

 Z

ZIndex property, 218 Zune software, 29–31

Ngày đăng: 03/12/2022, 22:09

🧩 Sản phẩm bạn có thể quan tâm

w