Dear Rui Shen,
Thank you for your query.
I would assume that you can use the standard .NET functionality to achieve that, unless Revit is doing something to specifically prevent it.
What have you tried so far?
Regarding the wish list items that you ask about:
- CF-1425 [Specify DockableDialog size when floating]
- CF-1826 [API wish: specify minimum width of dockable panel]
Nothing has happened at all so far to either of these.
I raised the priority of both items to critical and prompted the development team to say something about their plans for proceeding with the issues.
They respond:
You should try and see what you can do to enforce a minimum width as part of the framework element you return to us (i.e. your WPF object).
That may or may not work, not sure off-hand.
The FrameworkElement provides MinWidth and MaxWidth properties, and similar for the height.
Are you setting these?
We need to know whether you are setting these and it doesn't work, or you have not set anything.
Thank you!
Best regards,
Jeremy