How it works...
By using this method, we have added a coupling to the process class structure by means of the binding to the UI builder. In order to avoid this, we would use inheritance to define a data contract base class and extend it for the purposes of this binding.
The process may seem a little complicated at first but, when we break this down, it will become clearer what is actually happening.
The first task was to declare to the DialogField variables that we want added to the resulting dialog, and then to bind them to the data contract data methods. However, in order for this to work, we had to bind the UI builder class to the data contract. We did this by adding the SysOperationContractProcessing attribute to the data contract.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access