Info
Version: | 1.0.4 |
Author(s): | VivendoByte .net |
Last Update: | Wednesday, October 8, 2014 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://nuget.org/packages/WindowStateHelper.Packager |
NuGet Url: | https://www.nuget.org/packages/XamlWindowStateHelper |
Install
Install-Package XamlWindowStateHelper
dotnet add package XamlWindowStateHelper
paket add XamlWindowStateHelper
XamlWindowStateHelper Download (Unzip the "nupkg" after downloading)
It save and restore position and size of any Window used into your WPF application.
The usage is very simple:
<Window xmlns:wsh="clr-namespace:WindowStateHelper" wsh:WindowStateHelper.Active="true" />
Declare the namespace for the extension and set Active property to "true" value as shown above. Since this moment, the extension takes care of saving the state when the window is closed, and restoring the state when the window is re-opened.
This extension saves the state information in a file contained into the current directory of your application.
The name of the file is:
<application_name>-<window_name>.txt.