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
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.