This is a migrated thread and some comments may be shown as answers.

Width Issue

1 Answer 93 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Kenneth Jackson
Top achievements
Rank 1
Kenneth Jackson asked on 14 Apr 2009, 06:49 PM
I have an application that uses floating dockpanels.

I have noticed that there seems to be a maximum width equal to the screen resolution width even when
I have not set any maximum or minimum values for the size of the dockpanel window.

I assume this is a built in behavior ? I have tested at multiple resolutions and get the same result.
Is there a way to override this behavior ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Julian Benkov
Telerik team
answered on 17 Apr 2009, 06:50 AM
Hi Kenneth,

Form class limits the size of the form to be not larger then the screen size. It is done in Form SetBondsCore override and unfortunately cannot be changed. To be precise it is limited by the size in
SystemInformation.MaxWindowTrackSize. For the latter, one can read in MSDN :

"...The value returned by MaxWindowTrackSize refers to dimensions of the entire desktop. The user cannot drag the window frame to a size larger than these dimensions. A Form can override this value by overriding the MaximumSize property..."


One can set Form MaximumSize to be smaller, but not larger than MaxWindowTrackSize.

I hope this helps. Should you have any other questions, feel free to ask.

Sincerely yours,
Julian Benkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
Kenneth Jackson
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or