Profile Picture

Full size graph without PanelDockMode.Fill

Posted By Jan Dolejs 9 Years Ago
Author
Message
Jan Dolejs
Posted 9 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 1, Visits: 11
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


Tags
Nevron Support
This post has been flagged as an answer
Posted 9 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746

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.




Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic