Steven Kirk
525dbbb2e7
Addeding failing selection tests.
6 years ago
Steven Kirk
4330451d2c
Added tests for CollectionChangedEventManager.
Including a failing test: `Receives_Events_From_Wrapped_Collection`.
6 years ago
Dan Walmsley
5580e0f54b
add failing unit test.
6 years ago
Dan Walmsley
08c451c676
add a failing unit test.
6 years ago
Steven Kirk
a078974eba
Implement changing selection mode.
6 years ago
Steven Kirk
2f7cc3b79d
Fix bad grammar.
6 years ago
Steven Kirk
e4f03fdf79
Fix working with collections of value types.
`IEnumerable<T>` is not covariant for value types, so we need to use the non-generic `IEnumerable` everywhere under the hood to ensure we can work with both value and reference types.
6 years ago
Steven Kirk
9c8376348c
Make remaining tests pass.
6 years ago
Steven Kirk
bfbf58dfd0
Adjust expected output.
6 years ago
Steven Kirk
06390d42ee
Restore selection on reset.
6 years ago
Steven Kirk
923fd361e4
Refactor SelectedItemsSync.
6 years ago
Steven Kirk
55cbf4a8df
Unskip tests we can handle now.
6 years ago
Steven Kirk
0e7f24ff51
Added back removed tests.
6 years ago
Steven Kirk
7d967138af
Add missing word.
6 years ago
Steven Kirk
b499321f68
Don't raise LostSelection when changing source.
6 years ago
Steven Kirk
4c20313b12
Adjust a few expected test results.
6 years ago
Steven Kirk
1120820b7e
Implemented SelectionMode.AlwaysSelected.
6 years ago
Steven Kirk
b2a473d286
More integration of new SelectionModel.
6 years ago
Steven Kirk
a9b04a5c2c
Started integrating new SelectionModel.
6 years ago
Dan Walmsley
ab58492b15
add failing unit test.
6 years ago
Steven Kirk
e62bacab7e
Reimplemented SelectionModel.
Handles only list selections, not nested selections.
6 years ago
Kiminuo
ef12f7c9de
Address feedback.
6 years ago
Steven Kirk
c2a1427458
Added skipped tests for #4496 .
6 years ago
Steven Kirk
95f9a98843
Fixed/skipped failing tests.
6 years ago
Steven Kirk
af90219ff4
Reverted SelectionModel.
6 years ago
Kiminuo
cd180770fb
AppBuilderBase: Allow to specify app factory.
6 years ago
danwalmsley
89bf711602
Lose not Loose!
Co-authored-by: Steven Kirk <grokys@users.noreply.github.com>
6 years ago
Dan Walmsley
c8d26de948
Add failing unit test.
6 years ago
Dan Walmsley
ba11b5d8d0
add failing unit test, for pw reveal getting reset on focus lost.
6 years ago
Steven Kirk
d2af884aed
Added a failing test for #4272 .
6 years ago
Dan Walmsley
037e63d9ab
add unit test for specific scenario where datacontext changes tip before remvoed from visual tree.
6 years ago
Dan Walmsley
493b6ab29e
add failing unit test.
6 years ago
Dan Walmsley
4aa51e80da
fix more tests.
6 years ago
Dan Walmsley
87c326a8fd
fix mocks.
6 years ago
Dan Walmsley
2ad4002686
fix unit tests.
6 years ago
Dan Walmsley
0148106f54
Seperate RenderScaling from DesktopScaling.
6 years ago
Nikita Tsukanov
d355007c57
Extracted runtime XAML loader to a separate package
6 years ago
Andrey Kunchev
c37144b596
add failing unit tests for #4306
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
Dan Walmsley
1c099b6e8c
add failing unit tests for cases.
6 years ago
Dan Walmsley
de87609de1
add failing unit test.
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
a5499a908d
remove usings.
6 years ago
Dan Walmsley
162583b2de
add a failing unit test.
6 years ago
Dan Walmsley
9f6c52711e
add more relativepanel tests.
6 years ago
FoggyFinder
1c8541c060
fix typo & add missing attribute
6 years ago
Steven Kirk
8176ef6648
Added failing test.
Items are being materialized twice when not using virtualization.
6 years ago
Steven Kirk
a8b7e87938
Added IRecyclingDataTemplate.
In #4218 we imported `IElementFactory` from WinUI which is broadly analogous to a recycling datatemplate for lists. In Avalonia this implement `IDataTemplate` in order to have a common base class for all types of data templates.
The problem with this is that `IDataTemplate` already had a `SupportsRecycling` property which is incompatible with the way recycling is implemented in `IElementFactory`. Instead, introduce an `IRecyclingDataTemplate` to signal data templates that support recycling.
6 years ago