Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Discover millions of ebooks, audiobooks, and so much more with a free trial

From $11.99/month after trial. Cancel anytime.

Instant Silverlight 5 Animation
Instant Silverlight 5 Animation
Instant Silverlight 5 Animation
Ebook206 pages1 hour

Instant Silverlight 5 Animation

Rating: 0 out of 5 stars

()

Read preview

About this ebook

This book is written in simple, easy to understand format with lots of screenshots and step-by-step explanations. If you are a developer looking forward to create great user experience for your Silverlight applications with cool animations or create Silverlight banner ads, then this is the guide for you. It is assumed that the readers have some previous exposure to Silverlight or WPF.
LanguageEnglish
Release dateJan 22, 2013
ISBN9781849687157
Instant Silverlight 5 Animation

Related to Instant Silverlight 5 Animation

Related ebooks

Enterprise Applications For You

View More

Related articles

Reviews for Instant Silverlight 5 Animation

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Instant Silverlight 5 Animation - Nick Polyak

    Table of Contents

    Instant Silverlight 5 Animation

    Credits

    About the Author

    About the Reviewer

    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 is Silverlight

    Why should I use Silverlight

    What is the downside of using Silverlight

    What this book covers

    What you need for this book

    Who this book is for

    Notes on the samples

    Conventions

    Reader feedback

    Customer support

    Downloading the example code

    Errata

    Piracy

    Questions

    1. Building Blocks of Animation

    Spinning control sample

    Defining a dependency property in C# code

    Defining visual presentation for spinning control

    Bindings

    Transforms

    Storyboards and animations

    Adding a rotation animation to our code

    A brief overview of different Silverlight animation classes

    Attached properties

    Summary

    2. Animations in Business Logic Silverlight Applications

    Animating Silverlight controls

    Tools for animating controls

    Animating a built-in button

    Creating and animating custom button control

    Animating navigation panels

    Summary

    3. Creating Animated Textures

    Background on Perlin noise

    A bit of history

    Perlin noise algorithm

    Multi-scale Perlin noise

    Basic Perlin noise

    Perlin noise algorithm implementation

    ImageProcessingLibrary

    Cloud simulation

    Fire simulation

    Summary

    4. 3D Animations in Silverlight

    Perspective transform

    Silverlight 5 three-dimensional functionality

    3D models

    Vertex and pixel shaders

    Compiling pixel shaders

    Enabling your Visual Studio 2010 SP1 or Visual Studio 2012 to create and compile shaders

    Adding shader compilation to your Visual Studio 2010 SP1 project

    Adding shader compilation to your Visual Studio 2012 project

    Creating the moving triangle application

    The moving prism application

    The 3D related topics that were left out

    Summary

    5. Building an Animated Banner

    What we aim to build

    The globe image

    Perspective transform

    Code description

    Referring to the globe image within an XAML file

    Creating rotating lines of text

    Animation storyboard

    Placing the Silverlight banner within an HTML file

    Summary

    A. Creating and starting a Silverlight project

    B. Changing the XAML formatting

    C. Installing snippets

    D. Using snippets

    Index

    Instant Silverlight 5 Animation


    Instant Silverlight 5 Animation

    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: January 2013

    Production Reference: 1160113

    Published by Packt Publishing Ltd.

    Livery Place

    35 Livery Street

    Birmingham B3 2PB, UK.

    ISBN 978-1-84968-714-0

    www.packtpub.com

    Credits

    Author

    Nick Polyak

    Reviewer

    Thomas Martinsen

    Acquisition Editor

    Rukhsana Khambatta

    Commissioning Editor

    Meeta Rajani

    Technical Editor

    Jalasha D'costa

    Project Coordinator

    Shraddha Bagadia

    Esha Thakker

    Proofreader

    Bernadette Watkins

    Indexer

    Rekha Nair

    Graphics

    Sheetal Aute

    Production Coordinator

    Melwyn D'sa

    Cover Work

    Melwyn D'sa

    Cover Image

    Sheetal Aute

    About the Author

    Nick Polyak is a technology enthusiast who enjoys building software and learning new technologies. For the past six years, Nick worked primarily on Silverlight/WPF projects, and prior to that he worked with C++ and Java. Nick is looking forward to harnessing the new capabilities coming with HTML5 and modern JavaScript libraries.

    Nick got his Ph.D. from Rensselaer Polytechnic Institute in 1998. He did his research in Wavelet based image processing and published a number of papers on the subject.

    More recently Nick published several articles on codeproject.com some of which (a Prism tutorial and an article on MVVM) became quite popular.

    Nick is the owner of the AWebPros.com consulting company.

    I would like to thank my wife and children for being patient with me while I worked on this book.

    About the Reviewer

    Thomas Martinsen is a passionate developer with a focus on Windows development. Thomas is a regular speaker at customer-oriented and developer-oriented events, having worked as a consultant for more than 10 years.

    Thomas is a partner in Bluefragments, a company with a focus on the newest Microsoft technologies. Bluefragments is among the best Windows developers in Denmark and has recently built a series of Windows 8 apps for the Windows Store.

    For three years now, Thomas been awarded Microsoft MVP.

    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 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 Packt

    Copy and paste, print and bookmark content

    On 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

    What is Silverlight

    Silverlight is a relatively new technology introduced by Microsoft in order to enable the developers to build multi-platform client GUI applications that can run within or outside of Internet browsers.

    Why should I use Silverlight

    Silverlight empowers developers with great new GUI capabilities, combined with revolutionary GUI coding concepts that came to Silverlight from WPF. While some think that HTML 5 gives the developers functionality that is almost as powerful as Silverlight, the programming model of HTML 5 is indisputably old, while the Silverlight/WPF programming model is ahead of that of any competing software.

    Unlike the currently available versions of HTML, Silverlight is 98 percent multi-platform (between Windows and Macs) and its list of non multi-platform features is freely available. As long as you avoid using those features, any application you build for Windows is guaranteed to run on Mac.

    Silverlight is close to being 100 percent multi-browser (if there are any features that do not perform the same on different browsers, I am not aware of them) and any application you write using Internet Explorer is guaranteed to run within Firefox on the same platform, while this might not be the case with HTML.

    Silverlight has a very small footprint – in order to make Silverlight 5 run on your machine you need to

    Enjoying the preview?
    Page 1 of 1