Silverlight for Windows Phone toolkit in depth (1)

Source: Internet
Author: User
Silverlight for Windows Phone toolkit in Depth

By boryana miloshevska

(Translation)

Translator: alphathink

Translator's preface

I have found many good books in the Development of Windows Phone 7 and have helped me a lot. I don't just want to learn many development skills, but also admire those who write and share their knowledge, so I feel very touched and want to share this knowledge with the people who need it. Because this book is in English, it is troublesome for people who are not sensitive to English like me, so I was prepared to start translating. First, I had to consolidate what I learned and improve my English proficiency. Second, I shared it with my friends who didn't like to read English books, in addition, I declare that my English proficiency is limited, and I still want to correct some improper translations. All translations are comprehension translations, which are not necessarily consistent with the original one. If incorrect translations occur, the original one shall prevail, it is recommended that you read the original English version directly (not too difficult). The copyright belongs to the original author. Repost this article, please noteArticleSource and author.

Note: As the second version of this book has been released, the inconsistent parts have been corrected and the red logo is used for the very important parts.

About the author

Boryana miloshevska is A. Net Technical Expert with more than six years of development experience. She does.

Www.windowsphonegeek.com (Leading Windows Phone developmentCommunityOne of the founders is also a Silverlight and Windows Phone application.ProgramDevelopment Consultant.

-Active bloggers and enthusiasts dedicated to Windows Phone development. I have written more than 400 articles and technical tutorials on Silverlight and Windows Phone 7, most of which are published on windowsphonegeek.com.

-Author of "Silverlight for Windows Phone toolkit in depth"

-MCTs, MCPD web and desktop developer

-Winner of Microsoft's "engineering excellence achievement" Award

-Master of Computer Science

-Technology Entrepreneurship (UCL, London UK)

Readers of this book

This book is suitable for users interested in Silverlight for Windows Phone development and covers all controls of Microsoft Windows Phone toolkit-Nov 2011 (7.1 SDK. This book contains all the necessary information for development using Silverlight for Windows Phone toolkit, which is very suitable for beginners and advanced developers.

Before you begin, confirm that you have some knowledge of the following technologies:

-Silverlight

-Windows Phone
-C #

What does this book contain?

This book contains all the Microsoft Silverlight for Windows Phone toolkit controls, as follows:

    • Autocompletebox
    • Contextmenu
    • Datepicker
    • Datetimeconverters
    • Expanderview
    • Gestures
    • Headereditemscontrol
    • Hubtile
    • Listpicker
    • Localizedresources
    • Lockableprohibited
    • Loopingselector
    • Longlistselector
    • Multiselectlist
    • Page transitions
    • Ceceprogressbar
    • Phonetextbox
    • Wrappanel
    • Tilteffect
    • Timepicker
    • Toggleswitch

In addition, the first two chapters will briefly introduce Silverlight and Windows Phone application development, and how to use third class libraries such as "Silverlight for Windows Phone toolkit.

Organization of the book

In this book, you will learn how to use the various controls provided by "Silverlight for Windows Phone toolkit.

The first chapter is a brief introduction to the concepts of Silverlight and Windows Phone. You will understand the main concepts and knowledge required to start Windows Phone application development.

Chapter 2 focuses on how to use Silverlight for Windows Phone toolkit, including all the information you may need.

    • What is toolkit?
    • System Requirements
    • How to install
    • Windows Phone toolkit and Visual Studio
    • How to integrate to Visual Studio toolbox
    • How to integrate to expression Blend
    • Informal version
    • Problem tracking

Chapter 3-22 describes how to use each widget.

    • L "Overview": a brief description of the main functions
    • L "start preparation": describes how to use controls in XAML and C #.
    • L "main attributes/methods/events": a small numberCodeA comprehensive introduction to public APIs
    • L "example": depending on the importance and complexity of the control, there are more or less examples andSource codeAnd a detailed explanation.
Source code

All source code in this book can be downloaded at the following address:

Http://www.windowsphonegeek.com/WPToolkitBook (first edition)

Http://www.windowsphonegeek.com/WPToolkitBook2nd (second edition)

All the sample projects in this book are for the Windows Phone 7.1 (mango) platform.

Use the following code for XAML and C #:

Others

This is the second version of a popular "Silverlight for Windows Phone toolkit in depth" ebook I wrote some time ago.

In this book, I have reflected all the changes to the latest Nov 2011 official version of toolkit, and added new examples and explanations.

This book is based on the "21 WP7 toolkit in depth articles covering all controls" series published in windowsphonegeek:

Http://www.windowsphonegeek.com/articles/21-WP7-Toolkit-in-Depth-articles-covering-all-controls

However, I have added many new chapters and examples that haven't been published in this book.

Why did you decide to write this free ebook?

The following is why I wrote this free ebook:

First, "Silverlight for Windows Phone toolkit" is a free class library provided by Microsoft that contains a large number of controls.

2. After the success of the first version of this book, readers are eager to reflect the second version of Toolkit's latest Nov 2011 official version.

3. There are a lot of paid content about Windows Phone development on the Internet, but few are free of charge. This is why I created www.windowsphonegeek.com a year ago, the objective is to create a free, high-quality, and comprehensive Windows Phone development community. I was impressed by the fact that toolkit does not have any detailed documentation or books (except for the first version), so I decided to write this ebook.

Silverlight for Windows Phone

The Windows Phone application platform allows developers to create a perfect user experience that can run on Windows Phone. Use existing Microsoft tools and development technologies, such as Visual Studio, expression blend, Silverlight, and xNa framework. Developers can use the tools and technologies they are familiar with to create new Windows Phone applications, reducing learning costs.

The Windows Phone application platform provides a large number of tools, APIs, and runtime that can be used to connect to Web Services on the cloud, such as Xbox Live, Windows Azure, location, and Notification Services. It also provides a Windows Phone app store for developers to publish their own applications.

Silverlight 4 is an application development platform for Windows Phone 7.1 (xNa framework supports high-performance game applications). Silverlight is an event-driven application and UI framework, it contains a large number of controls supported by many tools. The following conditions apply to Windows Phone development using Silverlight:

    • You want to use the XAML and event-driven frameworks
    • You want to quickly create web application UI
    • You want to use the Windows Phone Control
    • You want to embed a video in your application
    • You want to use HTML controls
    • ........

Silverlight for Windows Phone supports the following core functions to control Silverlight in. Net code and XAML:

    • High quality video and audio, widely used decoder, DRM and IIS stream
    • Text Reading and image scaling experience
    • Vector and bitmap graphics and animation

Silverlight can use the unique features of mobile phones

    • Video and graphics hardware acceleration
    • Gravity sensing
    • Multi-touch
    • Photo Taking and microphone
    • Location Awareness
    • Notification push
    • Call Function
    • .......

Silverlight can also use the xNa framework to capture and play back videos, access media libraries, and even access Xbox Live.

These functions are made public by hosting code. You can easily deploy them to your existing applications by adding special class libraries, you can also directly call a function in your application. For example, bind the map UI to the current location.

Developers can compile and package the Silverlight application and publish it in Windows Phone marketplace. Then, users can experience the application for free or buy it. Developers can also use their tools for. net, XAML, and Silverlight to develop and design Silverlight for Windows Phone applications, such as Visual Studio 2010 and expression blend 4. In addition, existing Silverlight,. Net code and class libraries can be easily reused in Windows Phone Silverlight applications. Windows Phone emulator (Windows Phone simulator) can be integrated with Visual Studio and expression blend 4 for Windows Phone to provide deployment, debugging, and execution of Silverlight applications, without real physical devices.

When developing a Windows Phone application, the first thing to consider is to install the installation package of the Windows Phone development tool, which includes:

    • Visual Studio 2010-Visual Studio is an integrated development environment for Windows Phone applications. With Visual Studio, developers can create Silverlight or xNa framework programs running on Windows Phone. For more information, visit: visual Studio 2010 express for Windows Phone
    • Expression blend-designers can also use expression blend to design desktop applications with rich networks and create and design Windows Phone Silverlight applications. Expression blend for Windows Phone allows the designer to create a Windows Phone application interface based on XAML. For more information, see expression Blend
    • Windows Phone emulator-Windows Phone emulator is integrated with Visual Studio and expression blend to test and debug applications more conveniently and effectively. The simulator supports application deployment, debugging, and execution. Supports GPU simulation and redirection. For more information, visit Windows Phone emulator.

Of course, you can also use open-source components or class libraries. Below is a very good component provided by Microsoft:

    • Silverlight for Windows Phone toolkit-contains a large number of practical controls, such as autocompletebox, listpicker, delimiter, longlistselector, page transitions, gestureservice/conditions, contextmenu, datepicker, timepicker, toggleswitch, wrappanel, Kernel, tilteffect and so on.
    • Coding4fun toolkit includes about prompt, input prompt, progress overlay (+ progressbar), round button, round toggle button, memory counter, timespanpicker, colorpicker, and so on. It also includes abstract classes, converters, binding helpers and data helpers.
    • "Top Windows Phone Dev Tools" lists the Windows Phone development components and tools generated by user voting.
Silverlight for Windows Phone Toolkit

Silverlight for Windows Phone toolkit is a free and open-source framework that allows developers to add to a Windows Phone application to improve the user experience of Windows Phone.

Components contained in Silverlight for Windows Phone Toolkit

Content contained in source code

Source code includes

· Complete C # source code

    • O Open Source Microsoft public Licen

· Sample Application

    • O autocompletebox
    • O contextmenu
    • O datepicker
    • O datetimeconverters
    • O expanderview
    • O gestures
    • O headereditemscontrol
    • O hubtile
    • O listpicker
    • O localizedresources
    • O lockablepivot
    • O loopingselector
    • O longlistselector
    • O multiselectlist
    • O page transitions
    • O ceceprogressbar
    • O phonetextbox
    • O wrappanel
    • O tilteffect
    • O timepicker
    • O toggleswitch

Suggestions and questions

You can give your feedback:

APP hub forums (http://forums.create.msdn.com/forums/98.aspx)

You can provide feedback on bugs or functional requirements:

Issue tracker (http://www.codeplex.com/Silverlight/WorkItem/List.aspx)

 

Statement: I have a limited level of English. I still want to correct some improper translations. All translations are comprehension translations, which are not necessarily consistent with the original one. If incorrect translations occur, the original one shall prevail, it is recommended that you read the original English version directly (not too difficult). The copyright belongs to the original author. Repost this article to indicate the source and author of the article.

Http://www.windowsphonegeek.com/WPToolkitBook2nd (second edition)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.