Home| All soft| Last soft| Your Orders| Customers opinion| Helpdesk| Cart

Program Search:


Shopping Cart:




*Note: Minimum order price: €20
We Recommend:
Pluralsight WPF and MVVM Advanced Model Treatment €20 buy download

2015
pluralsight
Thomas Claudius Huber
6h 54m
English

In this course, you will learn how to use these Model-wrappers in your MVVM-application for several scenarios: to highlight changed fields, to highlight invalid fields, to display validation errors, to enable the save button only if there are changes, and much more.

Introduction
Introduction
Course Outline
Why Are Services Using POCOs?
Challenges with POCOs in the Client
The FriendStorage-application
Challenges with POCOs in FriendStorage
Mastering POCOs in a ViewModel
Mastering POCOs in a Model-wrapper
Summary
Notifying About Model Changes
Introduction
Create the FriendWrapper
Set and Get Simple Model-properties
Notify About Changes of Simple Properties
Refactor Common Logic into a Base-class
Use Reflection to Set and Get Property-values
Notify About Changes of Complex Properties
Notify About Changes of Collection-properties
Initialize the Wrapper-collection
Keep the Wrapper- and the Model-collection in Sync
Integrate the FriendWrapper into FriendStorage
Summary
Tracking Model Changes
Introduction
Track Simple Properties
Get the Original Value of a Simple Property
Get the Changed-state of a Simple Property
Refactor the Tracking Code with C# 6.0 Features
Get the Changed-state of the FriendWrapper
Accept Changes for Simple Properties
Reject Changes for Simple Properties
Track Complex Properties
Track Collection-properties
Use the ChangeTrackingCollection in the FriendWrapper
Fix the Collection-sync in the ModelWrapper
The Change Tracking Use Cases in FriendStorage
FriendStorage: Enable and Disable the Save-button
FriendStorage: Check for Changes When Closing a Tab
FriendStorage: Reset the Friend to Its Original State
Summary
Displaying Model Changes
Introduction
Display Changes in the TextBox
Refactor Logic into a Common TextBox Style
Bind the ChangeBehavior-properties Dynamically
Display Changes in the CheckBox
Create a Base Style to Display Changes
Display Changes in the DatePicker
Original Value Conversion in the ChangeBehavior
Convert the Original Value of the DatePicker
Set the Original Value Converter in a Style
Display Changes in the ComboBox
Convert the Original Value of the ComboBox
Display Changes in the DataGrid
Create the Element Styles Dynamically
Master Added and Removed Items
Display Changes in the Tab-header
Cancel the Closing of the FriendStorage-application
Summary
Validating the Model
Introduction
The Interface INotifyDataErrorInfo
Implement INotifyDataErrorInfo in a Base Class
Add Validation-tests for the FirstName-property
Using Data Annotations
Validate the FirstName-property with Data Annotations
Add an IsValid-property to the ModelWrapper
Use the IsValid-property to Enable the Save-button
Validate the Full FriendWrapper
The IsValid-property of the FriendWrapper
Add the IValidatableTrackingObject-interface
IsValid and Complex-properties
IsValid and Collection-properties
Validate on Class-level with IValidatableObject
Every Developer Should Have an Email
Initialize Correctly Before Validation
Validation Attributes and IValidatableObject
Summary
Displaying Validation Errors
Introduction
Validation Errors in the User Interface
Highlight Invalid Fields
Display the Error in the Tooltip
Define a Custom Error Template
Fix the Error Layout for the CheckBox
Use the Error Template for the DataGrid
Display Errors in Data Grid Cells
Avoid Validation for Specific Bindings
Highlight the Tab-header
Summary
Generating Model-wrappers with T4
Introduction
T4 Basics
Add a T4 Template to Generate the Model-wrappers
Install an Extension for T4 Syntax Highlighting
Generate a Wrapper-class for Each Model
Create One File per Model-wrapper
Generate Usings, Namespace, and Constructor
Generate Simple Properties
Support Generic Types like Nullable
Generate Complex-properties
Generate Collection-properties
Initialize Complex-properties
Initialize Collection-properties
Create Validation Logic in Partial Classes
The Final FriendStorage-application
Course Summary



Download File Size:1.23 GB


Pluralsight WPF and MVVM Advanced Model Treatment
€20
Customers who bought this program also bought:

Home| All Programs| Today added Progs| Your Orders| Helpdesk| Shopping cart      





AutoCAD 2023 €110


SolidWorks 2022 €115


AutoCAD 2023 for Mac €110






Autodesk Revit 2023 €140

             

Autodesk Product Design Suite Ultimate €252






FileMaker Pro 19 €50


Pinnacle Studio Ultimate 25 €25


CorelDRAW Graphics Suite 2022 €65