Steven Kirk
0f9ceb25b7
Make ScrollIntoView accept an index, not an item.
Fixes #2569 .
6 years ago
Steven Kirk
c4afd15d90
Use SelectionModel in TreeView.
6 years ago
Steven Kirk
6001115573
Use SelectionModel in SelectingItemsControl.
6 years ago
Steven Kirk
0c894e20d3
Added SelectedItemsSync.
To sync between an `ISelectionModel` and a `SelectedItems` collection.
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
f79b58cc55
Added failing test possibly for #3466 .
Not sure if this is the cause of #3466 , but it's definitely wrong.
6 years ago
Steven Kirk
9763faec3a
Added failing test for #3569 .
And one passing test too.
6 years ago
Steven Kirk
886eee831c
Added failing test for #3426 .
6 years ago
Steven Kirk
11a8c01ef1
Added failing tests for #3545 .
`PropertyChanged` is not being fired when binding is disposed. Also change some other unit tests to ensure that priority passed in event args is correct.
6 years ago
Steven Kirk
f16080d00b
Added failing leak test for #3545 .
6 years ago
Dariusz Komosinski
71d1f80d5a
Benchmark attaching styles.
6 years ago
Dariusz Komosinski
992ced0c9c
Cleanup code.
6 years ago
Dariusz Komosinski
ffe0020698
Benchmark for creating Calendars.
6 years ago
Steven Kirk
ccd7236346
Added failing test for #3550 .
Calling `InvalidateMeasure` during `ExecuteInitialLayoutPass` causes invalid bounds/desired size.
6 years ago
Steven Kirk
56825d252e
Expose ContentPresenter from ItemsControl.LogicalChildren.
Exposing the `ContentPresenter.Child` in `ItemsControl.LogicalChildren` was causing problems when detaching and reattaching an `ItemsControl` to the logical tree. Instead, expose the `ContentPresenter` itself in effect meaning that `ItemsControl` has a "container" type just like the controls derived from it.
Fixes #3487
6 years ago
Steven Kirk
632c40340a
Added failing test for #3487 .
6 years ago
Joe Clapis
8bfbc10049
Added the ScrollToHome() and ScrollToEnd() methods to ScrollViewer.
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
bc4eefcf1b
Add `IndexRange` list add/remove methods.
Add or remove index ranges from a list of index ranges, merging and splitting ranges as required.
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
Dariusz Komosinski
01d26ed2ee
Failing unit tests for ComboBox losing focus on detach and Popup.Close raising Closed events for already closed popup.
6 years ago
Steven Kirk
27e11150b7
Make comparing IndexPath with null do something useful.
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
c8c96f57a3
Make test fail for #3325
6 years ago
Steven Kirk
14b13ac8f5
Added failing test for #3459 .
6 years ago
Dariusz Komosinski
46781ad908
Add basic benchmarks for Is and Class selectors.
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
8640393a26
Add `IndexRange` list add/remove methods.
Add or remove index ranges from a list of index ranges, merging and splitting ranges as required.
6 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
6 years ago
Steven Kirk
6bd7b4f335
Ported SelectionModel and friends from WinUI.
6 years ago
Chris
16c813ec93
manually cast unit tests for full framework
IOrderedEnumerable<T> isn't covariant in full framework. Resort to manual casting to workaround the issue
6 years ago
Chris
6121dc41a0
fix datagrid ascending multi-column sort
6 years ago
Chris
5b1bd80f4b
fix datagrid ascending multi-column sort
6 years ago
Steven Kirk
3bc1594dca
Revert "Removed unused field."
This reverts commit 270f9718b8 .
6 years ago
Steven Kirk
89ba4a6327
Prevent tests interfering with other tests.
6 years ago
Steven Kirk
7f26635efa
Wire up validation/coercion for attached properties.
6 years ago
Steven Kirk
270f9718b8
Removed unused field.
6 years ago