Steven Kirk
b1d34acdc6
Handle requesting children of unrealized containers.
6 years ago
Steven Kirk
bc079008d1
Remove usage of deprecated input APIs.
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
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
c4afd15d90
Use SelectionModel in TreeView.
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
José Pedro
ef15b80b12
Updated GotFocusEventArgs obsolete API usages.
6 years ago
Steven Kirk
15dfb88fe7
Update tree item container index dynamically.
Update `TreeItemContainerGenerator.Index` when a `TreeViewItem` is added to or removed from the logical tree. This ensures that removed `TreeViewItem`s won't try to add duplicate containers to the index.
Fixes #2985
6 years ago
José Pedro
14b3683127
Replaced obsolete API usages.
7 years ago
Steven Kirk
75fdd0d343
Check for empty items in GetContainerInDirection.
Don't try to navigate into `TreeViewItem`s with no children: this causes a out-of-range exception.
Fixes #2980
7 years ago
José Pedro
19f9729e86
Reduced array allocations.
7 years ago
Dariusz Komosiński
a1ee8d98eb
"Fix" TreeView SelectedItems causing side effects and resetting selection.
7 years ago
Steven Kirk
f634e9af81
Fix TreeView right-click selection.
Fixes #2660 .
7 years ago
Steven Kirk
6712626181
Simplify setting TreeView.SelectedItem.
Calling the overload of `SetAndRaise` which takes a callback should not be necessary because that was only needed in `SelectingItemsControl` due to the interaction between `SelectedIndex` and `SelectedItem`.
7 years ago
Steven Kirk
4e4c1918ab
Added failing test for #2660 .
And a passing test too. Also added some useful methods to `TreeView` to help with this.
7 years ago
Steven Kirk
1066f57c9e
Move SynchronizeItems to TreeView.
As it's no longer used in `SelectingItemsControl`.
7 years ago
Dariusz Komosinski
cf1401e5f2
Use ListBox properties for TreeView implementation.
7 years ago
Dariusz Komosinski
ebe92b6619
Make sure that property is registered on a correct type.
7 years ago
Dariusz Komosinski
fe5d5bca1b
Make TreeView.SelectionModeProperty public so it can be set from styles.
7 years ago
MonkAlex
1114df5d45
#2356 Small rename Objects to Items
7 years ago
MonkAlex
235cc660fd
#1052 Rename TreeContainerIndex.Items to Containers
7 years ago
MonkAlex
33a6ae8215
#2355 Direct access for treeview index values when select all.
7 years ago
MonkAlex
57dcfadf57
#2355 'Select all' support TreeView too, only visible part of tree.
7 years ago
Dariusz Komosinski
c3480fb840
Remove TreeViewHelper and shorten the code so the extra struct is not needed.
7 years ago
Dariusz Komosinski
5822e60db6
Fix ternary operator formatting, add config entry to the .editorconfig.
7 years ago
Dariusz Komosinski
2c04c95a12
Expose SelectedItems property. Add more tests for edge cases failing for ListBox.
7 years ago
Dariusz Komosinski
85d309830a
TreeView multiple selection support.
7 years ago
Miha Markič
1524cb1aba
Spellchecks comments and members, removes unused using statements and sorts them
8 years ago
Jeffrey Ye
f180ec4dd7
Use SelectionChangedEventArgs instead of SelectedItemChangedEventArgs
8 years ago
Jeffrey Ye
e9cde299bb
#1802 add SelectedItemChanged event to TreeView
8 years ago
Steven Kirk
9e2e266d3c
Handle navigation in TreeView.
8 years ago
Steven Kirk
64ed0761c7
Rename Dispatcher invoke methods.
`InvokeAsync` -> `Post`
`InvokeTaskAsync` -> `InvokeAsync`
8 years ago
Goldy
6dd497bbc8
Code improvement
Removed unused or duplicated code
8 years ago
Dan Walmsley
c8e6bd5809
Fix using dispatcher timer with 0 time interval causing exception.
9 years ago
Steven Kirk
c4aa2197b2
Fixed TreeView navigation.
Fixes #277 .
9 years ago
Steven Kirk
57a0122549
Make ItemTemplate work for TreeView.
10 years ago
Steven Kirk
5cd9b98057
Added ItemsControl.ItemTemplate property.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
3e3134217c
Fixed name of PointerPressedEventArgs.
10 years ago
Steven Kirk
6f32c868d9
SelectingItemsControl.AutoScrollToSelectedItem
Added SelectingItemsControl.AutoScrollToSelectedItem. Closes #363 .
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
0faeaf47e3
Scroll newly selected tree view node into view.
10 years ago
Steven Kirk
ff9a622cd1
TreeViewItem may not be created when SelectedIndex set.
10 years ago
Steven Kirk
bfb334ca5e
Ensure TreeViewItem.IsSelected is set.
When TreeView.SelectedItem changes.
10 years ago
Steven Kirk
78abef1551
Tidied up tree item container generators.
In doing so fixed a bug in DevTools where tree items would become
unselectable.
10 years ago
Steven Kirk
db1e20acc8
Only allow pseudoclasses to be set by control.
Limit adding/removing pseudoclasses to IPseudoClasses interface.
10 years ago
Steven Kirk
5d2658d856
Make IStyleable.Classes an IPerspexReadOnlyList.
So we can mock it.
10 years ago
Steven Kirk
92f8ce6f47
Added TreeView static ctor.
To work around SelectedItem not being found in Release build.
11 years ago
Steven Kirk
6a005d35c8
Make TreeView selection work etc.
Unfortunately stuff is still broken - I think ItemContainerGenerator
needs a refactor.
11 years ago