CenterVertical() in docked item.

How can I Center a Dock(LEFT) item vertically?

I tried CenterVertical(), but you can’t set the pos for a docked item. And DockMargin doesn’t work either because you doesn’t get the correct value.

How can I do it anyway?

Dock a transparent panel instead, parent to it your panel that is centered vertically inside the docked panel.

Can you show me a demo? I get what you say, but can’t virtualize it in code. :frowning:

EDIT:

Nvm, Fixed it.