Benedikt Stebner
07c11c75e7
Use IGlyphRunImpl in the IDrawingContextImpl
3 years ago
Emmanuel Hansen
f61c7f6cd9
Revert "fix tests"
This reverts commit 584e18f78d29480890711b1149d946f61e0d8447.
3 years ago
Emmanuel Hansen
c804fa00cf
fix tests
3 years ago
Steven Kirk
17f7541fdd
Fix selection in combination with move.
3 years ago
Steven Kirk
fab8f15213
Make a few more tests pass.
3 years ago
Steven Kirk
5d1f9f4a0f
Removed VirtualizationMode.
If you want a different virtualization mode, use a different panel.
3 years ago
Steven Kirk
692c0c155d
Begin refactoring ItemsPresenter.
A lot still broken, in particular virtualization is completely removed.`ItemsPresenter` now no longer has an `Items` or `ItemTemplate` property; it detects when it's hosted in an `ItemsControl`. `IItemsPresenter` interface removed.
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
Steven Kirk
1a338ac087
Remove IStyler and make style apply internal.
- Removes the `IStyler` service and the `Styler` implementation
- Moves the logic for applying styles and control themes into `StyledElement`
- Removes the style `TryAttach` method from the public API
- Removes style caching for now - this will need to be added back
3 years ago
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
7 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