robloo
281d30747d
Switch TreeViewItem.IsExpanded to a StyledProperty
Includes other small fixes and updates
3 years ago
cristinathoughtpennies
b0ebd5e1d1
Update HeaderDoubleTapped functions to match conventions
3 years ago
cristinathoughtpennies
f2908c6c79
HeaderDoubleTapped in TreeViewItem is now protected virtual instead of private
3 years ago
Steven Kirk
3195df0910
Use ItemsSourceView in ItemsControl.
Fixes #54 .
3 years ago
Steven Kirk
c99307c6fa
Use more consistent naming.
3 years ago
Steven Kirk
6f04196b84
Made TreeView work again and tests pass.
3 years ago
Steven Kirk
1101f28dd7
Refactored ItemContainerGenerator.
A bunch of tests still failing, and some code commented out, but outlines the new API shape.
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
dif-sam
65d39603fa
Forgotten namespase added to usings
4 years ago
dif-sam
f91a788d18
Suggested fix for #9173
trying to deffere request for BringIntoView, when TreeViewItem not ready yet.
4 years ago
Dmitry Zhelnin
b9f7270eb9
TreeView: improve navigation with Left and Right keys
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
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
robloo
d4540ed0e5
Add template part attributes to common controls
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
4 years ago
Steven Kirk
58c333b6f1
Added PseudoClassesAttribute.
And apply it to our controls. Can be used by designers to add auto-completion support for pseudoclasses.
6 years ago
Max Katz
57bb2e6267
Add Pressed mixin to TreeViewItem
6 years ago
Steven Kirk
2fcde9e34d
Use OnApplyTemplate instead of OnTemplateApplied.
- More similar to WPF API
- Less bug-prone (see #3744 )
`OnTemplateApplied` still exists, but is deprecated and does nothing.
6 years ago
Steven Kirk
3f3fb1a3f8
Update TreeView index when not attached to logical tree.
Fixes #3551 .
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
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
Dariusz Komosinski
a2c6bc1b7c
Remove usage of AddClassHandler that returns new lambda per invocation.
7 years ago
Steven Kirk
a830d5b2d4
Don't test tree view item type by comparing GetType().
Fixes #2971 .
7 years ago
Steven Kirk
c0a595f48e
Fix scrolling to selected item in TreeView.
- Define a `PART_Header` in the `TreeViewItem` template which represents the header to be scrolled into view when a `TreeViewItem` is selected. Make this header only take up the minimum of required space.
- Catch the `RequestBringIntoViewEventArgs` in `TreeViewItem` and update the target rect to that of `PART_Header`
7 years ago
William David Cossey
71d74fe7cd
TreeViewItem.cs - Renamed Depth to Level.
TreeViewItem.cs - Moved CalculateDistanceFromLogicalParent from LogicalExtensions.
TreeViewItem.xaml - Cleaned up selectors.
PropertyEqualsSelector.cs - Default null to string.Empty.
ContentControl.cs - Added valid & invalid pseudoclasses for ContentProperty.
BaseLight.xaml - Removed unused resources.
CheckBox.xaml - Hide ContentPresenter#PART_ContentPresenter when Content is null.
8 years ago
William David Cossey
f6dfd1688e
TreeViewItem updates.
8 years ago
William David Cossey
a161f6a095
ScreenPage.cs - Bug fix.
TreeViewItem - Added Depth property.
BaseLight.xaml - Added InvisibleSelectionColor/Brush.
DatePicker.xaml - Improvments.
TreeViewItem.xaml - Reworked styling.
FormattedTextImpl.cs - Reverted previous changes.
8 years ago
Steven Kirk
9e2e266d3c
Handle navigation in TreeView.
8 years ago
Steven Kirk
2584f4bb18
Removed directional navigation code.
8 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
e332d3f518
Make TreeViewItem.IsExpanded a direct property.
This allows TreeViewItems to be opened by the mouse!
10 years ago
danwalmsley
979c5affb8
corrected default binding mode for checkbox, treeview itemms and selected items.
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
6cf9a43582
Set IsSelected on newly materialized TreeViewItems.
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
16c2242757
Implemented NameScopes
Some tests still failing as controls are only registered with name scope
when attached to a rooted visual tree. Need to work around this by
explicitly registering controls when applying template.
11 years ago
Steven Kirk
53926a47bf
Refactored ItemContainerGenerator<T>.
To allow TreeItemContainerGenerator to inherit from it.
11 years ago
Nikita Tsukanov
dbeb0344f8
static readonly rename
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