Change the size of a window #64

Closed
draco951 opened this Issue Sep 19, 2012 · 3 comments

3 participants

@draco951

Hello :-)

Do you know how can i change the size (height precisely) of a window ? (DockContent)

i've tried this : this.Height = this.Height + 100;

But nothing happen.

An idea ?

@lextm
DockPanel Suite member

In most cases you should not do that in code. What do you attempt to achieve?

@draco951

I would like to enlarge the window to access to hidden button.

Like a drawer i can open and close by cliking on a button, when it's open, there is more functionnality than when it's close

@roken
DockPanel Suite member

DockPanel.DockLeftPortion (as well matching properties for the other three sides) control the amount of space taken by the contents docked in those spaces. If the content is hidden, it's size when it unhides is controlled by the AutoHidePortion property on the DockContent.

@roken roken closed this Apr 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment