Full size graph without PanelDockMode.Fill


Author
Message
Jan Dolejs
Jan Dolejs
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic
1 active, 1 guest, 0 members, 0 anonymous
No members currently viewing this topic!

Login

Explore
Messages
Mentions
Search