Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Mastering LOB Development for Silverlight 5: A Case Study in Action
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
← Prev
Back
Next →
← Prev
Back
Next →