See Also: BehaviorService Members
When the System.Windows.Forms.Design.Behavior.BehaviorService is created, it adds a transparent window over the designer frame. The System.Windows.Forms.Design.Behavior.BehaviorService can then use this window to render user interface elements, called System.Windows.Forms.Design.Behavior.Glyph objects, as well as catch all mouse messages. In this way, the System.Windows.Forms.Design.Behavior.BehaviorService can control designer behavior.
The System.Windows.Forms.Design.Behavior.BehaviorService class supports a behavior stack, onto which System.Windows.Forms.Design.Behavior.Behavior objects can be pushed. When a message is intercepted through the transparent window, the System.Windows.Forms.Design.Behavior.BehaviorService can send the message to the System.Windows.Forms.Design.Behavior.Behavior at the top of the stack. This enables different user interface modes depending on the currently pushed System.Windows.Forms.Design.Behavior.Behavior. The System.Windows.Forms.Design.Behavior.BehaviorService is used to render all System.Windows.Forms.Design.Behavior.Glyph objects, such as selection borders, sizing handles, and smart tags. The System.Windows.Forms.Design.Behavior.BehaviorService also controls many design-time behaviors, such as using snaplines, dragging, and selecting.
For more information, see Behavior Service Overview.