Skip to content

ElementExtensions.StartManualPosition method

Sets the window to open at the specified position in DIPs (primary monitor DPI basis). Must be called before Show.

public static Window StartManualPosition(this Window window, double leftDip, double topDip)
parameter description
window Target window.
leftDip Left position in DIPs.
topDip Top position in DIPs.

The window for chaining.

Do not call inside OnBuild - setting startup position after the window is shown throws an exception.