Posted 10 years ago by testrash
Avatar
Hi,

Is it possible to set a specific width to toolbar upon its creation?
It is too narrow in its default.
I'm composing gui directly from C# code, not xaml.
I've tried different methods: changing ToolWindow's Width property, content's Width property, DockSite.SetControlSize(...), but none of them seem to work.

What is the official way to specify toolwindow width?

Thanks in advance!

[Modified at 03/04/2009 07:31 AM]

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Using DockSite.SetControlSize should do it if you set it before you call Dock.

There is a known issue now though that if you open the window before the dock site has received at least one layout pass, the size may not take correctly. This has been fixed for the upcoming maintenance release build 486 though already. So you may want to try again with the next build.

However if your DockSite has already had an arrange pass and you still see this, then send over a simple sample project that shows it to our support address. Thanks.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.