Steven Kirk
7f87c2e74a
Don't raise SelectionModel.PropertyChanged during update.
6 years ago
Steven Kirk
9ef91f9e10
Fix notifications when removing parent item.
6 years ago
Steven Kirk
fcdac73e75
Fix select range logic.
Make sure the item we're selecting is within the requested range. Also refactored the unit tests to do a simple test on `SelectedIndices` instead of using `IsSelectedWithPartial` because both can't really be tested together using the old testing method.
6 years ago
Steven Kirk
d5f0110ca6
Raise SelectionChanged when nested children change.
6 years ago
Steven Kirk
8230684a41
Added failing test for #3918 .
6 years ago
Steven Kirk
c9a385bd5a
Allow SelectionNode children to change.
Make `SelectionModelChildrenRequestedEventArgs.Children` an observable, so that the we can react to the children collection object changing, as well as the children inside the collection changing.
Upstream issue: https://github.com/microsoft/microsoft-ui-xaml/issues/2404
6 years ago
Steven Kirk
f103df6a9a
Changed IsSelected semantics.
Move old `IsSelected` semantics to `IsSelectedWithPartial` and add a new `IsSelected` method which checks for direct selection.
6 years ago
Steven Kirk
96fbd6c531
Don't only select leaf nodes from SelectRange.
Related issues:
https://github.com/microsoft/microsoft-ui-xaml/issues/1969
https://github.com/microsoft/microsoft-ui-xaml/issues/1984
6 years ago
Steven Kirk
95190e168b
Fixed SelectionModelChildrenRequestedEventArgs returning incorrect so...
…urce index
fixed sourceindex childrenrequested args
Port of ee03bace14
6 years ago
Steven Kirk
12abeab47e
Remove UWP stubs in unit tests.
6 years ago
Steven Kirk
efab1c8266
Fix SelectionNode.Cleanup.
- Removed disposed child nodes
- Don't dispose child node with descendent selection
6 years ago
Steven Kirk
bd022cca39
Clean up when node removed.
6 years ago
Steven Kirk
520dc16c2a
Added failing test.
Clearing a nested selection doesn't raise `SelectionChanged`.
6 years ago
Steven Kirk
44cf7f24db
Expose API for batch updates.
6 years ago
Steven Kirk
0a608d47dc
Added SelectionMode.AutoSelect.
6 years ago
Steven Kirk
ee459635a8
Handle RetainSelectionOnReset w/ null source.
6 years ago
Steven Kirk
c0f34694a6
Fixed out of bounds in SelectionNode.
6 years ago
Steven Kirk
04f8516c32
Handle null SelectionModel.Source.
6 years ago
Steven Kirk
e2132fedf9
Added some failing tests.
That demonstrate some problems with the `SelectionModel` change notifications found so far.
6 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.
6 years ago
Steven Kirk
fcaa250c72
Ported fix and test from WinUI.
https://github.com/microsoft/microsoft-ui-xaml/pull/1922
6 years ago
Steven Kirk
3f6e982be8
Added SelectionModel.RetainSelectionOnReset.
6 years ago
Steven Kirk
2336f85d02
Added some failing tests.
That demonstrate some problems with the `SelectionModel` change notifications found so far.
6 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.
6 years ago
Steven Kirk
6bd7b4f335
Ported SelectionModel and friends from WinUI.
6 years ago