Personally, I would choose the types "Window1.Top = 40" in the constructor after calling InitializeComponent (). This will be called before the actual display of the window.
Edit: Ouch. I should have read carefully.
Are you trying to set the position of a window from some other class than the window itself? My suggestion will work if you can set Window1 position from Window1 constructor.
Otherwise, I would say that the best thing you could do is listen to the "Loaded Event" window and set the position from there.
source share