Steven Kirk
5bd0d327fe
Added missing file in .csproj.
10 years ago
Steven Kirk
d27cab10b5
Added more data validation tests, some failing.
10 years ago
Steven Kirk
57e646583f
Only send BindingNotifications on error.
Assume that a normal value when received by a property with data
validation enabled means no error.
10 years ago
Steven Kirk
f720a7d66f
Test that BindingNotificationReceived is called.
For direct properties.
10 years ago
Steven Kirk
92ebb7f6d8
Log meaningful message for AggregateException.
10 years ago
Steven Kirk
74e870333b
Correctly convert BindingNotifications.
In ExpressionSubject.
10 years ago
Steven Kirk
5a9371f786
Pass EnableDataValidation to ExpressionObserver.
10 years ago
Steven Kirk
f4c57b169b
Handle BindingNotifications in ExpressionSubject.
10 years ago
Steven Kirk
06b0d15fc2
Surface BindingNotifications in AvaloniaObject.
10 years ago
Steven Kirk
4fe2a3d86c
Removed vestiges of old data validation.
10 years ago
Steven Kirk
0c2057e458
Fix failing tests, add other tests.
Also use logical parent's DataContext as base for DataContext bindings
instead of visual parent's. Was previously in error.
10 years ago
Steven Kirk
0d4a613580
Updated some docs.
And simplified a bit of failing test code.
10 years ago
Steven Kirk
c5c60c483a
Add concept of "value plugins".
These are used to extensibly handle special values like `Task` and
`IObservable<>`. Previously this was baked into the expression observer
architecture with a TODO comment saying that it needs to be extensible.
10 years ago
Steven Kirk
2f72295657
Started refactor of ExpressionObserver.
Tying to be more "rx", but also will allow us to move forward on BindingNotification changes.
10 years ago
Steven Kirk
4ffae3eb55
Added IndeiBase
And use it as base class for test data that implements
INotifyDataErrorInfo. Removed IndeiValidatorTests as its been
superceeded by IndeiValidationPluginTests.
10 years ago
Steven Kirk
ac427192df
Use NotifyingBase in unit tests.
And rename NotifyingBase.SubscriptionCount ->
PropertyChangedSubscriptionCount as we also track ErrorsChanged
subscription count.
10 years ago
Steven Kirk
4906a472b0
Reimplemented data validation using BindingNotifications.
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
6eaa5b74dc
Test has been refactored into 2 tests.
Removed test that has been refactored into 2 separate tests. Thanks
@donandren for finding those bugs!
10 years ago
Steven Kirk
1c88b3bd85
Fix scrolling to item when size == 0,0
When virtualized presenter size == 0,0 no containers will be
materialized so no container will be found.
Fixes #591 .
10 years ago
Steven Kirk
dd728dae5b
Fix measuring to infinity when scrolled to end.
When a virtualized list was scrolled to the bottom and then the list was
measured with a size larger than needed to fit all items (in this case
we use infinity) then the virtualizer tries to go backwards to add items
at the top of the currently visible items by setting `step = -1`;
however it didn't check whether the current index was < 0.
Fixes #589 .
10 years ago
yusuf-gunaydin
282082a05e
Setter does not build the template if the target property derives from ITemplate.
10 years ago
Steven Kirk
5a42f99025
Added this operator binding test.
10 years ago
Steven Kirk
3ee83263c8
Make indexer produce/consume IBinding.
10 years ago
donandren
cfd6524031
added failing unit test for issue #589 and #591
10 years ago
Wiesław Šoltés
8eebf738f3
Move border object initialization
10 years ago
Wiesław Šoltés
2681340e9c
Added missing NuGet packages to fix TravisCI builds
10 years ago
Wiesław Šoltés
36414687fc
Added missing NuGet packages to fix TravisCI builds
10 years ago
Jeremy Koritzinsky
3c5848bc2c
Updated Rx to 3.0 and fixed a failing test from a not fully set up mock.
10 years ago
Steven Kirk
1824175e6b
Use render bounds in visual hit testing.
It was previously used in input hit testing but not in visual hit
testing.
10 years ago
Steven Kirk
72cb1cf311
Don't reapply templates unnecessarily.
When detaching and re-attaching to the same logical tree.
10 years ago
Steven Kirk
9f009eb4f2
Fixed failing namespace registry test.
10 years ago
donandren
b049a5787f
added failing test for PathMarkupParser
10 years ago
Steven Kirk
c554467d13
Invalidate measure when control removed
When a control's parent changes, invalidate its measure and the measure
of all descendents.
10 years ago
Steven Kirk
5a72ed8586
Don't add virt items when attached to visual tree.
Don't add virtualized items before the virtualizing panel is attached to
the visual tree, as bindings etc won't be set and so measurement will
produce 0,0 causing all items to be materialized.
10 years ago
Wiesław Šoltés
15264a974a
Added initial support for Travis CI
10 years ago
donandren
aba9f1b01e
WIP: added new tests for HitTestPosition in FormattedTextImplTests
10 years ago
donandren
5b0bc5417a
WIP: added some tests for Different Font Sizes in FormattedTextImpl
10 years ago
donandren
5d461bdc74
WIP: added unit tests for right and left align of FormattedTextImpl
10 years ago
donandren
5fbceb065c
WIP: more tests for HitTestTextPosition in FormattedTextImpl
10 years ago
donandren
af07f02ec3
WIP: added hittest range tests for FormattedTextImpl and code to shared project
10 years ago
donandren
a4c978c319
FormattedTextImpl tests for measue and HitTestPoint
10 years ago
donandren
52d1588fc3
added failing test for ClrNamespace leaks in AvaloniaNamespaceRegistry
10 years ago
donandren
e8be30ac47
Added few more failing tests for ContentPresenter for LogicalChildren outside template
10 years ago
Jeremy Koritzinsky
6feb0f7d88
Opacity masks on Skia now work correctly. Implemented via skia layers.
10 years ago
donandren
b5a9f8ae8a
Added failing unit tests for hit testing outside parent bounds when parent has ClipToBounds=true
10 years ago
donandren
fd787ae405
added failing test for ContentPresenter when Content is changed and child is not detached from logical tree
10 years ago
Steven Kirk
dc8d05d0c3
Handle partial last items when items added.
Fixes #565 .
10 years ago
Jeremy Koritzinsky
4d0605dbb1
Added in code that somewhat works for Skia opacity masks. Test is still skipped because it doesn't fully work yet.
10 years ago
Steven Kirk
04c48bbd54
Make adding items work.
When virtualizing panel is not yet full.
10 years ago