Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Windows Phone 7 Silverlight Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
Windows Phone 7 Silverlight Cookbook

Windows Phone 7 Silverlight Cookbook

By : Jonathan Marbutt, Robb Schiefer
4.3 (4)
close
close
Windows Phone 7 Silverlight Cookbook

Windows Phone 7 Silverlight Cookbook

4.3 (4)
By: Jonathan Marbutt, Robb Schiefer

Overview of this book

Silverlight has revolutionized development using Microsoft technologies. It is an excellent tool for mobile application development. The XAML-based markup and familiar C# code are the perfect combination for building apps efficiently and with minimum hassle.Packed full of recipes containing comprehensive instructions for the tasks required to build modern compelling smartphone apps using Silverlight.Starting with application design and architecture, you will quickly move on to more technical features and APIs you can implement to make your app stand out. You will use the Camera API to scan barcode, location services to pinpoint the user’s GPS coordinates and accelerometer to provide feedback based on movement of the phone. All of these features can be provided in a slick user interface through the power of Silverlight. Animations, behaviors and XAML provide all you need and more.
Table of Contents (18 chapters)
close
close
Windows Phone 7 Silverlight Cookbook
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1
Index

Understanding events


If you have done some programming in the past, you should find yourself very comfortable using an event. Events are a simple way of saying "something happened" against which you can write the code to handle it. A very classic type of event is handling an OnClick event where a user clicks a button or in the case of Windows Phone, a user touches a button. In our first example, we will carry out a very basic handling of this event type.

Getting ready

To get started with this example, create a very basic windows phone application in Visual Studio like we have in the previous chapters. This will just be the standard windows phone application type, as shown in the following screenshot:

How to do it...

Now that we have a simple starting point we can begin to implement behaviors.

  1. 1. Let's change the XAML for the content panel to the following:

    <!--ContentPanel - place additional content here-->
    <StackPanel x:Name="ContentPanel" Grid.Row="1"
    Margin="12,0,12,0">
    <Button...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Windows Phone 7 Silverlight Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon