Steven Kirk
27b2b27330
Make ExpandSubTree work again.
3 years ago
Julien Lebosquain
e1138f2cb6
Nullability fixes for Avalonia.Controls
3 years ago
Giuseppe Lippolis
5cc0edb8ae
fix: ItemContainerGenerator obsolete member after #9677
3 years ago
Max Katz
59d7874b1d
Replace System.Reactive with internal extensions
3 years ago
Steven Kirk
3195df0910
Use ItemsSourceView in ItemsControl.
Fixes #54 .
4 years ago
Steven Kirk
be2da5cc21
Reimplemented commented-out code.
4 years ago
Steven Kirk
c99307c6fa
Use more consistent naming.
4 years ago
Steven Kirk
6f04196b84
Made TreeView work again and tests pass.
4 years ago
Steven Kirk
1101f28dd7
Refactored ItemContainerGenerator.
A bunch of tests still failing, and some code commented out, but outlines the new API shape.
4 years ago
Glen Nicol
2a5dceecbb
Feature: Double click expand/collapse treeview and numpad keyboard shortcuts
4 years ago
Steven Kirk
8347093f90
Removed IInteractive.
4 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
4 years ago
Giuseppe Lippolis
9e1ff3e3be
fix: Addreaa review
4 years ago
Giuseppe Lippolis
ee84a8c7fd
feat(Controls): Address rule CA1822
4 years ago
Dmitry Zhelnin
b9f7270eb9
TreeView: improve navigation with Left and Right keys
4 years ago
Takoooooo
3fd8763e80
Use correct ToggleModifier in TreeView multiselection on MacOS.
4 years ago
Steven Kirk
fa44075d26
Make utility methods non-virtual.
Not sure why these method were virtual anyway: any customization should be done by overriding the non-generic `CreateItemContainerGenerator` method.
4 years ago
Yoh Deadfall
55710e8514
Used ToArray where it benefits over ToList
4 years ago
Dariusz Komosinski
27f920a79d
Fixed ItemContainerGenerator usages.
4 years ago
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
4 years ago
gabornemeth
d0a74bdf42
type of the TreeView's items can be customized
5 years ago
Il Harper
c6464ba8d5
fix: Refactor
5 years ago
Il Harper
b96df46054
fix: Fix ArgumentNullException in TreeView.ExpandSubTree()
close #4288
5 years ago
Yoh Deadfall
b32cb382fb
Fixed popup positioning issue
5 years ago
Yoh Deadfall
0a7ca87e3b
HasFlagCustom made safe and supports all enums
6 years ago
Dan Walmsley
7a33cd4e82
change syntax.
6 years ago
Dan Walmsley
22605e52e9
add fix for treeview navigation when SelectedItem is not in the tree.
6 years ago
Dan Walmsley
d3c44a89c0
revert fix and add failing unit test.
6 years ago
Dan Walmsley
3db5e1bc5a
Revert "treeview navigation never return handled... if returning null."
This reverts commit 27c58c45e1 .
6 years ago
Dan Walmsley
27c58c45e1
treeview navigation never return handled... if returning null.
6 years ago
Dan Walmsley
d3b43efe16
if TreeView has a selecteditem that isnt really part of the tree... then do not crash tab navigation.
6 years ago
Dan Walmsley
8f40596546
fix nits
6 years ago
Dan Walmsley
09069e28b2
fix implementation.
6 years ago
Dan Walmsley
3fd7892cc2
use suggested implementation.
6 years ago
Dan Walmsley
ec7ae1fefb
[TreeView] dont raise change events on the clear stage of setting a single selection.
6 years ago
Steven Kirk
af90219ff4
Reverted SelectionModel.
6 years ago
Jumar Macato
441590f549
change in DispatcherTimer instead.
6 years ago
Jumar Macato
400523da95
Fix dev tools crashing on X11.
6 years ago
Steven Kirk
d6cce80809
Add clarification.
6 years ago
Steven Kirk
9df84abbf3
Bring selected TreeViewItem into view after layout finishes.
6 years ago
Steven Kirk
87868cd2bd
Materialize TreeViewItems on selection.
If we're selecting a particular tree view item, then materialize and expand the item's ancestors as `SelectionModel` requests children. Only do this if a particular item is being selected, not when an item is selected as part of a range select.
To do this, needed to add a `FinalIndex` property to `SelectionModelChildrenRequestedEventArgs` in order to know if we're selecting a descendent of the item whose children are being requested.
This is a massive hack, but I can't think of a better way to do it with the current `TreeView` implementation.
6 years ago
Steven Kirk
2b5d7fb28d
Don't allow selection of non-expanded TreeViewItems.
And remove child selection when a `TreeViewItem` is un-expanded.
This is necessary because we don't get enough information about a materialized `TreeViewItem` to select it when materialized, so the `SelectionModel` and `TreeViewItem` selection state gets out of sync.
6 years ago
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