PL.Tree.WinForms 1.0.0

dotnet add package PL.Tree.WinForms --version 1.0.0
NuGet\Install-Package PL.Tree.WinForms -Version 1.0.0
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="PL.Tree.WinForms" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PL.Tree.WinForms --version 1.0.0
#r "nuget: PL.Tree.WinForms, 1.0.0"
#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 PL.Tree.WinForms as a Cake Addin
#addin nuget:?package=PL.Tree.WinForms&version=1.0.0

// Install PL.Tree.WinForms as a Cake Tool
#tool nuget:?package=PL.Tree.WinForms&version=1.0.0

PL.Tree.WinForms

PL.Tree binding library for Windows Forms.

Features

  1. Bidirectional binding between nodes and controls.
  2. Binding provides handlers for node and control events.
  3. Node ValueChanged event handler is executed on the thread that owns the control's underlying window handle.
  4. Node ValueChanged can be ignored while control is focused.
  5. Default bidirectional converter between node and control values can be changed.
  6. Bindings class acts as a collection for bindings to simplify actions targeted on all of those bindings and provide generic methods to add specific bindings.

Bindings.Add methods

  1. Node ⟶ Control (custom ValueChanged event handler).
  2. ValueNode<T>.Value ⟶ Control.Text
  3. ValueNode<T>.Value ⟷ TextBoxBase.Text
  4. ValueNode<string>.Value ⟷ ComboBox.Text
  5. ValueNode<T>.Value ⟷ ListControl.SelectedIndex
  6. ValueNode<Enum>.Value ⟷ ComboBox.SelectedIndex
  7. ValueNode<Enum>.Value ⟷ TabControl.SelectedIndex
  8. ValueNode<Enum>.Value ⟷ GroupBox (RadioButtons)
  9. ValueNode<Enum>.Value ⟷ Panel (RadioButtons)
  10. ValueNode<bool>.Value = !Value ⟵ ButtonBase.Click
  11. ValueNode<bool>.Value ⟷ CheckBox
  12. ValueNode<DateTime>.Value ⟷ DateTimePicker
  13. ValueNode<T>.Value ⟷ TrackBar
  14. ValueNode<T>.Value ⟶ ProgressBar
  15. ValueListNode<T> ⟷ DataGridView (with Converter)
  16. ClassListNode<T> ⟷ DataGridView (with List<Converter>)

Example

Examples/WinForms application demonstrates Windows Forms binding functionality.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

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
1.0.0 252 6/28/2022

Initial release