Steven Kirk
e58b4d5152
Don't dispose completed binding.
8 years ago
Steven Kirk
f2f96e2f46
Don't dispose completed binding.
8 years ago
Miha Markič
eb93c9f4a7
Spellchecks comments and code in Avalonia.Base
8 years ago
Steven Kirk
a46be4e200
Ensure correct thread for AvaloniaProperty access.
Previously we ensured that `AvaloniaObject.SetValue` was run on the main
thread. This makes sure that `GetValue`, `IsSet` and `ClearValue` are
also run on the main thread. Unit testing this turned out to be more
complicated than expected, because `Dispatcher` keeps a hold of a
reference to the first `IPlatformThreadingInterface` it sees, so made
`UnitTestApplication` able to notify `Dispatcher` that it should update
its services.
9 years ago
Steven Kirk
4fe2a3d86c
Removed vestiges of old data validation.
10 years ago
Steven Kirk
abdbcac79d
Added BindingNotification.
This will replace BindingError and IValidationStatus for bindings that want to notify binding/validation errors. Still WIP.
10 years ago
Steven Kirk
5c33fbc6ee
Reimplemented property validation.
As far as it was in `property-validation-grokys` branch. Things were
messed up on master so had to merge this manually so may be problems.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Jeremy Koritzinsky
da5fd06fcd
Moved validation filtering into ExpressionObserver and out of InstancedBinding, PerspexObject, and the Priority* system. Renamed some methods in this system to be more descriptive.
10 years ago
Jeremy Koritzinsky
774c6e6fa4
Made validation enable-able during binding construction, similar to WPF. Now validation events are only raised when the validation type is enabled on the property.
10 years ago
Jeremy Koritzinsky
ee486113e5
Finished wiring up validation support. Now exceptions and INotifyDataErrorInfo implementers will set controls into their ":invalid" pseudo-class state.
10 years ago
Steven Kirk
4f7e7cad1b
Make PriorityBindingEntry have ref to owner.
10 years ago
Steven Kirk
7b371f8d2d
Give PriorityLevel a reference to its PriorityValue.
And directly call the LevelValueChanged method on it rather than using callbacks.
10 years ago
Steven Kirk
87fa632707
Removed LevelPrecedenceMode.
You should use direct properties if you want Latest mode.
10 years ago
Steven Kirk
3bb9fe0b58
Added BindingError class.
10 years ago
Steven Kirk
20cb202232
Fix bindings not being unsubscribed on Dispose.
10 years ago
Nikita Tsukanov
3cd3579475
"field can be readonly"
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago
Steven Kirk
254eaac9fa
Stylecop fixes.
11 years ago
Steven Kirk
df77302d94
Another tweak to the binding system.
Binding levels with a an even number priority use the last fired binding
for the current value, those with odd number priorities use the latest
added.
11 years ago
Steven Kirk
7de4bf836e
Documented newly added classes.
11 years ago
Steven Kirk
aef34f810d
Stylecop fixes.
11 years ago
Steven Kirk
a4c88ca764
Reworked bindings.
Now, two way bindings work as expected and setting a local value on a
property with a binding sets the value temporarily until the binding
changes value.
11 years ago