XamlWindowStateHelper 1.0.4
dotnet add package XamlWindowStateHelper --version 1.0.4
NuGet\Install-Package XamlWindowStateHelper -Version 1.0.4
<PackageReference Include="XamlWindowStateHelper" Version="1.0.4" />
paket add XamlWindowStateHelper --version 1.0.4
#r "nuget: XamlWindowStateHelper, 1.0.4"
// Install XamlWindowStateHelper as a Cake Addin #addin nuget:?package=XamlWindowStateHelper&version=1.0.4 // Install XamlWindowStateHelper as a Cake Tool #tool nuget:?package=XamlWindowStateHelper&version=1.0.4
A simple extension for Window object in XAML and WPF projects. 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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.