Max Katz
6cce833eae
Merge pull request #8115 from Kaktusbot/fix-missing-avalonialist-notifycountchanged
Fix missing NotifyCountChanged in AvaloniaList.AddRange
4 years ago
Max Katz
d2f32101b6
Merge pull request #7786 from timunie/fix/DataGridCopyClearsContent
Fix: DataGrid copying data clears DataGridCells
4 years ago
Benedikt Stebner
4652264bbc
Merge pull request #7430 from AvaloniaUI/avaloniadictionary-remove-fix
Fix AvaloniaDictionary Remove method
4 years ago
Nikita Tsukanov
97f9484fe6
Merge pull request #7301 from AvaloniaUI/feature/register-weak-event
Added reflection-free API for weak events
# Conflicts:
# src/Avalonia.Controls/ApiCompatBaseline.txt
4 years ago
Jumar Macato
cf91a06ce4
Merge pull request #6915 from AvaloniaUI/update/samples-tests-net6
Update samples/tests to net6.0
4 years ago
Steven Kirk
ad2e68f15a
Merge pull request #6507 from Takoooooo/fix-logging-errors
Don't log $parent binding errors when control detached from logical tree
5 years ago
Dan Walmsley
60ab70a9b4
Merge pull request #5852 from AvaloniaUI/fixes/batch-update-default-value
Correctly handle default values in batch update notifications.
5 years ago
Steven Kirk
5bc392ee95
Added more failing tests.
To test completing/disposing bindings during and while ending batch updates.
5 years ago
Steven Kirk
3afa95253f
Allow binding property during ending batch update.
- Allow adding a binding to a cleared property while ending a batch update. Need to check that the existing value isn't a remove sentinel here, otherwise the binding will be lost.
- When a binding is added during the end of a batch update, `_batchUpdate` will be non-null but newly added bindings shouldn't have `BeginBatchUpdate` called on them because no `EndBatchUpdate` will arrive (as we've already called them)
- Add sanity checks to the unit test to make sure that correct notifications are raised
5 years ago
Steven Kirk
03cf2c6f9f
Added another failing batch update test.
And a bit of a sanity check to the previous one.
5 years ago
Steven Kirk
0a41ba08fd
Added failing batch update test.
5 years ago
Max Katz
b240fc7d0c
Add failing and working tests for null DataContext
5 years ago
Dan Walmsley
b735796c64
Rename PropertyMetaData to AvaloniaPropertyMetaData
5 years ago
Dan Walmsley
9eb7a1002f
fix test signing
5 years ago
Steven Kirk
42bab93224
Handle nested batch updates.
5 years ago
Steven Kirk
c4c4cc8bd8
Handle batching binding completion.
5 years ago
Steven Kirk
27df5a2bd9
Fix LocalValue bindings during batch update.
LocalValue bindings are special case due to their interaction with the local value set by a non-binding.
5 years ago
Steven Kirk
e542c5bc89
Removed old code.
5 years ago
Steven Kirk
0f238113f5
Implement batching for AvaloniaObject property values.
Cuts down the amount of notifications raised when controls' stying is attached/detached.
Part of fixing #5027 .
5 years ago
Giuseppe Lippolis
c98918bc2a
Update tests
6 years ago
Dariusz Komosiński
00dbf12cee
Remove not needed code.
6 years ago
Dariusz Komosiński
8555fed86b
Add failing tests for #4733 and fix property accessor.
6 years ago
Kieran Devlin
f3e0863f52
Updated exception type for validation exceptions so that DataValidationErrors can extract the user friendly message.
6 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.
6 years ago
José Pedro
32fe0e60a7
Use typed property changed args instead of changing handler args type.
6 years ago
José Pedro
7782261ec3
Added typed AvaloniaProperty<T>.Changed.
6 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