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
Dan Walmsley
05b580317c
fix crash scrolling to view when clearing list.
7 years ago
Dan Walmsley
9e6d3db520
fix whitespace.
7 years ago
Dan Walmsley
d636c7647e
only require a single call to ScrollIntoView
7 years ago
Dan Walmsley
e9ae26e09c
fix scrolling to selected item.
7 years ago
Steven Kirk
5de0bf5fec
Fix AlwaysSelected selected state.
Fixes #2901 . Two things needed to be done here:
- When an item is removed, causing indexes to be reassigned, raise `Recycled` so that `SelectingItemsControl` knows to update the selection state
- Update selection state in `SelectingItemsControl` when the selected item changes, but the selected index does not (due to an item being remove)
7 years ago
Steven Kirk
397d972db8
Auto-select first item on `Reset`.
When a reset is received by `SelectingItemsControl` which has `AlwaysSelect == true`, select the first item if present.
Fixes #2754
7 years ago
Steven Kirk
afa38852cf
Fix SelectingItemsControl multiple selection.
- Allow `SelectAll` regardless of `SelectionMode`: `SelectionMode` should only apply to user-interaction
- Don't select multiple on shift/ctrl-right click
7 years ago
Steven Kirk
fc9a8db010
Correctly select materialized containers.
And add another test.
7 years ago
Steven Kirk
11a3f0c093
Added failing test for #2565 .
Along with a passing test I wrote looking for the solution, and some documentation about SelectionMode.
7 years ago
Steven Kirk
2b11ca12dd
Don't clear selection on right click.
Fixes #2660 .
7 years ago
Steven Kirk
bf767c2c73
Fix clearing selection when clicking on selected item.
7 years ago
Steven Kirk
8f318ef75b
Make some fields readonly.
7 years ago
Steven Kirk
1066f57c9e
Move SynchronizeItems to TreeView.
As it's no longer used in `SelectingItemsControl`.
7 years ago
Steven Kirk
94d71fb12f
More work on updating selection...
...when source items change.
7 years ago
Steven Kirk
ca23d03f98
Update SelectedIndex when items removed before selection.
7 years ago
Steven Kirk
1c85f409b3
Set SelectedIndex/Item on (Un)SelectAll().
7 years ago
Steven Kirk
6926f605f5
Update SelectedIndex when item added before selection.
Fixes #2574 .
7 years ago
Steven Kirk
2e9fbe238b
Refactor selection in SelectingItemsControl.
Instead of using `SelectedItems` as the canonical source of selection information, use an internal `Selection` class which keeps track of the selection in terms of item indexes.
Fixes #2004
7 years ago
FoggyFinder
996eda9fb7
set defaultBindingMode as TwoWay for SelectedIndex
7 years ago
Steven Kirk
ba7cec18e3
Handle move in SelectingItemsControl.
Fixes #2522 .
7 years ago
Steven Kirk
e63fc96c84
Fix failing test.
And remove empty method.
7 years ago
Michael Bosschert
de801ed27e
Fixed SynchronizeItems adding duplicate items.
7 years ago
MonkAlex
1c460061cc
#2355 Remove useless xmldoc.
8 years ago
MonkAlex
e38e49e7d0
#2355 'Select all' for SelectingItemsControl with platform hotkey configuration.
8 years ago
MonkAlex
e3d7d47753
#2355 Ctrl+A hotkey for SelectingItemsControl
8 years ago
Dariusz Komosinski
c9d8fa6a9d
Move SynchronizeItems about private methods.
8 years ago
José Pedro
96d84c942d
Use Array.Empty instead of allocating empty arrays.
8 years ago
Dariusz Komosinski
85d309830a
TreeView multiple selection support.
8 years ago
Andrey Kunchev
daadd9c674
support member selector when recycling Dropdown/listboxitems
8 years ago
Andrey Kunchev
889156df43
fixes #1971 listbox toggle selection
8 years ago
Steven Kirk
d0b77ecca1
Update before calling base.EndInit.
Fixes #1932 .
8 years ago
wojciech krysiak
57058f19cd
Fix SelectedItemsChanged event arguments in SelectingItemsControl
8 years ago
Miha Markič
1524cb1aba
Spellchecks comments and members, removes unused using statements and sorts them
8 years ago
Steven Kirk
1293e9af8d
Implemented Menu interactions.
8 years ago
wojciech krysiak
cdf8d1f8b4
Fix For incorrect handling of NotifyCollectionChangedAction.Reset from IReactiveDerivedList<>
8 years ago
Dan Walmsley
6eb80bd55c
fix broken logic.
8 years ago
Dan Walmsley
ae4356ef34
add fix for selecting items control.
8 years ago
Steven Kirk
2f7a578c38
Added null check for panel.
Problem reared its head when #1709 was fixed.
8 years ago
Jeremy Koritzinsky
05eda280de
Refactor DeferredSetter logic to allow passing references to backing fields and utilizing that in all usages. Refactor SetAndRaise logic to be combined and simplified between the two use cases. Now the common case delegates to the less specialized case.
9 years ago
Jeremy Koritzinsky
ca9a4c4128
PR Feedback.
9 years ago
Goldy
6dd497bbc8
Code improvement
Removed unused or duplicated code
9 years ago
Jeremy Koritzinsky
8acf94d3e4
Fix bug in DelayedSetter and change recursive delayed setting to prevent possible issues down the road.
9 years ago
Jeremy Koritzinsky
440f2cafc5
Fix SelectedItemsControl and RangeBase Stackoverflow bugs.
9 years ago
Jeremy Koritzinsky
8eb355e99d
Fix SelectedItem stack overflow bug. Changes of this pattern are basically required for any direct property that is not using SetAndRaise.
9 years ago
Steven Kirk
181dd53e58
Notify DataContextChanged down tree.
When a data context changes, it should be notified to all descendant controls who inherit the data context. This allows the `SelectingItemsControl` to defer setting the selected item until the `DataContext` has changed for the whole tree.
Renamed `OnDataContextChanging`/`OnDataContextChanged` to `OnDataContextBeginUpdate`/`OnDataContextEndUpdate` because `DataContextChanged` is now called from the property changed notification.
Fixes #507 .
9 years ago
Steven Kirk
95eefa3cf1
Implement AutoScrollToSelectedItem
For virtualizing lists.
10 years ago