
Mastering LOB Development for Silverlight 5: A Case Study in Action
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
- Fully up-to-date content for Silverlight 5 and RIA Services SP2
- Complete your knowledge with a gradually built upon case study with this book and e-book
Book DescriptionMicrosoft 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.What you will learn - Get up and running with coverage of LOB development challenges like building forms, navigation, and service and database access
- Get to grips with the MVVM pattern and how to integrate it with RIA Services
- Dig deeper by implementing both in Browser and Out of Browser trusted applications
- Become fully acquainted with Silverlight and HTML/JavaScript integration
- Understand how to add authentication and authorization to your Silverlight application
- Gain advanced knowledge of error control topics like error notification to TFS
- Become fully equipped with everything an expert developer should know about building Line of Business applications using Silverlight 5
- Take advantage of a complete LOB case study built gradually from start to finish throughout each chapter
Who this book is forIf you already have a firm grasp of Silverlight development and are keen to advance your specialist knowledge of Line of Business (LOB) application development, then Mastering LOB Development for Silverlight 5: A Case Study in Action is for you. If you are a developer with experience of other technologies, you may also find this book useful.
More details
Other editions
Additional editions

Content
- Intro
- Mastering LOB Development for Silverlight 5: A Case Study in Action
- Table of Contents
- Mastering LOB Development for Silverlight 5: A Case Study in Action
- Credits
- Foreword
- About the Authors
- About the Reviewers
- 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
- LOB application case study: applying what we have learned
- 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. Express Introduction to Silverlight
- Introduction to Silverlight
- Installation
- Silverlight architecture
- Creating the Hello World project
- Creating a new project
- Coding directly into the markup language
- Dragging-and-dropping controls
- Interacting with Code-Behind
- XAML basic concepts
- What is XAML?
- Basic elements for layout definition
- Canvas
- StackPanel
- Grid
- Controls
- LOB application case study: applying what we have learned
- Summary
- Additional resources
- 2. Forms and Browsing
- Controls definitions
- Creating windows and controls
- UserControl
- Example of UserControl
- Instantiating the control from code (Code-Behind)
- Page control
- Creating modal dialogs
- Example of modal dialogs
- Navigation
- Navigating the Web
- Silverlight Navigation Framework
- Integrating Navigation Framework in the browser
- UriMapper
- Frame
- Creating a sample Navigation Application
- Adding a new page
- Navigation control services
- URI parameters
- Deep Linking
- LOB application case study: applying what we have learnt
- MapView.XAML page
- AdminView.XAML Page
- Modal AdminEditionView.xaml dialog
- Summary
- Additional resources
- 3. Data Binding
- Understanding DataSource
- Path
- Binding sources
- DataContext
- Change notifications
- Data binding modes
- Introducing the ViewModel
- ViewModel example
- Dependency properties
- Data binding from Code-Behind
- Adding validations
- BindingValidationError
- DataAnnotations
- Converters
- IValueConverter
- LOB application case study: applying what we have learned
- Entity classes
- ObservableCollection
- AdminViewModel object
- Data binding
- Summary
- Additional resources
- 4. Architecture
- Patterns
- MVVM pattern
- Creating an MVVM-based sample application
- Creating the project structure
- Coding the project
- MyTweet.Model
- MyTweet.ViewModel
- MyTweet.View
- MVVM Light Toolkit
- ViewModelBase
- RelayCommand
- Messenger
- Managed Extensibilty Framework (MEF)
- MEF definitions
- Parts and contracts
- Composition
- Creating a mock model using MEF
- Solution and folder structure
- LOB application case study: applying what we have learned
- Project structure
- Folder structure
- Main solution structure
- Libraries
- Packt.Libs.Navigation
- Packt.Libs.Threading
- Packt.Libs.Utils
- Packt.Libs.Windows
- Summary
- Additional resources
- 5. RIA Services Data Access
- Accessing data
- RIA Services pieces
- Creating a Domain Service and consuming it from a Silverlight application
- CRUD
- Read
- Create
- Update
- Delete
- Error control
- Simple data binding
- Validation
- DataAnnotations
- Simple validations
- Custom and shared validations
- Entity-level validations
- Domain Services validations
- Server validations
- Asynchronous validations
- Advanced topics
- Cancelling changes
- Transactions
- Domain Service and partial classes
- Include
- Composition
- Solving the many-to-many relationship issue
- RIA Services and MVVM
- Encapsulating RIA Services in a model
- Context lifetime discussion and model factory
- LOB application case study: applying what we have learned
- Server
- Test
- Model
- Modules
- Summary
- Additional resources
- 6. Out of Browser (OOB) Applications
- Out of Browser (OOB)
- Executing an application in OOB mode
- Enhancing the experience-tooling up and updating
- In-browser/OOB detection
- Detecting the application installed
- Installing the custom interface
- Uninstalling an OOB application
- Offline installation
- Updates
- Offline work
- How it works
- Breaking the sandbox-trusted applications
- Enabling trusted mode
- Advantages of trusted applications
- Accessing files
- Making calls to COM+
- Writing an entry on the registry
- Executing notepad from our application
- P/Invoke
- Cross-domain calls
- WebBrowser control
- How it works
- Real windows
- In-browser trusted applications
- LOB application case study: applying what we have learned
- Summary
- Additional resources
- 7. Testing your LOB Application
- Types of testing
- Methodologies
- Unit testing with Silverlight
- Testing server code
- Testing client code with MSTest
- Libraries to test Silverlight code
- Testing synchronous client code with Silverlight Unit Testing
- Testing asynchronous client code with Silverlight Unit Testing
- Isolating unit tests via substitutes
- LOB application case study: applying what we have learned
- Summary
- Additional resources
- 8. Error Control
- Following best practices
- Exception handling
- Getting started
- Try and catch
- The "finally" expression
- Strategies
- Asynchronous patterns
- AsyncCompletedEventArgs
- ExceptionRoutedEventArgs/UnhandledExceptionEventHandler
- Global exception handling
- Understanding the exception types
- Fatal exception
- Boneheaded exceptions
- Vexing exceptions
- Exogenous exceptions
- Logging
- Enterprise application framework
- Architecture
- Practice
- Exception handling
- PostSharp
- Reporting bugs
- Architecture
- Service implementation
- Client implementation
- LOB application case study: applying what we have learned
- Server side
- Client side
- Summary
- Additional resources
- 9. Integration with other Web Applications
- Page architecture
- Communication between an ASPX page and Silverlight
- Accessing Silverlight from JavaScript
- Exposing methods and functions
- Returning complex data
- Registering a Silverlight object
- Accessing JavaScript from Silverlight
- HtmlPage object
- DOM handling from Silverlight
- HtmlDocument
- HtmlElement
- Interaction between Silverlight and JavaScript
- Address book
- Visual Studio solution
- Login page
- Contact list
- Contact edition
- Calling JavaScript code
- LOB application case study: applying what we have learned
- Summary
- Additional resources
- 10. Consuming Web Services
- Definitions
- Implementing and consuming a WCF service
- Proposal for sample projects
- Building the server
- Enabling WCF service for Silverlight 4
- Designing the client UI
- Referencing a WCF service from client
- Consuming a WCF service from Silverlight
- Using complex types via WCF
- Consuming a public API web service
- Twitter API
- Starting the Twitter project
- Calling the Twitter API
- Processing JSON format
- LOB application case study: applying what we have learned
- Implementation of the service client
- Summary
- 11. Security
- Client-side security
- Critical information
- Signing assemblies
- XAP and certificates
- XAP and obfuscation
- Server-side and communication security
- Validations
- Cross-domain calls
- Security in our communications
- Authentication and authorization with RIA Services
- Authentication
- Authorization
- Authentication and authorization in WCF Services
- Protecting communications with SSL
- LOB application case study: applying what we have learned
- Server side
- Client side
- Summary
- Additional resources
- Index
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.