콘텐츠로 이동

ElementExtensions.StartCenterScreen<TWindow> method

이 콘텐츠는 아직 번역되지 않았습니다.

Sets the window to open centered on the primary screen. Must be called before Show.

public static TWindow StartCenterScreen<TWindow>(this TWindow window)
where TWindow : Window
parameter description
TWindow Window type.
window Target window.

The window for chaining.

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

Sets: Window.StartupLocation