Skip to content

dmccuaig/SaveWindowPos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Methods

public static string GetWindowPositionString(Window w)

Gets the window position as a JSON string.

Parameters

Window w - The Window

Returns

String The window position as a JSON string.

public static void RestoreWindowPosition(Window w, string wpStr)

Restores the window position from a JSON string.

Parameters

Window w - The Window wpStr String JSON string

public static void EnsureIsVisible(Window w)

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

Parameters

Window w - The Window

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages