Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
519
Expanding UltraWinChart to cover the whole form and vice-versa
posted

Hello,
I have a UltraTilePanel in which i have added UltraTile in each panel.
In Each UltraTile, i have added a UltraWinChart. 

Now, what i require is something like this :

Chart has an in-built enlarge button but that enlarges to the size of the UltraTile it resides in.

I want the chart to expand it to cover the whole form and there should be a mechanism to restore the enlarged chart size to original size.

 

This should be on clicking the enlarge button or on double click of the chart itself (anything will do).

 

Let me know if there is any better approach for doing the same ?
 

Regards,

Sumz

Parents
No Data
Reply
  • 2406
    Suggested Answer
    posted

    Hi Sumz,

    Here is a sample button click event you could use:

    bool isEnlarged = false;
    Size originalSize = Size.Empty;
    private void button1_Click(object sender, EventArgs e)
    {
        if (!isEnlarged)
        {
           originalSize = chart.Size;
           chart.Size = chart.Parent.Size;
        }
        else
        {
            chart.Size = originalSize;
        }

        isEnlarged = !isEnlarged;
    }

     

    Let me know if this helps.

Children
No Data