[3dsmax .net] Dockable usercontrol

Hello

I want to create a dockable window in max (in wpf)
with the help of CuiDockableContentAdapter.

Eveything work fine my only problem is that i’m not
able to resize the usercontrol when this one is docked.

i find a workaround based on this:
https://code.msdn.microsoft.com/How-to-Resize-WPF-panel-on-62fbbf12

it work’s fine, but i’d like to know if other solution are available.

thanks and sorry for my english