Steven Kirk
209713e820
Moved tests to correct place.
@donandren correctly identified a problem with the `ItemsPresenter` but
he put the tests in the `ListBox` tests. Moved them to the correct
place. Also tweak formatting in `ItemContainerGenerator.InsertSpace`.
10 years ago
donandren
a3552bc20a
added another failing unit test for Listbox items not in sync with the bound collection
10 years ago
donandren
f764d46674
added failing unit test for issue #637 : ListBox not in sync with items after inserted/removed from items
10 years ago
Wiesław Šoltés
7282744b70
Removed outdated binding redirects and app.config
10 years ago
Steven Kirk
0bf9404e00
Deafult ItemsPresenter virtualization to None
And override it in ListBox. This prevents ItemsPresenter thinking it's virtualized in a TreeView. Fixes #610 .
10 years ago
Steven Kirk
6b80d51fe6
Fix TransformedBounds for invisible controls.
Previously the BoundsTracker.TransformedBounds attached property wasn't
being cleared for controls that were invisible, resulting in incorrect
hit testing in certain situations (the newly added TreeView page in
ControlCatalog demonstrated the behavior when fully expanding the first
node and its children).
10 years ago
Steven Kirk
b74c0d316b
Fix off-by-one error in ItemContainerGenerator
Fixes #604 .
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
Jeremy Koritzinsky
7bbcd90e7f
Fixed designer support tests to be able to load assets. Fixed Cairo bitmaps to correctly construct with new design.
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
Steven Kirk
7010272985
Reset first/next indexes on items nulled.
Fixes #563 .
10 years ago
Steven Kirk
63c2cd41fd
Add containers on Items reset.
If new items have been added on Reset and the panel was not previously
full, then create containers for the new items. Fixes #561 .
10 years ago
Steven Kirk
e142bc10fb
Don't build mobile stuff in NCrunch.
10 years ago
Steven Kirk
2268227f20
Make template instantiated by style a name scope.
To do this had to move the name scope stuff into Avalonia.Styling.
10 years ago
Steven Kirk
d772017768
Added <Template>
The new <Template> is a template that can be used as a setter value,
meaning that the setter will materialize the template each time it sets
the value. Make assigning a control to `Setter.Value` throw an error
indicating that the control should be wrapped in a template.
10 years ago
Steven Kirk
259144838c
Set item container properties with Style priority.
So that they can be overridden by styles.
10 years ago
Steven Kirk
7b3e25949e
Revert "Revert "Set ContentPresenter.DataContext in UpdateChild.""
This reverts commit bf02ae41a9 .
10 years ago
Steven Kirk
0b28e10f21
Make broken DataContext bindings produce null.
This prevents incorrect DataContexts cascading down to children when the
DataContext binding is invalid, e.g. when things are being set up.
10 years ago
Steven Kirk
7018b3c36d
Removed test.
Decided that we shouldn't do this.
10 years ago
Steven Kirk
bf02ae41a9
Revert "Set ContentPresenter.DataContext in UpdateChild."
This reverts commit f3c7ea27a1 .
10 years ago