Steven Kirk
13642613cf
Added failing test.
10 years ago
Steven Kirk
4c000b9ce4
Fixed ScrollContentPresenter.
Did not react correctly to child changing.
10 years ago
Steven Kirk
5467841e3e
Fixed unit test name.
10 years ago
Steven Kirk
32760bbc08
Fix changing virtualization mode in theory.
That is; tests pass. In practise in the virtualization test app it still
doesn't quite work.
10 years ago
Steven Kirk
7e4f667d89
Fix PixelOverflow during arrange.
10 years ago
Steven Kirk
ae2ea31c6e
Allow changing virtualization mode in test app.
Not yet working correctly.
10 years ago
Steven Kirk
e8dd81fa20
Support horiz keyboard movement.
10 years ago
Steven Kirk
cba5200645
Fix keyboard nav with partially visible items.
10 years ago
Steven Kirk
81b66596c0
Use a full item's offset for overflow.
10 years ago
Steven Kirk
7a718ef9c2
Updated overflow algorithm.
10 years ago
Steven Kirk
acdf599dec
Initial impl. of scrolling with arrow keys.
- Currently only vertical implemented
- Doesn't handle partially visible items at end of list
10 years ago
Steven Kirk
f660da41c7
Fix virtualized list to taking up available space.
Previous commit was slightly wrong: too many controls were being created
for the list in VirtualizingTest.
10 years ago
Steven Kirk
71b3343097
Allow virtualized list to take up available space.
10 years ago
Steven Kirk
f3c7ea27a1
Set ContentPresenter.DataContext in UpdateChild.
Thus delaying any changes that changing the data context would make
until we know we have the correct child.
10 years ago
Steven Kirk
05f836c4c3
Added Move and MoveRange to AvaloniaList.
Also added test for replace operation.
10 years ago
Steven Kirk
d717b46112
Fixed DevTools.
- Set `InheritanceParent` before Parent so that control doesn't
initially inherit the wrong DataContext
- Don't set `InheritanceParent` when setting `Parent` if
`InheritanceParent` already set
- Added `IDataTemplate.SupportsRecycling`
10 years ago
Steven Kirk
35c4835ae4
Recycle DataTemplates.
If a `ContentPresenter`s content is assigned a value which matches the
current `DataTemplate` then just change the
`ContentPresenter.DataContext` and the existing item will update itself.
10 years ago
Steven Kirk
89ca4857f0
Tweaked a couple of tests.
10 years ago
Steven Kirk
fbb7ea759b
Make ItemContainerGenerator create containers
Make the untyped ItemContainerGenerator create `ContentPresenter`
containers when the data isn't a control. This is required for correct
binding to `DataContext` in a data template.
10 years ago
Steven Kirk
e686786959
Use dictionary to track item containers.
Because even when virtualized we were still creating a list the size of
the Items collection to store the containers. Using Dictionary here
still isn't ideal - we'd ideally use some sort of sparse array but that
can be optimized later.
10 years ago
Steven Kirk
6e73244a1e
Handle move and replace in virtualized lists.
10 years ago
Steven Kirk
7ca7f53537
More work on items removed.
10 years ago
Steven Kirk
72ea9f02c7
More work on virtualization with INCC.
Got removes working a bit better.
10 years ago
Dan Walmsley
1417aab362
added some more test cases for simple virtualization.
10 years ago
danwalmsley
e2fe94cafb
Added test for removing last item in the list, when scrolled to end.
10 years ago
Steven Kirk
3e8a8c6d7c
WIP: INCC virtualization support.
10 years ago
Steven Kirk
722a329106
Add containers at beginning when scrolled to end.
10 years ago
Steven Kirk
6df5ff4917
Split virtualization tests in two
One for base virtualization tests and one for simple mode tests.
10 years ago
Steven Kirk
7f09154020
Correctly handle partially obscured items.
And move logical for selecting horizontal/vertical components of
extent/offset/viewport into `ItemVirtualizer` base class.
10 years ago
Steven Kirk
749c32ace6
Added failing partial item tests.
10 years ago
Steven Kirk
2d4151ddfe
Update containers when Items changes.
10 years ago
Steven Kirk
55f05defd1
Make scrolling up >= 1 page work
10 years ago
Steven Kirk
2c8d8179e5
Fix virtualized item selection.
So that recycled items' selection state is set correctly.
10 years ago
Steven Kirk
2d5a41a729
Update ListBoxTests
Now ListBox is virtualized it needs more setup for unit testing.
10 years ago
Steven Kirk
cfdfa9400e
Simplify ListBox unit test template creation.
10 years ago
Steven Kirk
b44589e0cb
Renamed IScrollable -> ILogicalScrollable
We're going to need IScrollable as an interface to ScrollViewer-type
controls.
10 years ago
Steven Kirk
03c138ff90
Delegate ScrollIntoView to ItemVirtualizer.
This doesn't make sense for ItemVirtualizationMode.Simple so we do
nothing here.
10 years ago
Steven Kirk
fa3550882a
Handle scrolling >1 page.
10 years ago
Steven Kirk
1d83126d20
More WIP on virtualization.
Kinda nearly working in the test app.
10 years ago
Steven Kirk
1c7a99dc5e
WIP Trying to get virt scrolling working.
10 years ago
Steven Kirk
91e2f2a0ca
Refactored virtualization handling into classes
Also take into account the scroll direction of the panel.
10 years ago
Steven Kirk
38afaf1aca
More WIP on adding virtualization to ItemsPresenter.
10 years ago
Steven Kirk
f9b3d2ac03
WIP: Adding virtualization to ItemsPresenter.
10 years ago
Steven Kirk
7db353e742
Added IScrollable.IsLogicalScrollEnabled.
10 years ago
Steven Kirk
ec35cdde79
Fixed TextBlock text wrapping.
And added render test (so far only to D2D backend)
10 years ago
Steven Kirk
57a0122549
Make ItemTemplate work for TreeView.
10 years ago
Steven Kirk
5cd9b98057
Added ItemsControl.ItemTemplate property.
10 years ago
Steven Kirk
0e8995e303
Added ContentControl.ContentTemplate.
10 years ago
Steven Kirk
710de1f85a
Fix an edge case in visual parenting.
If a child that already has a parent was added as a visual child of
another control and the exception caught, the control would still be
present in the VisualChildren collection.
10 years ago
donandren
4c0a026949
MemberSelector UnitTests
10 years ago