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
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 .
6 years ago
Steven Kirk
ea68915de6
Added failing test for #2971 .
And a passing test for normal TreeView.
6 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
Jeremy Koritzinsky
cf8244b37a
Move current contents of Avalonia.Markup to Avalonia.Base. Move Avalonia.Markup.Xaml.Data/Parser classes to Avalonia.Markup since they're not Xaml-specific.
Use pattern-matching switch.
Fix bug from cleanup.
8 years ago
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
8 years ago
Steven Kirk
d6b6a0fa96
Refactored InstancedBinding creation.
Previously it wasn't clear which constructor on `InstancedBinding` must be called for a particular binding mode. Refactored the constructors:
- We now have a single public ctor which takes an `ISubject`, as a subject can be used for all binding modes.
- Instanced bindings with other sources such as single values and `IObservables` are now constructed via static methods which only allow the correct sources for that binding mode
8 years ago
Steven Kirk
22bda08a90
Lazily initialize DataTemplates.
Added an `IDataTemplateHost` interface with a `IsDataTemplatesInitialized` property to prevent the need for allocating empty `DataTemplates` collections for many controls.
9 years ago
Steven Kirk
c4aa2197b2
Fixed TreeView navigation.
Fixes #277 .
9 years ago
Steven Kirk
bb11b302b8
Added failing unit test for #277 .
9 years ago
Steven Kirk
4730ee1c41
Fix spelling of descendant.
While "descendent" is an acceptable English spelling, "descendant" is the common spelling.
9 years ago
Steven Kirk
b74c0d316b
Fix off-by-one error in ItemContainerGenerator
Fixes #604 .
10 years ago
Steven Kirk
d717b46112
Fixed DevTools.
- Set `InheritanceParent` before Parent so that control doesn't
initially inherit the wrong DataContext
- Don't set `InheritanceParent` when setting `Parent` if
`InheritanceParent` already set
- Added `IDataTemplate.SupportsRecycling`
10 years ago
Steven Kirk
57a0122549
Make ItemTemplate work for TreeView.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
248f059e6f
Added failing TreeViewItem test.
Binding returned from TreeDataTemplate is getting collected.
10 years ago
Steven Kirk
93884ea063
Added test for issue 284.
Moved NotifyingBase to Perspex.UnitTests in order to do this.
10 years ago
Steven Kirk
8c9a2e89ad
Make DataTemplate-created TreeViewItems namescopes.
Closes #463 .
10 years ago
Steven Kirk
3e3134217c
Fixed name of PointerPressedEventArgs.
10 years ago
Steven Kirk
eec9a1f44a
Added shared TestRoot class.
And use it in every unit test project except SceneGraph as that one is
different.
10 years ago
Steven Kirk
bfb334ca5e
Ensure TreeViewItem.IsSelected is set.
When TreeView.SelectedItem changes.
10 years ago
Steven Kirk
c810f95904
Don't ApplyTemplate on nested templated controls...
...during ApplyTemplate. This was so that ItemsControls could their find
ItemsPresenters nested in other templated controls. Instead use
IItemsPresenterHost to make the presenter register itself with its
TemplatedParent.
10 years ago
Steven Kirk
3bfba9c8ce
Ensure TreeViewItems are removed from index.
When TreeViewItem is removed from TreeView.
10 years ago
Steven Kirk
8fe84fa1dc
Search logical tree for root TreeView.
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
a6b74db847
Merge branch 'logical-tree' into leaks
10 years ago
Steven Kirk
2bcaef3c7e
Fixed failing TreeView tests.
10 years ago
Steven Kirk
71cd3d965b
More work on XAML control theme.
10 years ago
Steven Kirk
6a005d35c8
Make TreeView selection work etc.
Unfortunately stuff is still broken - I think ItemContainerGenerator
needs a refactor.
10 years ago
Steven Kirk
2615c5373c
Started adding TreeView tests.
10 years ago
Steven Kirk
01417ba883
Renamed ControlTemplate -> FuncControlTemplate
10 years ago