![]() |
VOOZH | about |
dotnet add package PowWinForms --version 0.0.66
NuGet\Install-Package PowWinForms -Version 0.0.66
<PackageReference Include="PowWinForms" Version="0.0.66" />
<PackageVersion Include="PowWinForms" Version="0.0.66" />Directory.Packages.props
<PackageReference Include="PowWinForms" />Project file
paket add PowWinForms --version 0.0.66
#r "nuget: PowWinForms, 0.0.66"
#:package PowWinForms@0.0.66
#addin nuget:?package=PowWinForms&version=0.0.66Install as a Cake Addin
#tool nuget:?package=PowWinForms&version=0.0.66Install as a Cake Tool
This ties the reactive logic to the lifetime of the control (using the HandleCreated / HandleDestroyed events)
partial class MainWindow : Form
{
public MainWindow()
{
InitializeComponent();
this.InitRX(d =>
{
MyLogic.Init(this).D(d);
});
}
}
// Add a call to Track() when creating a window
var win = new MainWindow().Track();
class UserPrefs
{
public string? LastFolder { get; set; }
public void Save() => Saving?.Invoke(null, EventArgs.Empty);
public event EventHandler? Saving;
static UserPrefs()
{
WinFormsUtils.Tracker.Configure<UserPrefs>()
.Properties(e => new
{
e.LastFolder
})
.PersistOn(nameof(UserPrefs.Saving));
}
}
Usage:
var userPrefs = new UserPrefs().Track();
// ...
userPrefs.Save();
public partial class MainWin : Form
{
public MainWin()
{
InitializeComponent();
// Create a disposable tied to the lifetime of this form
var d = this.MakeD();
this.Events().HandleCreated.Subscribe(_ =>
{
// Create and bind reactive variables and use d to destroy them when the form is closed
var name = Var.Make("name").D(d);
// bind name
});
}
}
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0-windows7.0 net7.0-windows7.0 is compatible. net8.0-windows net8.0-windows was computed. net9.0-windows net9.0-windows was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.66 | 692 | 9/15/2023 |
| 0.0.65 | 652 | 8/23/2023 |
| 0.0.64 | 634 | 8/22/2023 |
| 0.0.63 | 666 | 8/19/2023 |
| 0.0.62 | 714 | 8/9/2023 |
| 0.0.61 | 716 | 8/5/2023 |
| 0.0.60 | 734 | 7/30/2023 |
| 0.0.59 | 723 | 7/18/2023 |
| 0.0.58 | 757 | 7/15/2023 |
| 0.0.57 | 744 | 7/15/2023 |
| 0.0.56 | 694 | 7/12/2023 |
| 0.0.55 | 763 | 7/12/2023 |
| 0.0.54 | 737 | 7/11/2023 |
| 0.0.53 | 707 | 7/10/2023 |
| 0.0.52 | 718 | 7/10/2023 |
| 0.0.51 | 775 | 7/9/2023 |
| 0.0.50 | 780 | 7/9/2023 |
| 0.0.49 | 725 | 7/9/2023 |
| 0.0.48 | 728 | 7/9/2023 |
| 0.0.47 | 719 | 7/8/2023 |