How can I set Dockable Dialogs width < 100?

How can I set Dockable Dialogs width < 100?

sr
Contributor Contributor
629 Views
1 Reply
Message 1 of 2

How can I set Dockable Dialogs width < 100?

sr
Contributor
Contributor

How to Set Min Width for dockable dialog, so that my dockable form does not go beyond Min Width with Revit API 2015

 

The minimum width of the current window is about 100.  I want to set 50.

 

 

Are these problems solved now?

CF-1425

CF-1826

0 Likes
630 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

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



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes