{"id":24456233,"url":"https://github.com/danielchalmers/wpfwindowplacement","last_synced_at":"2025-12-28T20:56:53.376Z","repository":{"id":94465887,"uuid":"103859755","full_name":"danielchalmers/WpfWindowPlacement","owner":"danielchalmers","description":"Win32 WindowPlacement helpers for WPF","archived":false,"fork":false,"pushed_at":"2023-12-02T19:05:56.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T03:33:28.048Z","etag":null,"topics":["attached-properties","helpers","win32","windowplacement","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielchalmers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-09-17T20:31:58.000Z","updated_at":"2022-12-11T16:23:10.000Z","dependencies_parsed_at":"2023-11-24T02:43:15.651Z","dependency_job_id":"9e2a6a00-7601-48ff-a251-ebdaa69ad9c8","html_url":"https://github.com/danielchalmers/WpfWindowPlacement","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielchalmers%2FWpfWindowPlacement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielchalmers%2FWpfWindowPlacement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielchalmers%2FWpfWindowPlacement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielchalmers%2FWpfWindowPlacement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielchalmers","download_url":"https://codeload.github.com/danielchalmers/WpfWindowPlacement/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544665,"owners_count":20308168,"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":["attached-properties","helpers","win32","windowplacement","wpf"],"created_at":"2025-01-21T02:15:59.578Z","updated_at":"2025-12-28T20:56:53.332Z","avatar_url":"https://github.com/danielchalmers.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WpfWindowPlacement [![NuGet](https://img.shields.io/nuget/v/WpfWindowPlacement.svg)](https://www.nuget.org/packages/WpfWindowPlacement)\n\n[WINDOWPLACEMENT](https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-windowplacement) helpers for WPF.\n\n## Example\n\nDefine a [`WindowPlacement`](WpfWindowPlacement/WindowPlacement.cs) property.\n\n```csharp\nusing WpfWindowPlacement;\nWindowPlacement MyPlacement { get; set; }\n```\n\nNow use it in the XAML attached property or code-behind functions.\n\n### XAML\n\n```xaml\nxmlns:wp=\"clr-namespace:WpfWindowPlacement;assembly=WpfWindowPlacement\"\n\n\u003c!-- Update size, position, and state on SourceInitialized and Closing --\u003e\nwp:WindowPlacementProperties.Placement=\"{Binding MyPlacement}\"\n```\n\n### Code-behind\n\n```csharp\nusing WpfWindowPlacement;\n\n// Get window size, position, and state, and assign to MyPlacement.\nMyPlacement = WindowPlacementFunctions.GetPlacement(this);\n\n// Set window size, position, and state to the value of MyPlacement.\nWindowPlacementFunctions.SetPlacement(this, MyPlacement);\n```\n\n## License\n\n[MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielchalmers%2Fwpfwindowplacement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielchalmers%2Fwpfwindowplacement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielchalmers%2Fwpfwindowplacement/lists"}