Change size and position of DockableWindow

Change size and position of DockableWindow

GeorgK
Advisor Advisor
320 Views
1 Reply
Message 1 of 2

Change size and position of DockableWindow

GeorgK
Advisor
Advisor

Hello together,

 

how could I change the position and size of a dockable window when it's shown?

 

Thank you

 

Georg

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

adam.nagy
Autodesk Support
Autodesk Support

Hi Georg,

 

Have you seen this sample?

http://adndevblog.typepad.com/manufacturing/2012/06/embedding-a-wpf-user-control-in-a-dockablewindow...

 

It is using this code:

myDockableWindow.DockingState = DockingStateEnum.kFloat
myDockableWindow.Move(25, 25, myDockableWindow.Height, myDockableWindow.Width)

Give it a try.

 

Cheers, 



Adam Nagy
Autodesk Platform Services
0 Likes