amwx
952c53cdff
Add tests
6 years ago
amwx
52075d6cd9
Fix Test
6 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
amwx
05c6978617
Try to get test to pass on CI
6 years ago
amwx
4e2dc7f5db
Add test
6 years ago
Przemysław Onak
db98c340d6
Add test to check if popup is displayed correctly after window is shown
6 years ago
Przemysław Onak
de5dd5096e
Schedule opening popup if cannot be opened right now
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
9c8376348c
Make remaining tests pass.
6 years ago
Steven Kirk
bfbf58dfd0
Adjust expected output.
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
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
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
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
Steven Kirk
714b0740db
Make leak tests pass again.
6 years ago
Steven Kirk
c45436dff1
Added Popup.OverlayDismissEventPassThrough.
To control whether dismiss events are passed through from the overlay layer to the underlying window content.
6 years ago
Steven Kirk
b2a7339b4b
Added Popup.IsLightDismissEnabled property.
And deprecate `StaysOpen` in favor of this property.
6 years ago
Steven Kirk
529b279549
Fix failing popup tests.
6 years ago
Steven Kirk
fc711e7c86
Measure PopupRoot to MaxAutoSizeHint.
On win32 popup's don't receive `WM_GETMINMAXINFO` so instead query the monitor info for the max work area,
6 years ago
Dan Walmsley
c961df9ee1
fix unit for listbox test.
6 years ago
Dan Walmsley
4bc1801c2a
fix popup tests.
6 years ago
Steven Kirk
dcdaf5e0bf
Don't raise ResourceChanged on reparenting...
...when the new parent isn't attached to the tree. This prevents us sending a load of useless `ResourcesChanged` events.
6 years ago
Steven Kirk
bd0b894271
Fix UseLayoutRounding calculations.
Ported `RoundLayoutSize` and `RoundLayoutValue` from WPF and use these to calculated layout rounding.
Fixes #3467 .
6 years ago
Steven Kirk
21bddb1ced
Added test that fails after resource refactor.
`Changing_Resource_In_Templated_Parent_Should_Affect_Templated_Child` now fails because resource changed messages no longer traverse into templated children.
6 years ago
Steven Kirk
bc079008d1
Remove usage of deprecated input APIs.
6 years ago
Steven Kirk
2fcde9e34d
Use OnApplyTemplate instead of OnTemplateApplied.
- More similar to WPF API
- Less bug-prone (see #3744 )
`OnTemplateApplied` still exists, but is deprecated and does nothing.
6 years ago
Steven Kirk
ec24030bac
Added another failing PopupRoot test.
6 years ago
Steven Kirk
908eef0b0d
Added failing tests for #3796 .
6 years ago
Steven Kirk
af950096cc
Added failing test for #3784 .
Had to refactor the `MockWindowingPlatform` a bit.
6 years ago
Steven Kirk
a98b22c40c
Pass close event to Popup.Closed.
So that the event can be marked as handled if necessary. Mark the event as handled in `AutoCompleteBox`, `ComboBox` and `DatePicker`, but _not_ `ContextMenu`. Fixes #3760 .
6 years ago
Steven Kirk
252733e41f
Added failing test for #3760 .
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
dc55d65287
Refactored styling.
- Don't use Rx in the styling system. Instead introduces `IStyleActivator` which is like an `IObservable<bool>`-lite in order to cut down on allocations.
- #nullable enable on touched files
6 years ago
Steven Kirk
6001115573
Use SelectionModel in SelectingItemsControl.
6 years ago