Emmanuel Hansen
f61c7f6cd9
Revert "fix tests"
This reverts commit 584e18f78d29480890711b1149d946f61e0d8447.
3 years ago
Emmanuel Hansen
c804fa00cf
fix tests
3 years ago
Max Katz
8a78f134c5
Remove JetBrains.Annotations from the repo
3 years ago
Glen Nicol
2a5dceecbb
Feature: Double click expand/collapse treeview and numpad keyboard shortcuts
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
Steven Kirk
1a338ac087
Remove IStyler and make style apply internal.
- Removes the `IStyler` service and the `Styler` implementation
- Moves the logic for applying styles and control themes into `StyledElement`
- Removes the style `TryAttach` method from the public API
- Removes style caching for now - this will need to be added back
3 years ago
Giuseppe Lippolis
6213676115
fix: Address CA1822 rule
3 years ago
Giuseppe Lippolis
de4b55f8ee
feat(tests): Address rule CA1822
3 years ago
Takoooooo
a30d73eb5e
Fix tests.
4 years ago
Steven Kirk
f57c0ffbec
Added ItemContainerTheme property.
Otherwise there's no easy way to apply themes to item containers.
4 years ago
Steven Kirk
05c1f58308
Added ItemContainerTheme property.
Otherwise there's no easy way to apply themes to item containers.
4 years ago
gabornemeth
d0a74bdf42
type of the TreeView's items can be customized
4 years ago
Giuseppe Lippolis
b4e11b227d
fixes: code documentation
5 years ago
Dan Walmsley
d3c44a89c0
revert fix and add failing unit test.
5 years ago
Nikita Tsukanov
70aef2b17e
We can't randomly reference ReactiveUI anymore due to its maintainer's religious views
6 years ago
Dan Walmsley
8f40596546
fix nits
6 years ago
Dan Walmsley
5a675a073f
fix test.
6 years ago
Dan Walmsley
a4e4d6469d
fix nit in test
6 years ago
Dan Walmsley
4ca07974af
remove line that doesnt do anything.
6 years ago
Dan Walmsley
0bb91da495
fix test.
6 years ago
Dan Walmsley
f97d43e765
add failing unit test.
6 years ago
Steven Kirk
af90219ff4
Reverted SelectionModel.
6 years ago
Steven Kirk
a8b7e87938
Added IRecyclingDataTemplate.
In #4218 we imported `IElementFactory` from WinUI which is broadly analogous to a recycling datatemplate for lists. In Avalonia this implement `IDataTemplate` in order to have a common base class for all types of data templates.
The problem with this is that `IDataTemplate` already had a `SupportsRecycling` property which is incompatible with the way recycling is implemented in `IElementFactory`. Instead, introduce an `IRecyclingDataTemplate` to signal data templates that support recycling.
6 years ago
Steven Kirk
9df84abbf3
Bring selected TreeViewItem into view after layout finishes.
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
bc079008d1
Remove usage of deprecated input APIs.
6 years ago
Steven Kirk
b80c61892e
Added failing test for #3551
Co-Authored-By: Dariusz Komosiński <marchingcube@users.noreply.github.com>
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
14ed1fd571
Added failing test for #3328 .
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
Steven Kirk
1cd113182c
Added failing test for #2985 .
6 years ago
Steven Kirk
55e9037383
Added failing test for #2980 .
7 years ago
Steven Kirk
ea68915de6
Added failing test for #2971 .
And a passing test for normal TreeView.
7 years ago
Nikita Tsukanov
3d4a2781b0
Switched key events to use KeyModifiers
7 years ago
Steven Kirk
cae46af287
Fixed typos.
7 years ago
Nikita Tsukanov
991f767c3c
Removed outdated tests
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Steven Kirk
07a625d489
Added more failing TreeViewTests.
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
Nikita Tsukanov
f556db57b4
Refactor pointer events to support touch events
7 years ago
Michael Bosschert
c23fdc92de
Added unittests for the Select All option of the TreeView.
7 years ago
MonkAlex
235cc660fd
#1052 Rename TreeContainerIndex.Items to Containers
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
Jeffrey Ye
f180ec4dd7
Use SelectionChangedEventArgs instead of SelectedItemChangedEventArgs
8 years ago
Jeffrey Ye
e9cde299bb
#1802 add SelectedItemChanged event to TreeView
8 years ago
Jeremy Koritzinsky
c6c51dd36f
Add pattern-based support for streaming. Fix bugs in method bindings.
8 years ago
Jeremy Koritzinsky
af186e3529
Move string-based binding paths up to Avalonia.Markup. Make the LINQ Expression paths and raw ExpressionNodes (now public) the primarily supported syntax.
8 years ago