Steven He
be14072ab2
Prevent all obsolete members from listing in auto-completions
3 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
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
4 years ago
Tim
42e27d8950
Fix Tests
4 years ago
Tim
01c6bf4bb7
Add DisplayMemberBinding to ItemsControl
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
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
5 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
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
5a67237be3
Fix updating index when TreeView reparented.
When an entire treeview is reparented, don't detach the child `TreeViewItem`s.
Fixes #3328
7 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
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Steven Kirk
2fa8247f01
Removed MemberSelector.
7 years ago
Miha Markič
1524cb1aba
Spellchecks comments and members, removes unused using statements and sorts them
8 years ago
Steven Kirk
ca17c50bf4
Treat warnings as errors.
In Release build in main Avalonia assemblies (couldn't do it in
Avalonia.Markup.Xaml due to warnings in OmniXaml). To do this, fixed a
number of warnings.
10 years ago
Steven Kirk
4e9fe88c27
Added missing Materialized event invocation.
In TreeContainerIndex. Also add TODO concerning ItemContainerEventArgs.
10 years ago
Steven Kirk
259144838c
Set item container properties with Style priority.
So that they can be overridden by styles.
10 years ago
Steven Kirk
1d83126d20
More WIP on virtualization.
Kinda nearly working in the test app.
10 years ago
Steven Kirk
f9b3d2ac03
WIP: Adding virtualization to ItemsPresenter.
10 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
813ff6fcea
Handle TreeDataTemplate.ItemsSelector == null.
11 years ago
Steven Kirk
093dd452e5
Return InstancedBinding from TreeDataTemplate.
This hopefully fixes the part of issue #284 related to TreeDataTemplate.
MemberSelector needs a similar fix.
11 years ago
Steven Kirk
8c9a2e89ad
Make DataTemplate-created TreeViewItems namescopes.
Closes #463 .
11 years ago
Steven Kirk
92bca08e3b
Correctly maintain TreeContainerIndex.
Fixes #434
11 years ago
Steven Kirk
3e6402711c
Make TreeViewItem.IsExpanded bindings work.
11 years ago
Steven Kirk
5773704f2d
Started updating DevTools to use XAML.
11 years ago
Steven Kirk
3bfba9c8ce
Ensure TreeViewItems are removed from index.
When TreeViewItem is removed from TreeView.
11 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.
11 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 years ago
Steven Kirk
71973cabb1
Fix removing items from ItemsControl.
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
Steven Kirk
53926a47bf
Refactored ItemContainerGenerator<T>.
To allow TreeItemContainerGenerator to inherit from it.
11 years ago
Steven Kirk
b2d40e77c3
Started implementing multiple selection.
11 years ago
Steven Kirk
19498ab03d
Correctly set TreeView item DataContexts.
Also added a few tests for TreeView.
11 years ago
Steven Kirk
ad1b92cd77
Implemented ClearContainers for TreeView.
11 years ago
Steven Kirk
a0509caede
Renamed TreeDataTemplate -> FuncTreeDataTemplate.
11 years ago
Steven Kirk
292a04d973
Renamed DataTemplate -> FuncDataTemplate.
11 years ago
Steven Kirk
338a1c0d91
Added ItemsControl.MemberSelector
And use it to select the TabItem.Content property for the Deck in a
TabControl.
11 years ago
Steven Kirk
7cc5ee5dcc
Removed unused itemTemplate parameter.
11 years ago
Nikita Tsukanov
3cd3579475
"field can be readonly"
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago
Steven Kirk
12c8d3712d
Make TreeView work again, to an extent.
Still a bit of a hack: needs doing properly at some point.
11 years ago