TouchToolKit for WinForms | ComponentOne
Zooming Component / C1Zoom Layout / Setting Background Content
In This Topic
    Setting Background Content
    In This Topic

    You will see a whitespace when the Form is maximized, but its zoomfactor is still 100%. You can set the Background color or Background image for the whitespace.

    To set the Background color, you can use the C1Zoom.BackColor property like the following:

     

    [C#]

    c1Zoom1.BackColor = Color.DarkGray;

     

    [Visual Basic]

    C1Zoom1.BackColor = Color.DarkGray

     

    To set the Background image, you can use the C1Zoom.BackgroundImage property and the C1Zoom.BackgroundImageLayout property like the following:

     

    [C#]

    c1Zoom1.BackgroundImage = new Bitmap("Background.png");

    c1Zoom1.BackgroundImageLayout = ImageLayout.Tile;

     

    [Visual Basic]

    C1Zoom1.BackgroundImage = New Bitmap("Background.png")

    C1Zoom1.BackgroundImageLayout = ImageLayout.Tile