├── .gitignore
├── BindingSharp.Sample
├── BindingSharp.Sample.csproj
├── Command.cs
├── Program.cs
└── View
│ ├── View.cs
│ ├── View.glade
│ ├── ViewModel.INotifyDataErrorInfo.cs
│ ├── ViewModel.INotifyPropertyChanged.cs
│ └── ViewModel.cs
├── BindingSharp.Test
├── BindingSharp.Test.csproj
├── Core
│ ├── BindToPropertyTest.cs
│ └── IBinderTest.cs
├── Gtk
│ ├── BindStyleContextToNotifyDataErrorInfoTest.cs
│ ├── BindToCommandTest.cs
│ └── WidgetExtensionTest.cs
└── TestData
│ ├── TestButton.cs
│ ├── TestCommand.cs
│ ├── TestView.cs
│ ├── TestViewModel.cs
│ ├── View.cs
│ └── ViewModel.cs
├── BindingSharp
├── BindingSharp.csproj
├── Core
│ ├── BindINotifyPropertyChanged.IDisposable.cs
│ ├── BindINotifyPropertyChanged.cs
│ ├── BindingException.cs
│ └── IBinder.cs
├── Gtk
│ ├── BindButtonToCommand.IDisposable.cs
│ ├── BindButtonToCommand.cs
│ ├── BindStyleContextToNotifyDataErrorInfo.IDisposable.cs
│ ├── BindStyleContextToNotifyDataErrorInfo.cs
│ ├── CommandBindingAttribute.cs
│ ├── PropertyBindingAttribute.cs
│ ├── ValidationBindingAttribute.cs
│ └── WidgetExtension.cs
└── Resources
│ └── invalid.css
├── LICENSE
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | # Build results
2 | [Dd]ebug/
3 | [Rr]elease/
4 | [Bb]in/
5 | [Oo]bj/
6 |
7 | *.nupkg
8 | **/packages/*
9 |
10 | #.vscode/
11 | global.json
12 | coverage.*
--------------------------------------------------------------------------------
/BindingSharp.Sample/BindingSharp.Sample.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WinExe
5 | netcoreapp3.0
6 |
7 |
8 |
9 |
10 |
11 | ../../GtkSharp/BuildOutput/Debug/GtkSharp.dll
12 |
13 |
14 | ../../GtkSharp/BuildOutput/Debug/GLibSharp.dll
15 |
16 |
17 | ../../GtkSharp/BuildOutput/Debug/AtkSharp.dll
18 |
19 |
20 | ../../GtkSharp/BuildOutput/Debug/GioSharp.dll
21 |
22 |
23 | ../../GtkSharp/BuildOutput/Debug/PangoSharp.dll
24 |
25 |
26 | ../../GtkSharp/BuildOutput/Debug/GdkSharp.dll
27 |
28 |
29 | ../../GtkSharp/BuildOutput/Debug/CairoSharp.dll
30 |
31 |
32 |
33 |
34 |
35 |
36 | %(Filename)%(Extension)
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/BindingSharp.Sample/Command.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Input;
3 |
4 | namespace Binding.Samples
5 | {
6 | public class Command : ICommand
7 | {
8 | public event EventHandler CanExecuteChanged;
9 |
10 | private readonly Action