Home Programming Mastering LOB Development for Silverlight 5: A Case Study in Action

Mastering LOB Development for Silverlight 5: A Case Study in Action

By Jose Fernando Almoguera , Reyes García Rosado , Sebastian Stehle and 7 more
books-svg-icon Book
Subscription FREE
eBook + Subscription €14.99
eBook €39.99
Print + eBook €48.99
READ FOR FREE Free Trial for 7 days. €14.99 p/m after trial. Cancel Anytime! BUY NOW BUY NOW BUY NOW
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook + Subscription?
Download this book in EPUB and PDF formats
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
READ FOR FREE Free Trial for 7 days. €14.99 p/m after trial. Cancel Anytime! BUY NOW BUY NOW BUY NOW
Subscription FREE
eBook + Subscription €14.99
eBook €39.99
Print + eBook €48.99
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook + Subscription?
Download this book in EPUB and PDF formats
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
  1. Free Chapter
    Express Introduction to Silverlight
About this book
Microsoft Silverlight is fully established as a powerful tool for creating and delivering Rich Internet Applications and media experiences on the Web. This book will help you dive straight into utilizing Silverlight 5, which now more than ever is a top choice in the Enterprise for building Business Applications. "Mastering LOB Development for Silverlight 5: A Case Study in Action" focuses on the development of a complete Silverlight 5 LOB application, helping you to take advantage of the powerful features available along with expert advice. Fully focused on LOB development, this expert guide takes you from the beginning of designing and implementing a Silverlight 5 LOB application, all the way through to completion. Accompanied by a gradually built upon case study, you will learn about data access via RIA and Web services, architecture with MEF and MVVM applied to LOB development, testing and error control, and much more.With "Mastering LOB Development for Silverlight 5: A Case Study in Action" in hand, you will be fully equipped to expertly develop your own Silverlight Line of Business application, without dwelling on the basics of Enterprise Silverlight development.
Publication date:
February 2012
Publisher
Packt
Pages
430
ISBN
9781849683548

 

Chapter 1. Express Introduction to Silverlight

Nowadays, starting a web development poses a considerable challenge, since clients have got used to having powerful desktop-based interfaces at their disposal, which can also be delivered in record time. If we focus on Line of Business (LOB) applications, we find the additional challenge which is the fact that our apps have to be ready for massive changes, taking into account tight deadlines without sacrificing stability. All of us have suffered that "little last-minute change". Everybody has heard things like, "We got to change the way in which discounts for purchases are managed. This could be ready in just five minutes, couldn't it?"

To overcome such situations, web developers can make use of a combination of ASP.NET (webforms or MVC), HTML, JavaScript, AJAX, and the more advanced HTML 5 and jQuery.

Nevertheless, when we implement LOB applications we often find that:

  • We have to struggle in order to make our pages consistent in different browsers; even in different versions of the same browser.

  • Our developers have to learn a language to develop client side, and another one to develop the server side.

  • JavaScript is a polemic language—love it or hate it. For some developers it is not object-oriented (although it has OO capabilities) and is an interpreted language. One only has to forget to add a semicolon, or introduce a syntax error when typing a command, and our application may produce an execution time error.

  • HTML 5 only works in updated browsers. Could you imagine yourself telling your client something like, "Well, what you have to do is install the latest version of Chrome or IE on your 1,000 PCs. This is also applicable to your associate companies."

  • We have to mix business and presentation logic. We try to avoid going to the server, for instance, to make validations which do not require reading a database. That is to say, we mix the reading of an input or an HTML ComboBox with the realization of validations. For example, if the user chooses more than four high-end products and is a premium client, we can enable a special 10 percent discount. This causes serious trouble when changes are required in the page layout, even if they are insignificant.

 

Introduction to Silverlight


Microsoft has published a plugin called Silverlight (the word plugin reminds us of Flash, one of the most accepted plugin-based technologies) which allows us to encode with sturdy, compiled languages (such as C# and VB.NET). This plugin incorporates a lite version, that is the .NET Framework, which offers us the possibility to take advantage of everything offered at the client side while implementing a new markup language called XAML. The advantages of using Silverlight are as follows:

  • Our applications are sturdier; for example, allowing us to implement automatic unit testing at the client side.

  • We can decouple business presentation and implement an architecture at the client side.

  • We can decouple roles. While a designer can deal with presentation, we as developers are able to focus on the business of building the application.

  • Our application is more scalable (we free up resources on the server) and we do not depend on tricks to maintain application status.

  • We can have a standard XAML implemented the same way in every single browser. No more headaches such as, "it looks good in IE6 but not in IE7, or Firefox, and so on".

In addition, Silverlight is multi-platform (for example, Windows or Mac) and multi-device (computers, mobile devices with Symbian or WP7 support, for instance, among others).

 

Installation


In this book, we are going to deal with Silverlight 5. The tool that Microsoft recommends for development is Visual Studio 2010. Therefore, we will have to install the following software:

All of these individual links are available at http://www.silverlight.NET/getstarted/.

Note

In case you cannot install Visual Studio 2010, the 2008 version of the product will provide you with an interaction limited to Silverlight 3, hence you will not be able to follow all of the contents of this book.

             
About the Authors
  • Jose Fernando Almoguera

    José Fernando Almoguera is a consultant specializing in LOB development with Microsoft technologies (Silverlight and ASP.NET). Aside from being a consultant, José is also a technical writer.

    Browse publications by this author
  • Reyes Garc√ɬ≠a Rosado

    Reyes has a long experience as a multidisciplinary consultant. Nowadays, she is devoted to teaching and writing technical articles.

    Browse publications by this author
  • Sebastian Stehle

    Sebastian Stehle is a software engineer from Germany. He is an enthusiastic Silverlight developer, author of the ImageTools library and co-founder of the SilverDiagram group. He is also interested in game development and service-oriented architecture.

    Browse publications by this author
  • Pablo N√ɬ∫√ɬ±ez Navarro

    Pablo Nez Navarro is a software Developer specializing in Microsoft technologies, with more than 10 years of experience working with management and information systems in such areas like the automotive industry, telephony, textile and logistics. He is also an experienced teacher and an active participant in the Developer Community.

    Browse publications by this author
  • Jos√ɬ© Fernando Almoguera

    Jos Fernando Almoguera is a consultant specializing in LOB development with Microsoft technologies (Silverlight and ASP.NET). Aside from being a consultant, Jos is also a technical writer.

    Browse publications by this author
  • Rocio Serrano

    Rocío Serrano is a Spanish to English scientific-technical translator, software localizer, linguist and proofreader. She has worked as a translator and editor for Custom PC Spain, as well as for other relevant magazines and websites. Her main areas of expertise are IT (hardware, software, networking, videoconferencing, Internet, etc.), marketing and communication, and medical/pharmaceutical.

    Browse publications by this author
  • Braulio D√ɬ≠ez

    Braulio Dez is a freelancer specializing in Microsoft technologies who has more than 15 years of experience working on international projects. He is also a Silverlight MVP, consultant, technical writer, open source developer, trainer, and speaker.

    Browse publications by this author
  • Pablo Navarro Castillo

    Pablo Navarro Castillo is a mathematical engineer and developer. He earned his Master's degree in Applied Mathematics from École des Mines de Saint-Etienne in France. After working for a few years in operations research and data analysis,  he began to work as a data visualization consultant and developer. He has collaborated with Packt Publishing as a technical reviewer for Data Visualization with D3.js and Data Visualization with D3.js Cookbook. In 2014, he founded Masega, which is a data visualization agency based in Santiago, Chile, where he currently works.

    Browse publications by this author
  • Braulio Diez

    Braulio Díez is a freelancer specializing in Microsoft technologies who has more than 15 years of experience working on international projects. He is also a Silverlight MVP, consultant, technical writer, open source developer, trainer, and speaker.

    Browse publications by this author
  • Reyes Garcia Rosado

    Reyes has a long experience as a multidisciplinary consultant. Nowadays, she is devoted to teaching and writing technical articles.

    Browse publications by this author
Mastering LOB Development for Silverlight 5: A Case Study in Action
Unlock this book and the full library FREE for 7 days
Start now