Takoooooo
fe79cee672
Fix Tests.
4 years ago
Luis von der Eltz
25b19931e8
Add timeout to "hang" UT
4 years ago
Luis von der Eltz
e64a4430a0
Apply async hack to make timeout work
4 years ago
Luis von der Eltz
107fc7162e
Fix infinite loop when all items are disabled
4 years ago
Luis von der Eltz
d9ce64e1b0
Skip disabled controls when moving to first/last item
4 years ago
Tako
7c63e1a60b
Fix ContextMenu freeze.
4 years ago
Luis von der Eltz
843676d876
Add UT
4 years ago
Steven Kirk
73ffcf4648
Added failing tests simulating tabstrip/carousel pair.
6 years ago
Steven Kirk
14f314341e
Fix scrolling to selection.
A few `AutoScrollToSelectedItem` improvements:
- Scroll to current selected item when it's set to true
- Scroll to current selected item when list first displayed
- Scroll to current selected item when attached to visual tree if the selection was changed while it wasn't attached
Fixes #4100
6 years ago
Steven Kirk
517a52f988
Failing tests for SelectedItems property changed events.
6 years ago
Steven Kirk
faaa8f28e9
Added failing tests for #4048 .
6 years ago
Steven Kirk
d84a98f65a
Added failing test for #4272 .
6 years ago
Steven Kirk
10b3c88092
Added failing SelectedItem/Index property changed tests.
6 years ago
Steven Kirk
525dbbb2e7
Addeding failing selection tests.
6 years ago
Steven Kirk
a078974eba
Implement changing selection mode.
6 years ago
Steven Kirk
2f7cc3b79d
Fix bad grammar.
6 years ago
Steven Kirk
b2a473d286
More integration of new SelectionModel.
6 years ago
Steven Kirk
a9b04a5c2c
Started integrating new SelectionModel.
6 years ago
Steven Kirk
c2a1427458
Added skipped tests for #4496 .
6 years ago
Steven Kirk
af90219ff4
Reverted SelectionModel.
6 years ago
Steven Kirk
0301d80c30
Added failing test for removing selected item with BeginInit.
6 years ago
Steven Kirk
41831066c2
Revert "Fix selection after deleting an item."
6 years ago
Steven Kirk
6555a51f5a
Fix selection after deleting an item.
`SelectionModel` needs to subscribe to `CollectionChanged` on the items before `ItemsControl` in order for the selection to be correct when we come to setting the selected state.
Because `SelectionModel.Source` isn't subscribed during initialization in `ItemsChanged`, we also need to make sure we don't subscribe `ItemsControl` to the collection changes during initialization. Instead subscribe in `OnInitialized` (this requires a few tests to be rooted in order to be called).
Fixes #4293
6 years ago
Steven Kirk
73a2637eed
Added failing test for removing selected item with BeginInit.
6 years ago
Dan Walmsley
c961df9ee1
fix unit for listbox test.
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
Steven Kirk
6001115573
Use SelectionModel in SelectingItemsControl.
6 years ago
Steven Kirk
886eee831c
Added failing test for #3426 .
6 years ago
Dariusz Komosinski
41ab586d46
Fix unit tests.
6 years ago
Dariusz Komosiński
1e673eca90
Add failing unit test for init issue.
6 years ago
Dariusz Komosinski
c6fceb8454
Verify that removing items raises events as well.
6 years ago
Benedikt Schroeder
e2ff454085
Add failing tests
6 years ago
Steven Kirk
0a8915b1cc
Added failing test for #3148
6 years ago
Andrey Kunchev
389d58f550
issue #3089 add failing tests
7 years ago
Steven Kirk
e1bfdf0324
Added failing test for #3094 .
7 years ago
Steven Kirk
8093716a36
Added tests for selection after initialization.
7 years ago
Benedikt Schroeder
9a6cda66bc
Add failing test for #2987
7 years ago
Steven Kirk
33cf418779
Added failing test for #2969 .
7 years ago
Steven Kirk
6f44dfac5b
Added unit test for #2952 .
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Steven Kirk
94d71fb12f
More work on updating selection...
...when source items change.
7 years ago
Steven Kirk
ca23d03f98
Update SelectedIndex when items removed before selection.
7 years ago
Steven Kirk
f58f8950bd
Added failing test for #2574 .
7 years ago
Steven Kirk
2e9fbe238b
Refactor selection in SelectingItemsControl.
Instead of using `SelectedItems` as the canonical source of selection information, use an internal `Selection` class which keeps track of the selection in terms of item indexes.
Fixes #2004
7 years ago
FoggyFinder
996eda9fb7
set defaultBindingMode as TwoWay for SelectedIndex
7 years ago
Nikita Tsukanov
f556db57b4
Refactor pointer events to support touch events
7 years ago
Steven Kirk
c37f2b2fbc
Added failing test for #2522 .
7 years ago
Steven Kirk
131a4d90ef
Remove Avalonia.ISupportInitialize.
This is a relic from when we were targeting a PCL profile that didn't have `System.ComponentModel.ISupportInitialize`. Now that we have that, use it instead.
7 years ago
Steven Kirk
1df826281b
Added failing test for #1932 .
8 years ago