Unidirectional binding library built on top of Gjallarhorn for WPF, Xamarin Forms and Avalonia.
To install library into the project use following NuGet-packages:
Gjallarhorn.Bindable.Wpf Gjallarhorn.Bindable.Avalonia Gjallarhorn.Bindable.XamarinForms
Gjallarhorn.Bindable provides helper properties in form of:
propertyName + "-Errors"
and
propertyName + "-IsValid"
that can be serve, for example, to show error message separately.
Sample that illustrates applying of those properties in the WPF project is FrameworkSimpleForm
:
Text="{Binding FirstName-Errors[0]}"
Avalonia doesn't allow using dashes in PropertyName, therefore attempt to use these properties in bindings raises exception inside of Avalonia. It might be changed in the next versions but for now it's impossible. See original issue for additional information #2621 - Chars restriction for PropertyPath
UIType.Messages
Currently Avalonia doesn't contain implementation of MessageBox:
To achieve result, similar to one that WPF has, you could create helper window MessageWindow
and show it via Navigation.Page.dialog
.
Also, there are couple implementation:
as separate NuGet-library
or as part of the big project: