Pushes a System.Windows.Forms.Design.Behavior.Behavior onto the behavior stack and assigns mouse capture to the behavior.
- behavior
- The System.Windows.Forms.Design.Behavior.Behavior to push.
Pushing a capture behavior is often done through a hit-tested System.Windows.Forms.Design.Behavior.Glyph. If a behavior calls the BehaviorService.PushCaptureBehavior(Behavior) method and mouse capture is lost, the behavior's Behavior.OnLoseCapture(Glyph, EventArgs) method is called.