G. Non-ToolStripItem Classes: Writing a UIElementAdapter

  1. The base implementation of the CAB contains classes for extending user interface sites deriving from ToolStripItem, but suppose we want to extend a different user interface site instead? For example, consider the case of floating, dockable ToolStrips. Users often expect to be able to move their ToolStrips around on the screen, perhaps hiding them and reshowing them later. What kind of stuff do we have to roll to get that working?

    Creating floating, dockable ToolStrips turns out to be surprisingly easy and provides an instructive example that can help us with other classes as well. We create floating, dockable ToolStrips by adding a ToolStrip to a ToolStripPanel on a Windows Form. The panel ...

Get Programming Microsoft® Composite UI Application Block and Smart Client Software Factory now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.