TouchToolKit for WinForms | ComponentOne
C1.Win.TouchToolKit Namespace / C1Zoom Class / AllowZoomByResize Property
Example

In This Topic
    AllowZoomByResize Property (C1Zoom)
    In This Topic
    Gets or sets a value that indicates whether zoom form when resizing form.
    Syntax
    'Declaration
     
    
    Public Property AllowZoomByResize As Boolean
    public bool AllowZoomByResize {get; set;}

    Property Value

    true to zoom form when resizing form; otherwise, false. The default is true.
    Remarks

    Even though AllowZoomByResize is true, zooming form's content by resizing form will not work in these situations:

    InnerPanelLayoutMode is InnerPanelLayoutMode.None.

    The ownerForm's System.Windows.Forms.Form.IsMdiContainer is true.

    Example

    The following code example shows how to use this property.

    This code example is part of a larger example provided for the AllowPinchZoom property.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also