ElementExtensions.StartCenterOwner method
Sets the window to open centered on the owner window. The owner is provided when calling Show or ShowDialogAsync.
public static Window StartCenterOwner(this Window window)| parameter | description |
|---|---|
| window | Target window. |
Return Value
Section titled “Return Value”The window for chaining.
Remarks
Section titled “Remarks”Do not call inside OnBuild - setting startup position after the window is shown throws an exception.
Sets: Window.StartupLocation
See Also
Section titled “See Also”- class Window
- class ElementExtensions
- namespace Aprillz.MewUI.Controls