aljosas
ede1e2db94
fixing PR for data validation for Combobox control and all SelectingItemsControl
5 years ago
aljosas
899ba64913
fixing data validation for Combobox control and all SelectingItems control #5652
5 years ago
Yoh Deadfall
0a7ca87e3b
HasFlagCustom made safe and supports all enums
6 years ago
Yoh Deadfall
02e6a4ffa5
Fixed nullability issues
6 years ago
Yoh Deadfall
dad0c4d18a
Fixed invalid cast issue if source isn't visual
6 years ago
Yoh Deadfall
3b48238fe0
Removed dead code
6 years ago
Yoh Deadfall
cdb4e90518
Simplified conditions
6 years ago
Yoh Deadfall
feed5103ab
Removed redundant method
6 years ago
Steven Kirk
544686b78d
Don't try to SelectAll with single selection.
`Toggle` doesn't mean multiple selection.
6 years ago
Steven Kirk
293564e704
Off-by-one error.
6 years ago
Steven Kirk
aaeda72aec
Removed unused methods.
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
9e0c92c630
Raise SelectedItems property changed events.
6 years ago
Steven Kirk
b73ba99077
Reafactor SelectingItemsControl selection.
- Remove `SelectedItemsSync` and store `SelectedItems` in a new `InternalSelectionModel`
- Store transient `SelectingItemsControl` state in an `UpdateState` object
Fixes #4272
6 years ago
Steven Kirk
5ac25a26f4
Tweak raising SelectedIndex/Item property changed.
6 years ago
Steven Kirk
a078974eba
Implement changing selection mode.
6 years ago
Steven Kirk
9c8376348c
Make remaining tests pass.
6 years ago
Steven Kirk
06390d42ee
Restore selection on reset.
6 years ago
Steven Kirk
923fd361e4
Refactor SelectedItemsSync.
6 years ago
Steven Kirk
10b03b15ec
Make restored tests pass.
6 years ago
Steven Kirk
c677fb4b4d
Don't autoselect with no items.
6 years ago
Steven Kirk
81b7b54386
Auto-select when items added.
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
a9f05f22c2
Added #nullable to SelectingItemsControl.
6 years ago
Steven Kirk
95f9a98843
Fixed/skipped failing tests.
6 years ago
Steven Kirk
af90219ff4
Reverted SelectionModel.
6 years ago
Steven Kirk
125ae96859
Handle selected items being removed.
Fixes #4293 .
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
0f9ceb25b7
Make ScrollIntoView accept an index, not an item.
Fixes #2569 .
6 years ago
Steven Kirk
6001115573
Use SelectionModel in SelectingItemsControl.
6 years ago
Steven Kirk
2722f509fa
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
6 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
6 years ago
Dariusz Komosiński
a238fd33f0
Unify SelectingItemsControl init handling and add extra checks to ensure correctness.
6 years ago
Dariusz Komosinski
7a13d819fd
Optimize and add new efficient visual tree extensions.
6 years ago
Benedikt Schroeder
876ecab433
Fix pre selection
6 years ago
Benedikt Schroeder
e2ff454085
Add failing tests
6 years ago
Benedikt Schroeder
5df55e5c9f
Fix multiselection
7 years ago
Benedikt Schroeder
b20f3f4cdf
Update selected context when selected index changes
7 years ago
Steven Kirk
4f41a70455
Make sure ItemsPresenter is updated before selection change.
Having a separate subscription to `Items.CollectionChanged` in both `ItemsControl` and `ItemsPresenter` meant that the `ItemsPresenter` sometimes doesn't update itself in time for a selection change, resulting in #3148 . Make `ItemsControl` trigger `ItemsPresenter.ItemsChanged` rather than both controls listening to the event separately.
7 years ago
Andrey Kunchev
2e70be023b
fixed #3089 now set selecteditem/s before initialization should work properly
7 years ago
Steven Kirk
400e64dc15
Fix formatting.
7 years ago
Dariusz Komosinski
a2c6bc1b7c
Remove usage of AddClassHandler that returns new lambda per invocation.
7 years ago
Dariusz Komosinski
5814bd7163
Remove direct logging functions.
7 years ago
Steven Kirk
60e3c3c977
Fix selection after initialization.
Fixes first item in menus being selected when menu is shown.
7 years ago
Benedikt Schroeder
b42126b9e3
Properly reset SelectedIndex after the DataContext changed
7 years ago
Benedikt Schroeder
bcbe9c3dbd
Fix setting SelectedIndex in XAML
7 years ago
Dan Walmsley
27e1b9d0f5
check selectedindex instead of _selectedItem
7 years ago
Steven Kirk
25ebbd63be
Allow both SelectedItem and SelectedItems to be bound.
Fixes #2969 .
7 years ago