EBind.NET
1.0.2
dotnet add package EBind.NET --version 1.0.2
NuGet\Install-Package EBind.NET -Version 1.0.2
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="EBind.NET" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EBind.NET --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EBind.NET, 1.0.2"
#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 EBind.NET as a Cake Addin #addin nuget:?package=EBind.NET&version=1.0.2 // Install EBind.NET as a Cake Tool #tool nuget:?package=EBind.NET&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
A data-binding library that uses collection initializer syntax and linq expression trees to set up bindings in a concise way. EBind interprets expressions to delegates which makes it very fast. It's highly configurable, extensible, and safe for the mono-linker and AOT compilation.
Usage cheatsheet:
var binding = new EBinding
{
() => view.Text == vm.Text,
() => view.Text == vm.Description.Title.Text,
() => view.Text == (vm.Text ?? vm.FallbackText),
() => view.Visible == !vm.TextVisible,
() => view.Visible == (vm.TextVisible == vm.ImageVisible),
() => view.Visible == (vm.TextVisible && vm.ImageVisible),
() => view.Visible == (vm.TextVisible || vm.ImageVisible),
() => view.FullName == $"{vm.FirstName} {vm.LastName}",
() => view.FullName == vm.FirstName + " " + vm.LastName,
() => view.Timestamp == Converter.DateTimeToEpoch(vm.DateTime),
BindFlag.TwoWay,
() => view.Text == vm.Text,
() => view.SliderValueFloat == vm.AgeInt,
BindFlag.OneTime | BindFlag.NoInitialTrigger,
() => view.ShowImage(vm.ImageUri),
() => Dispatcher.RunOnUiThread(() => view.ShowImage(vm.ImageUri)),
BindFlag.OneTime,
(view, nameof(view.Click), vm.OnViewClicked),
(view, nameof(view.TextEditedEventHandler), () => vm.OnViewTextEdited(view.Text)),
(view, "CustomEventForGesture", vm.OnViewClicked),
(view, nameof(view.Click), vm.ViewClickCommand),
(view, nameof(view.Click), () => vm.ViewClickCommand.TryExecute(view.Text)),
new UserExtensions.CustomEBinding(),
};
binding.Dispose();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. monoandroid80 is compatible. monoandroid81 is compatible. monoandroid90 is compatible. monoandroid10.0 is compatible. monoandroid11.0 is compatible. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. xamarinios10 is compatible. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- AgileObjects.ReadableExpressions (>= 2.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
-
MonoAndroid 10.0
- AgileObjects.ReadableExpressions (>= 2.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
-
MonoAndroid 11.0
- AgileObjects.ReadableExpressions (>= 2.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
-
MonoAndroid 8.0
- AgileObjects.ReadableExpressions (>= 2.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
-
MonoAndroid 8.1
- AgileObjects.ReadableExpressions (>= 2.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
-
MonoAndroid 9.0
- AgileObjects.ReadableExpressions (>= 2.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
-
Xamarin.iOS 1.0
- AgileObjects.ReadableExpressions (>= 2.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
* updated AgileObjects.ReadableExpressions to version 2.6.0 with .NET Standard 2.0 support
The library is resolved via Unity NuGet package managers without any conflicts now.