Windows. Forms equivalent of Arrange, Measure and DesiredSize?

I was assigned a project that requires me to display tree structures, which, it turns out, are a mathematically non-trivial process.

I found this project , which seems to more or less do the job, but in WPF, which really isn’t β€œmy scene, and also seems to require a little extra care and attention. I am a Windows.Forms programmer (anyway , I'm actually a GUI programmer), I need to bash it in WinForms before I can give it this care and attention.

I managed to get a few things that look right in this conversion, but I would like to make sure of these functions before I start charging blindly in the wrong direction.

I think that WPF Arrange looks equivalent to WinForms PerformLayout, WPF DesiredSize looks like WinForms PreferredSize and WPF Measure ... Um ...

Basically, I'm looking for any advice on automatic layout management in WinForms controls, just like WPF controls layouts, and confirmation that these obvious equivalences that I mentioned are actually equivalent.

+3
source share
1 answer

WinForms also has several layout containers:

  • FlowLayoutPanel Represents a panel that dynamically displays its contents horizontally or vertically.

  • TableLayoutPanel Represents a panel that dynamically displays its contents in a grid of rows and columns.

  • Group: Used to group collections of controls.

.

-3

All Articles