PowWinForms 0.0.35
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package PowWinForms --version 0.0.35
NuGet\Install-Package PowWinForms -Version 0.0.35
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PowWinForms" Version="0.0.35" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PowWinForms --version 0.0.35
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PowWinForms, 0.0.35"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PowWinForms as a Cake Addin #addin nuget:?package=PowWinForms&version=0.0.35 // Install PowWinForms as a Cake Tool #tool nuget:?package=PowWinForms&version=0.0.35
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PowWinForms
Table of content
Features
- Persist windows position and other objects (https://github.com/anakic/Jot)
- Binds controls to reactive variables (https://github.com/vlad2048/PowRxVar)
- Ability to edit trees (https://github.com/vlad2048/PowTrees & ObjectListView)
Usage
Use RX for a control/form
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);
});
}
}
Persist windows
// Add a call to Track() when creating a window
var win = new MainWindow().Track();
Persist custom objects
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();
Create reactive variables
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
});
}
}
License
MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0-windows7.0 is compatible. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0-windows7.0
- DynamicData (>= 7.14.2)
- Jot (>= 2.1.16)
- PowBasics (>= 0.0.15)
- PowObjectListView (>= 0.0.4)
- PowRxVar.Maybe (>= 0.0.40)
- PowTrees (>= 0.0.26)
- ReactiveUI.Events.Winforms (>= 15.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.66 | 506 | 9/15/2023 |
0.0.65 | 507 | 8/23/2023 |
0.0.64 | 495 | 8/22/2023 |
0.0.63 | 520 | 8/19/2023 |
0.0.62 | 570 | 8/9/2023 |
0.0.61 | 576 | 8/5/2023 |
0.0.60 | 571 | 7/30/2023 |
0.0.59 | 578 | 7/18/2023 |
0.0.58 | 589 | 7/15/2023 |
0.0.57 | 582 | 7/15/2023 |
0.0.56 | 562 | 7/12/2023 |
0.0.55 | 599 | 7/12/2023 |
0.0.54 | 579 | 7/11/2023 |
0.0.53 | 577 | 7/10/2023 |
0.0.52 | 584 | 7/10/2023 |
0.0.51 | 599 | 7/9/2023 |
0.0.50 | 592 | 7/9/2023 |
0.0.49 | 592 | 7/9/2023 |
0.0.48 | 570 | 7/9/2023 |
0.0.47 | 570 | 7/8/2023 |
0.0.46 | 612 | 7/5/2023 |
0.0.45 | 599 | 7/5/2023 |
0.0.44 | 569 | 7/4/2023 |
0.0.43 | 587 | 7/2/2023 |
0.0.42 | 594 | 7/2/2023 |
0.0.41 | 590 | 6/23/2023 |
0.0.40 | 597 | 6/23/2023 |
0.0.39 | 566 | 6/23/2023 |
0.0.38 | 570 | 6/21/2023 |
0.0.37 | 545 | 6/21/2023 |
0.0.36 | 560 | 6/21/2023 |
0.0.35 | 578 | 6/20/2023 |
0.0.34 | 549 | 6/20/2023 |
0.0.33 | 563 | 6/20/2023 |
0.0.32 | 561 | 6/19/2023 |
0.0.31 | 558 | 6/17/2023 |
0.0.30 | 572 | 6/17/2023 |
0.0.29 | 593 | 6/17/2023 |
0.0.28 | 575 | 6/17/2023 |
0.0.27 | 559 | 6/17/2023 |
0.0.26 | 571 | 6/17/2023 |
0.0.25 | 555 | 6/17/2023 |
0.0.24 | 577 | 6/17/2023 |
0.0.23 | 574 | 6/16/2023 |
0.0.22 | 600 | 6/16/2023 |
0.0.21 | 580 | 6/15/2023 |
0.0.20 | 608 | 6/15/2023 |
0.0.19 | 587 | 6/15/2023 |
0.0.18 | 567 | 6/14/2023 |
0.0.17 | 587 | 6/13/2023 |
0.0.16 | 580 | 6/12/2023 |
0.0.14 | 575 | 6/5/2023 |
0.0.12 | 580 | 6/3/2023 |
0.0.11 | 592 | 6/3/2023 |
0.0.10 | 568 | 6/3/2023 |
0.0.9 | 557 | 6/3/2023 |
0.0.8 | 568 | 6/3/2023 |
0.0.7 | 587 | 6/2/2023 |
0.0.6 | 582 | 6/2/2023 |
0.0.5 | 570 | 6/1/2023 |
0.0.4 | 585 | 6/1/2023 |
0.0.3 | 556 | 6/1/2023 |
0.0.2 | 574 | 5/31/2023 |
0.0.1 | 559 | 5/31/2023 |