{"id":23484872,"url":"https://github.com/dmccuaig/savewindowpos","last_synced_at":"2026-04-25T23:38:37.047Z","repository":{"id":269193627,"uuid":"860591072","full_name":"dmccuaig/SaveWindowPos","owner":"dmccuaig","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-20T20:44:55.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T09:42:15.436Z","etag":null,"topics":["persistence","positioning","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmccuaig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-20T18:16:24.000Z","updated_at":"2024-09-21T10:27:33.000Z","dependencies_parsed_at":"2024-12-21T17:21:33.664Z","dependency_job_id":null,"html_url":"https://github.com/dmccuaig/SaveWindowPos","commit_stats":null,"previous_names":["dmccuaig/savewindowpos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmccuaig%2FSaveWindowPos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmccuaig%2FSaveWindowPos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmccuaig%2FSaveWindowPos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmccuaig%2FSaveWindowPos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmccuaig","download_url":"https://codeload.github.com/dmccuaig/SaveWindowPos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248824665,"owners_count":21167343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["persistence","positioning","wpf"],"created_at":"2024-12-24T22:11:17.479Z","updated_at":"2026-04-25T23:38:36.999Z","avatar_url":"https://github.com/dmccuaig.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Extension methods for saving and restoring the position of a WPF Window using JSON strings.\n\n## Methods\n\n```csharp\npublic static string GetWindowPositionString(Window w)\n```\nGets the window position as a JSON string.\n#### Parameters\n[Window](https://learn.microsoft.com/en-us/dotnet/api/system.windows.window?view=windowsdesktop-8.0) `w` - The Window\n#### Returns\n[String](https://docs.microsoft.com/en-us/dotnet/api/system.string) The window position as a JSON string.\n\n```csharp\npublic static void RestoreWindowPosition(Window w, string wpStr)\n```\nRestores the window position from a JSON string.\n#### Parameters\n[Window](https://learn.microsoft.com/en-us/dotnet/api/system.windows.window?view=windowsdesktop-8.0) `w` - The Window\n`wpStr` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string) JSON string\n\n\n```csharp\npublic static void EnsureIsVisible(Window w)\n```\nEnsure a window is visible on the screen. If it is partially hidden, snap it on screen.\n#### Parameters\n[Window](https://learn.microsoft.com/en-us/dotnet/api/system.windows.window?view=windowsdesktop-8.0) `w` - The Window\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmccuaig%2Fsavewindowpos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmccuaig%2Fsavewindowpos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmccuaig%2Fsavewindowpos/lists"}