ControlActivationService and SimpleWorkItemActivationService

Hopefully, you have noticed, that a WorkItem is activated while one of its SmartParts respectively controls is entered?
It is independent to which of the WorkItem's collections (Item- or SmartPartCollection)  the control was added, it only has to be derived from System.Windows.Forms.Control.
This works due to the ControlActivationService of the CompositeUI.Winforms Library. If the control is entered the ControlActivationService activates the containing WorkItem. The SimpleWorkItemActivationService ensures that only one WorkItem is active.
Paulo Morgado shows us how to replace the SimpleWorkItemActivationService by an hierarchical ActivationService.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: Michael
Posted on: 7/22/2008 at 11:16 PM
Categories: CAB | SCSF
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

How to start developing with the Smart Client Factory and the Composite UI Application Block

Go to the p&p Smart Client Guidance Community Site, download the current release and start playing with the samples out of the Smart Client Contrib package. They rewrote the original BankTeller sample. By comparing the original BankTeller sample with the one out of the SCSFContrib you'll see the advantages of a WorkItemController over a typed WorkItem.

The samples just show you what you can do with CAB, but to start developing your own app you need a deeper understanding of its mechanisms.
Therefore, I would propose to read the introduction of Rich Newman - it is the best I ever read. To me, it was most important to get a comprehension of the WorkItem and how it is used by SCSF (WorkItemController). Don't reduce it to a representation of an "use case", it is much more.

To build an application with CAB rely on Workspaces (CAB), the WorkItemController (SCSF), SmartParts (CAB), Services (CAB), Events(CAB), Commands(CAB) and Actions (SCSF). Don't use UIExtensionSites and the WorkItem.State.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: michael
Posted on: 2/12/2008 at 12:14 PM
Categories: CAB | SCSF
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed