Programming Microsoft® Composite UI Application Block and Smart Client Software Factory
by David S. Platt
D. Menu Processing
A WorkItem often tries to perform its user interface extensions as early in its lifetime as possible. The usual location for the extension code is the Run method of the Controller class on the ControlledWorkItem, which the ModuleInit class calls at startup time.
The facing page shows that method of the sample controller. For logistical convenience and clarity of explanation, I've broken down the user interface extension process into the separate utility functions that you see. Each extends one particular user interface object. Some of them are generated by the SCSF Wizard, whereas others I added myself.
Sometimes you just want to add menu items and toolbar buttons and receive commands from them. At other times, however, you want ...
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