Skip to content

Repository files navigation

Extension methods for saving and restoring the position of a WPF Window using JSON strings.

Methods

publicstaticstringGetWindowPositionString(Windoww)

Gets the window position as a JSON string.

Parameters

Windoww - The Window

Returns

String The window position as a JSON string.

publicstaticvoidRestoreWindowPosition(Windoww,stringwpStr)

Restores the window position from a JSON string.

Parameters

Windoww - The Window wpStrString JSON string

publicstaticvoidEnsureIsVisible(Windoww)

Ensure a window is visible on the screen. If it is partially hidden, snap it on screen.

Parameters

Windoww - The Window

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages