TouchToolKit for WinForms | ComponentOne
C1.Win.TouchToolKit Namespace / C1Zoom Class / ControlBoundsZooming Event
Example

In This Topic
    ControlBoundsZooming Event (C1Zoom)
    In This Topic
    Occurs before C1Zoom start zoom the target control's bounds.
    Syntax
    'Declaration
     
    
    Public Event ControlBoundsZooming As EventHandler(Of ControlBoundsZoomingEventArgs)
    public event EventHandler<ControlBoundsZoomingEventArgs> ControlBoundsZooming
    Event Data

    The event handler receives an argument of type ControlBoundsZoomingEventArgs containing data related to this event. The following ControlBoundsZoomingEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets or sets a value indicating whether the child controls' zoom logic is handled by user.  
    Gets or sets a value indicating whether this ControlBoundsZooming event is handled by user.  
    Gets the target control which is preparing to zoom.  
    Gets the informations for current zoom action.  
    Remarks

    You can set ControlBoundsZoomingEventArgs.Handled to avoid default logic of C1Zoom for current control.

    You can set ControlBoundsZoomingEventArgs.ChildrenHandled to avoid default logic of C1Zoom for current control's child control.

    Example

    The following code example shows how to use this event.

    This code example is part of a larger example provided for the ZoomFactorChanged event.

    See Also