Nevron Forum

Full size graph without PanelDockMode.Fill

https://www.nevron.com/Forum/Topic8885.aspx

By Jan Dolejs - Monday, January 12, 2015

Hi,
I have a graph, that fills up whole area using chart.DockMode = PanelDockMode.Fill

It is working realy nic, but i cannot use this anymore, because i got Community Edition, which does not support it. Is there any way to ensure same behavior without using DockMode?

Thanks
By Nevron Support - Monday, January 12, 2015

Hi Jan,

You can emulate the same behavior (if there are no other docked panels to left, top, right or bottom) using fixed position in parent percentage units - for example:

chart.Location = new NPointL(0, 0);

chart.Size = new NSizeL(new NLength(100, NRelativeUnit.ParentPercentage), new NLength(100, NRelativeUnit.ParentPercentage));

That way the chart will occupy the whole control area (if it is under the root panel).

Hope this helps - let us know if you  meet any problems or have any questions.