Microsoft .NET Framework 4.5 Quickstart Cookbook
()
About this ebook
Related to Microsoft .NET Framework 4.5 Quickstart Cookbook
Related ebooks
How to Find and Land a Microsoft .NET Development Job Rating: 0 out of 5 stars0 ratingsMastering C# 8.0: Master C# Skills with Hands-on Code Examples (English Edition) Rating: 0 out of 5 stars0 ratingsBeginning Object-Oriented Programming with C# Rating: 0 out of 5 stars0 ratingsC# 7 and .NET Core Cookbook Rating: 0 out of 5 stars0 ratingsASP.NET Application Development Fundamentals Rating: 0 out of 5 stars0 ratingsFour Programming Languages Creating a Complete Website Scraper Application Rating: 0 out of 5 stars0 ratingsLearn ASP.NET Core MVC - Be Ready Next Week Using Visual Studio 2017 Rating: 5 out of 5 stars5/5Fast ASP.NET Websites Rating: 0 out of 5 stars0 ratingsMVVM Survival Guide for Enterprise Architectures in Silverlight and WPF Rating: 0 out of 5 stars0 ratingsProfessional Java EE Design Patterns Rating: 0 out of 5 stars0 ratingsMastering Java Persistence: From Basics to Expert Proficiency Rating: 0 out of 5 stars0 ratingsEntity Framework Core Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsMultithreading in C# 5.0 Cookbook Rating: 0 out of 5 stars0 ratingsWPF Programmer's Reference: Windows Presentation Foundation with C# 2010 and .NET 4 Rating: 0 out of 5 stars0 ratingsHands-On Parallel Programming with C# 8 and .NET Core 3: Build solid enterprise software using task parallelism and multithreading Rating: 0 out of 5 stars0 ratingsThe basic concepts of OOP in C#: Learn conceptually in simple language Rating: 0 out of 5 stars0 ratingsInstant HTML5 Responsive Table Design How-to Rating: 0 out of 5 stars0 ratingsMastering Visual Studio: A Comprehensive Guide Rating: 0 out of 5 stars0 ratingsC++ Programming Cookbook Rating: 0 out of 5 stars0 ratingsWeb Design Blueprints Rating: 0 out of 5 stars0 ratingsWhere to Place My Project: Code Hosting Platforms Rating: 0 out of 5 stars0 ratingsJavaScript at Scale Rating: 0 out of 5 stars0 ratingsBuilding Single-page Web Apps with Meteor Rating: 5 out of 5 stars5/5Ext.NET Web Application Development Rating: 0 out of 5 stars0 ratings.Net Framework and Programming in ASP.NET Rating: 0 out of 5 stars0 ratingsjQuery Game Development Essentials Rating: 0 out of 5 stars0 ratingsNoSQL Essentials: Navigating the World of Non-Relational Databases Rating: 0 out of 5 stars0 ratings
Enterprise Applications For You
Writing: Your essential guide to accurate English Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Notion for Beginners: Notion for Work, Play, and Productivity Rating: 4 out of 5 stars4/5Excel 2021 Rating: 4 out of 5 stars4/5Microsoft Excel Formulas: Master Microsoft Excel 2016 Formulas in 30 days Rating: 4 out of 5 stars4/5Excel 2019 Bible Rating: 5 out of 5 stars5/5Dragon NaturallySpeaking For Dummies Rating: 0 out of 5 stars0 ratingsMicrosoft Copilot For Dummies Rating: 0 out of 5 stars0 ratingsCreating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Master Adobe ps Photoshop in 7 days | From Beginner to Pro Rating: 0 out of 5 stars0 ratingsExcel Formulas and Functions 2020: Excel Academy, #1 Rating: 4 out of 5 stars4/5Excel 2019 For Dummies Rating: 3 out of 5 stars3/5Introduction to Information Systems: Information Technology Essentials, #1 Rating: 0 out of 5 stars0 ratingsExcel Tables: A Complete Guide for Creating, Using and Automating Lists and Tables Rating: 5 out of 5 stars5/5Excel Power Pivot and Power Query For Dummies Rating: 3 out of 5 stars3/5Excel VBA Programming For Dummies Rating: 4 out of 5 stars4/5Excel Dashboards and Reports Rating: 5 out of 5 stars5/5QuickBooks 2023 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsExcel 2019 Power Programming with VBA Rating: 5 out of 5 stars5/5Excel VBA: A Step-By-Step Tutorial For Beginners To Learn Excel VBA Programming From Scratch: 1 Rating: 4 out of 5 stars4/5Excel for Scientists and Engineers Rating: 4 out of 5 stars4/5Hands On With Google Data Studio: A Data Citizen's Survival Guide Rating: 5 out of 5 stars5/550 Useful Excel Functions: Excel Essentials, #3 Rating: 5 out of 5 stars5/5Microsoft Excel 365 Bible Rating: 0 out of 5 stars0 ratingsBitcoin For Dummies Rating: 4 out of 5 stars4/5
Reviews for Microsoft .NET Framework 4.5 Quickstart Cookbook
0 ratings0 reviews
Book preview
Microsoft .NET Framework 4.5 Quickstart Cookbook - Jose Luis Latorre Millas
Table of Contents
Microsoft .NET Framework 4.5 Quickstart Cookbook
Credits
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
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. Windows Store Apps
Introduction
Building our first Windows Store app
Getting ready
How to do it...
How it works...
There's more...
Adding a splash screen (and app tiles) to our app
Getting ready
How to do it...
How it works...
There's more...
Improving the application to make it compliant with the Windows 8 lifecycle model
Getting ready
How to do it...
How it works...
There's more...
Improving our application tile
Getting ready
How to do it...
How it works...
There's more...
Improving our application with toast notifications
Getting ready
How to do it...
How it works...
There's more...
2. Exploring the Top New Features of the CLR
Introduction
Creating a portable library
Getting ready
How to do it...
How it works...
There's more...
Controlling the timeout in regular expressions
How to do it...
How it works...
There'smore...
Defining the culture for an application domain
How to do it...
How it works...
There's more...
Overriding the default reflection behavior
How to do it...
How it works...
There's more...
Using the new ZipArchive class
How to do it...
How it works...
There's more...
Understanding async and await in .NET 4.5
How to do it...
How it works...
There's more...
Using the new asynchronous file I/O operations
How to do it...
How it works...
There's more...
See also
3. Understanding the New Networking Capabilities
Introduction
Using the HttpClient and the new System.Net.Http namespaces
Getting ready
How to do it...
How it works...
There's more...
4. Understanding the new features of Entity Framework 5.0
Introduction
Creating our first Code First
application
Getting ready
How to do it...
How it works...
There's more...
See also
Using Code First Migrations
Getting ready
How to do it...
How it works...
There's more...
5. Understanding the New Features of ASP.NET
Introduction
Creating our first ASP.NET 4.5 Web Forms application
Getting ready
How to do it...
How it works...
There's more...
Configuring our application to use unobtrusive validation
Getting ready
How to do it...
How it works...
There's more...
Using Smart Tasks in the HTML editor
Getting ready
How to do it...
How it works...
Using WAI-ARIA support
Getting ready
How to do it...
How it works...
Using the Extract to User Control feature
Getting ready
How to do it...
How it works...
Using the Page Inspector feature
Getting ready
How to do it...
How it works...
Creating an asynchronous HTTP module
Getting ready
How to do it...
How it works...
There's more...
6. Implementing WPF's new features
Introduction
Implementing asynchronous error handling with INotifyDataErrorInfo
Getting ready
How to do it...
How it works...
There's more...
Using the WeakEvent pattern with WeakEventManager
Getting ready
How to do it...
How it works...
Using the dispatcher's new features
Getting ready
How to do it...
How it works...
There's more...
Data binding to static properties
Getting ready
How to do it...
How it works...
There's more...
Throttling data source update delays
Getting ready
How to do it...
How it works...
LiveShaping – repositioning elements when its bound data changes
Getting ready
How to do it...
How it works...
There's more...
7. Applying the New WCF Features
Introduction
Using the asynchronous features of WCF
Getting ready
How to do it...
How it works...
See also
Using WebSockets
Getting ready
How to do it...
How it works...
Using Contract First development
Getting ready
How to do it...
How it works...
8. Creating and Hosting Our First ASP.NET Web API
Introduction
Creating our first ASP.NET web API
Getting ready
How to do it...
How it works...
There's more...
See also
Implementing a CRUD ASP.NET web API
Getting ready
How to do it...
How it works...
Setting up a self-hosted ASP.NET web API
Getting ready
How to do it...
How it works...
9. Using the New Capabilities of WF
Introduction
Creating a state machine workflow
Getting ready
How to do it...
How it works...
Using the enhanced designer features
Getting ready
How to do it...
How it works...
A. Resources for Further Knowledge
Resources for knowing more about .NET 4.5 and its tools
Resources for knowing more about Windows 8
Resources for knowing more about general development
B. .NET 4.5 – Deployment Risks and Issues
Introduction
Risks of the in-place upgrade
Platform targeting
Other risks
Index
Microsoft .NET Framework 4.5 Quickstart Cookbook
Microsoft .NET Framework 4.5 Quickstart Cookbook
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: May 2013
Production Reference: 1140513
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-84968-698-3
www.packtpub.com
Cover Image by Artie Ng (<[email protected]>)
Credits
Author
Jose Luis Latorre Millas
Reviewers
Stephen Cleary
Layla Driscoll
Nauzad Kapadia
Leon Welicki
Ariel Woscoboinik
Acquisition Editor
Joanne Fitzpatrick
Lead Technical Editor
Dayan Hyames
Technical Editors
Chirag Jani
Soumya Kanti
Veena Pagare
Copy Editors
Insiya Morbiwala
Aditya Nair
Laxmi Subramanian
Project Coordinator
Amey Sawant
Proofreader
Lawrence A. Herman
Indexer
Rekha Nair
Production Coordinator
Manu Joseph
Cover Work
Manu Joseph
About the Author
Jose Luis Latorre Millas is a Microsoft Silverlight MVP, Toastmaster's Competent Communicator, TechEd speaker, INETA speaker, STEP member, trainer, technical writer, and reviewer. He is deeply involved with the technical communities through his collaboration with INETA Europe, Barcelona Developers, and other communities and user groups. He recently co-founded the Zurich .NET Developers user group at Zurich, Switzerland, which can be found at http://ZurichDev.net.
Jose Luis Latorre is strongly focused on XAML technologies such as Windows Store Apps, Windows Phone Apps, Silverlight, and WPF. He has written several articles on these topics, reviewed books, and worked with and given several talks over the last few years on these areas of knowledge.
Jose Luis works as UI Team Lead developer at Roche Diagnostics, where he does his best to develop and improve diagnostic software and its interfaces, which will help to save lives.
Acknowledgment
I'd like to first of all thank my girlfriend, Sandra Saenz Gonzalez, for her enormous support in taking on the project that this book was. I am greatly thankful for her constant understanding while having me closed up between four walls as I wrote and developed its contents. Thanks, Sandra, I love you.
Big thanks as well to my friend Jesus Salillas, who helped me with style reviews and guidance.
There are many good people out there who I have to thank, too. Thanks to Alfonso Rodriguez, who encouraged me to get into this big .NET community world,
and to Cristina Gonzalez, who has been my MVP Lead for—wow!—6 years already; easier said than done. Additionally, there is my good friend Paco Marin, who encouraged me strongly to write for him and his magazine, DotNetMania, now DNM, and during these years of collaboration, while writing for him, we have become good friends; thank you for all your support and care.
On the way, I found great friends out there, versed in the community, who allowed me to jump right at my passion. Thanks to the INETA guys, Damir Tomicic, Tomislav Bronzin, Sander Gerz, Andrej Radinjer, Andre Obelink, Christian Nagel, Dobrisa Adamec, and, of course, Miguel Lopez. Thank you for being there and doing what you do, greatly empowering the European developers' community. And for letting me take part in it and letting me live it.
One simple word—outstanding.
I'd like to give a big thank you to the staff of Packt Publishing for this opportunity, their support and patience on bringing this together, and for their understanding concerning my move to Switzerland, which had me a bit lost for a while (regarding the book). There you showcased that you are truly valuable, as a company and as people; special thanks to Rashmi Phadnis, Amey Sawant, and Dayan Hyames.
And finally I would like to thank Layla Driscoll, former Product Manager of the .NET CLR team, and Leon Welicki, Program Manager of the Workflow Foundation, both of whom I have had the honor of having as technical reviewers for this book. Thanks! It's awesome to count on you as reviewers.
I also have some friends who believed in me and encouraged me to write and said I could do it
—thanks Braulio Diez, David Nudelman, Luis Franco, David Salgado, and Luis Fraile for your friendship, belief, and support.
I wouldn't have been able to write enclosed in the 15 square meters—my home for almost four months of my initial stay in Switzerland—if I couldn't take my stress out, which I did with my friends at Crossfit Zurich, so I want to give a big thank you to Ozi, all the coaches, and friends I have found at the box
for being there!
And I will end by thanking those who started it all for me, that is, thanks to my father and mother for giving me birth and making me so curious; love you.
Thank you all!
About the Reviewers
Nauzad Kapadia is an independent professional and founder of Quartz Systems, and provides training and consulting services for the entire Microsoft .NET and SQL Server stack. Nauzad has over 17 years of industry experience and has been a regular speaker at events such as TechED, DevCon, DevDays, and user group events. He has been a Microsoft MVP (Most Valuable Professional) for six years on technologies ranging from C# and ASP.NET to SQL Server. Whenever he is not working on his computer, he enjoys rock music, photography, and reading.
Ariel Woscoboinik graduated as a Bachelor of Information Technology from the University of Buenos Aires, and as an IT technician from ORT school. Since his childhood he has been programing and getting more and more involved in the world of technology. Later on, he became interested in organizations and their business models and succeeded in converging both interests into his career—looking for the best solutions to involve people, processes, and technology.
Currently, he works as a Software Development Manager for Telefe, the leading TV channel in Argentina.
Ariel has been working with Microsoft technologies since high school. During his career, he has worked for highly prestigious companies from myriad industries—Microsoft, MAE, Intermex LLC, Pfizer, Monsanto, Banco Santander, IHSA, Disco S.A., Grupo Ecosistemas, Perception Group, and Conuar.
Among his passions are acting in dramas as an amateur actor, travelling around the world, watching films, and soccer.
You can reach him at http://www.linkedin.com/in/arielwoscoboinik or on twitter, @arielwos.
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
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.
Support files, eBooks, discount offers and morehttp://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