Mastering LOB Development for Silverlight 5: A Case Study in Action
图书信息
| 作者 | Braulio Díez |
| 出版社 | Packt Publishing |
| ISBN | 9781849683555 |
| 出版时间 | 2012-02-24 |
| 字数 | 203.6万 |
| 分类 | 进口书,外文原版书,电脑,网络 |
读书简介
This highly practical, expert level tutorial teaches you to build a Line of Business application with the aid of a case study which gradually builds throughout the book. It also includes a jumpstart chapter for developers coming from other technologies. If 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 Expert Line of Business Application Development for Silverlight 5: Quick Start Guide is for you. If you are a developer with experience of other technologies, you may also find this book useful.
目录
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
- 中国资本市场:重塑生态链(吴晓求 等)
- 中华学生百科全书——控制论与自动化(读书堂)
- 人机对话系统(曹均阔,陈国莲)
- 不见长安(则慕)
- Fericirea mea e?ti tu(McGuire Jamie)
- 第11集 趋势定位:如何从消费市场往创业市场和资本市场转型(此商品为视频课程)(周导)
- 侯大利刑侦笔记8:旧案寻踪(集侦查学、痕迹学、社会学、尸体解剖学、犯罪心理学的教科书式破案小说)(读客知识小说文库)(小桥老树)
- 文治帝国:大宋300年的世运与人物【畅销书《一看就停不下来的中国史》作者重磅新书!】(艾公子)
