Steven Kirk
f29a474a16
Merge branch 'feature/selectionmodel-reset-handling' into feature/selectionmodel-autoselect
7 years ago
Steven Kirk
a705f2b4a3
Merge branch 'feature/selectionmodel-changed-notifications' into feature/selectionmodel-reset-handling
7 years ago
Steven Kirk
e3d11a8288
Fix clearing nested selection not raising SelectionChanged.
7 years ago
Steven Kirk
520dc16c2a
Added failing test.
Clearing a nested selection doesn't raise `SelectionChanged`.
7 years ago
Steven Kirk
8a1e684bbf
Merge branch 'feature/selectionmodel-reset-handling' into feature/selectionmodel-autoselect
7 years ago
Steven Kirk
79b13b1d4f
Merge branch 'feature/selectionmodel-changed-notifications' into feature/selectionmodel-reset-handling
7 years ago
Steven Kirk
6dadd96b7b
Added ISelectionModel.Update().
7 years ago
Steven Kirk
426c670882
Added AutoSelect to ISelectionModel.
7 years ago
Steven Kirk
fd31157fcb
Merge branch 'feature/selectionmodel-reset-handling' into feature/selectionmodel-autoselect
7 years ago
Steven Kirk
f416454b5a
Merge branch 'feature/selectionmodel-changed-notifications' into feature/selectionmodel-reset-handling
7 years ago
Steven Kirk
7829e0cdab
Merge branch 'feature/selectionmodel' into feature/selectionmodel-changed-notifications
7 years ago
Steven Kirk
c8f0bec40d
Added ISelectionModel.
7 years ago
Steven Kirk
565de5b2e7
Merge branch 'feature/selectionmodel-reset-handling' into feature/selectionmodel-autoselect
7 years ago
Steven Kirk
d3888e7e99
Merge branch 'feature/selectionmodel-changed-notifications' into feature/selectionmodel-reset-handling
7 years ago
Steven Kirk
44cf7f24db
Expose API for batch updates.
7 years ago
Steven Kirk
0a608d47dc
Added SelectionMode.AutoSelect.
7 years ago
Steven Kirk
ee459635a8
Handle RetainSelectionOnReset w/ null source.
7 years ago
Steven Kirk
4dd0ec6e4e
Fix bad merge.
7 years ago
Steven Kirk
c0f34694a6
Fixed out of bounds in SelectionNode.
7 years ago
Steven Kirk
031ece5122
Merge branch 'feature/selectionmodel-changed-notifications' into feature/selectionmodel-reset-handling
7 years ago
Steven Kirk
a5890bda3f
Merge branch 'feature/selectionmodel' into feature/selectionmodel-changed-notifications
7 years ago
Steven Kirk
4de9fac5c1
Don't reset selection if source hasn't changed.
Also remove some `?.` operators that aren't needed.
7 years ago
Steven Kirk
ca324775e3
Merge branch 'feature/selectionmodel-changed-notifications' into feature/selectionmodel-reset-handling
7 years ago
Steven Kirk
04f8516c32
Handle null SelectionModel.Source.
7 years ago
Steven Kirk
01a1945201
Add nullable annotations.
7 years ago
Steven Kirk
9073234f72
Use SelectedItems for change event args.
7 years ago
Steven Kirk
b120e5282e
Lazily create the selected/deselected lists.
7 years ago
Steven Kirk
859aba1043
Refactor of SelectionModel change notifications.
To address issues found.
7 years ago
Steven Kirk
e2132fedf9
Added some failing tests.
That demonstrate some problems with the `SelectionModel` change notifications found so far.
7 years ago
Steven Kirk
7548dc9c2e
Added SelectionModel changed args.
`SelectionModel` as ported from WinUI has no information about what changed in a `SelectionChanged` event. This adds that information along with unit tests.
7 years ago
Steven Kirk
bc4eefcf1b
Add `IndexRange` list add/remove methods.
Add or remove index ranges from a list of index ranges, merging and splitting ranges as required.
7 years ago
Steven Kirk
fcaa250c72
Ported fix and test from WinUI.
https://github.com/microsoft/microsoft-ui-xaml/pull/1922
7 years ago
Steven Kirk
3f6e982be8
Added SelectionModel.RetainSelectionOnReset.
7 years ago
Steven Kirk
3a7d9f0800
Use SelectedItems for change event args.
7 years ago
Steven Kirk
307b751f68
Lazily create the selected/deselected lists.
7 years ago
Steven Kirk
27e11150b7
Make comparing IndexPath with null do something useful.
7 years ago
Steven Kirk
ea968c49c2
Refactor of SelectionModel change notifications.
To address issues found.
7 years ago
Steven Kirk
2336f85d02
Added some failing tests.
That demonstrate some problems with the `SelectionModel` change notifications found so far.
7 years ago
Steven Kirk
8879477322
Added SelectionModel changed args.
`SelectionModel` as ported from WinUI has no information about what changed in a `SelectionChanged` event. This adds that information along with unit tests.
7 years ago
Steven Kirk
8640393a26
Add `IndexRange` list add/remove methods.
Add or remove index ranges from a list of index ranges, merging and splitting ranges as required.
7 years ago
Steven Kirk
d615cdebcb
Add nullability annotations to SelectionModel etc.
And ran a few of VS' lightbulb suggestions.
7 years ago
Steven Kirk
e4c6c85826
Refactor IndexPath.
- #nullable enable
- Make it a `readonly struct`
- Most of the time it will only hold a single `int`, so optimize for the common case by having an `int _index` field
- Make `_path` an array rather than a list as it will be fixed-size
- Implement equality
- Implement operators
7 years ago
Steven Kirk
6bd7b4f335
Ported SelectionModel and friends from WinUI.
7 years ago
Steven Kirk
640a5c5d8b
Swap order of parameters to event args.
As described in #3437 the argument ordering was different to WPF/UWP causing bugs in some code ported from WPF/UWP. Use the same argument ordering as WPF/UWP.
Fixes #3437
7 years ago
Steven Kirk
39841211d7
Merge pull request #3465 from MarchingCube/fix-color-comparisons
Optimize Color equality checks
7 years ago
Dariusz Komosinski
cf8aa6ecac
Optimize Color equality checks.
7 years ago
Steven Kirk
6c40771d94
Merge pull request #3255 from AvaloniaUI/refactor/value-store
Make styled property storage typed
7 years ago
Steven Kirk
527bac1ab3
Merge branch 'master' into refactor/value-store
7 years ago
Steven Kirk
399417692f
Revert "Removed unused owner reference."
This reverts commit d0e2a844db .
7 years ago
Steven Kirk
3bc1594dca
Revert "Removed unused field."
This reverts commit 270f9718b8 .
7 years ago