Dan Walmsley
b735796c64
Rename PropertyMetaData to AvaloniaPropertyMetaData
5 years ago
Dan Walmsley
9eb7a1002f
fix test signing
5 years ago
Giuseppe Lippolis
c98918bc2a
Update tests
5 years ago
Dariusz Komosiński
00dbf12cee
Remove not needed code.
5 years ago
Dariusz Komosiński
8555fed86b
Add failing tests for #4733 and fix property accessor.
5 years ago
Kieran Devlin
f3e0863f52
Updated exception type for validation exceptions so that DataValidationErrors can extract the user friendly message.
5 years ago
Steven Kirk
3f47f6dba3
Added failing test for AvaloniaList.CopyTo.
`Can_CopyTo_Array_Of_Same_Type` passes but `Can_CopyTo_Array_Of_Base_Type` fails.
5 years ago
José Pedro
32fe0e60a7
Use typed property changed args instead of changing handler args type.
5 years ago
José Pedro
7782261ec3
Added typed AvaloniaProperty<T>.Changed.
5 years ago
Steven Kirk
37bd384794
Use EnabledDataValidation from metadata.
`DirectProperty` stored a `EnabledDataValidation` flag in its metadata but also had an `IsDataValidationEnabled` property in `DirectPropertyBase` which was the one used by `AvaloniaObject`. Use the version from metadata so that it can be overridden and remove the flag from `DirectPropertyBase`.
6 years ago
Steven Kirk
d5716fce8f
Added failing data validation test.
6 years ago
Steven Kirk
7519f85706
Added property metadata tests.
6 years ago
Steven Kirk
09b042683a
Move some tests.
Tests for `AvaloniaObject.IsSet` were in the `Metadata` test class, though `IsSet` has nothing to do with metadata. Moved them into `SetValue` which is more relevant.
6 years ago
Dariusz Komosinski
178a1aeb19
Add failing unit test.
6 years ago
Rustam Sayfutdinov
8414ace5cf
Remove duplicate code for RoundLayoutValue
6 years ago
Rustam Sayfutdinov
5a65aa09f8
Add some tests for double case MathUtilities
6 years ago
Rustam Sayfutdinov
725081e187
Fix to not ~0 in test
6 years ago
Rustam Sayfutdinov
3307fd577b
Replace check AreClose(x, 1) by IsOne in RoundLayoutValue
6 years ago
Rustam Sayfutdinov
c4668f5ef3
Add tests for float math utils
6 years ago
Rustam Sayfutdinov
1ce6df7186
Remove duplicate code for MathUtilities
6 years ago
Rustam Sayfutdinov
c73e777ed2
Return hack with double.Epsilon
6 years ago
Rustam Sayfutdinov
006186b981
Fix machine epsilon for double
6 years ago
Dariusz Komosinski
3b7d8574e8
Try matching for INPC before matching methods.
6 years ago
Markus
25f57600c1
Added failing tests
6 years ago
Steven Kirk
c872cc005d
Only call property notify on effective value change.
6 years ago
Steven Kirk
4a752c3f48
Get non-animated change information.
- Pass information for all property changes to `OnPropertyChangedCore`; whether they result in an effective value change or not
- Added `GetBaseValue` to get a value with a specified priority
- Change the signature of `OnPropertyChanged` again to take an `AvaloniaPropertyChangedEventArgs<T>`
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Andrey Kunchev
3dc5b8bda1
add failing test for the core reason of the issue #3692
6 years ago
Andrey Kunchev
ec92b90e81
add a test for multibinding with StringFormat
6 years ago
Andrey Kunchev
50deb04e7a
add failing unit test for #3692
6 years ago
Andrey Kunchev
613ba3ffd2
add another test for multibinding
6 years ago
Andrey Kunchev
7f0c502c29
add simple unit test for multibinding
6 years ago
Steven Kirk
30e8cac05d
Update to .NET core 3.1.
6 years ago
Steven Kirk
b82ca9aca9
Add an AvaloniaProperty visitor.
We already have some specific internal methods for routing certain methods via an untyped property to a typed property, but adding support for the visitor pattern allows us to support arbitrary use-cases.
6 years ago
Steven Kirk
2e99fa9a91
Make setting styled values disposable.
6 years ago
Steven Kirk
8b03d32128
Added failing test for #3584 .
6 years ago
Steven Kirk
f79b58cc55
Added failing test possibly for #3466 .
Not sure if this is the cause of #3466 , but it's definitely wrong.
6 years ago
Steven Kirk
11a8c01ef1
Added failing tests for #3545 .
`PropertyChanged` is not being fired when binding is disposed. Also change some other unit tests to ensure that priority passed in event args is correct.
6 years ago
Steven Kirk
3bc1594dca
Revert "Removed unused field."
This reverts commit 270f9718b8 .
6 years ago
Steven Kirk
89ba4a6327
Prevent tests interfering with other tests.
6 years ago
Steven Kirk
7f26635efa
Wire up validation/coercion for attached properties.
6 years ago
Steven Kirk
270f9718b8
Removed unused field.
6 years ago
Steven Kirk
35bd69f23c
Remove AvaloniaProperty.Initialized.
It was only needed for pseudoclasses. Move pseudoclass registration to an engine that doesn't require `AvaloniaProperty.Initialized`, implemented in `PseudoclassEngine`.
6 years ago
Steven Kirk
0f04f4d01a
Add WPF-style property coercion.
6 years ago
Steven Kirk
aa81db75a0
Added WPF-style validation for AvaloniaProperty.
6 years ago
Steven Kirk
d5dc470416
Fixed issue with LocalValue and bindings.
6 years ago
José Pedro
1ba4c68a35
Implemented TargetNullValue for bindings.
6 years ago
Steven Kirk
b8717bf6dc
Tidy up API.
6 years ago
Steven Kirk
0cfa15913d
Remove ignored validate parameter.
6 years ago
Steven Kirk
6be3acb46c
Make ValueStore typed.
Major refactor of the Avalonia core to make the styled property store typed.
6 years ago