TouchToolKit for WinForms | ComponentOne
Zooming Component / C1Zoom Layout / Centering Content On Form
In This Topic
    Centering Content On Form
    In This Topic

    In some cases, controls on the form move to the TopLeft direction when you zoom the Form because the control's Anchor property value is TopLeft.

    To keep the control’s position in the center of the form, set the C1Zoom.InnerPanelLayoutMode property to MiddleCenter, like the following:

    Visual Basic
    Copy Code
    C1Zoom1.InnerPanelLayoutMode = InnerPanelLayoutMode.MiddleCenter
    C#
    Copy Code
    c1Zoom1.InnerPanelLayoutMode = InnerPanelLayoutMode.MiddleCenter;