Julien Lebosquain
b612be79db
Add FocusChangedEventArgs for GotFocus/LotFocus ( #20859 )
* Add FocusChangedEventArgs for GotFocus/LotFocus
* Update API suppressions
3 weeks ago
Nikita Tsukanov
fa17c22131
Introduce PresentationSource, move some responsibilities from TopLevel ( #20624 )
* Extracted IInputRoot out of TopLevel
* Move some input handling out of TopLevel
* Remove old class, make layout manager private
* Removed IRenderRoot
* Make VisualTreeAttachmentEventArgs a bit more sensible
* Move ILayoutRoot to PresentationSource
# Conflicts:
# tests/Avalonia.Controls.UnitTests/TabControlTests.cs
* Updated some VisualRoot / GetVisualRoot usages
* Updated more XxxRoot usages
* More Root usages
* Addressed review
* Hurr-durr xml
* More fixes
* Maybe fix android compilation
* API diff
* Yet another cast
* I had to use MSIL analysis to detect those casts
* Fixed automation
* Fix PointerOverPreProcessor
* Fix?
* Removed yet another cast to Visual
* The amount of random downcasts is astonishing
* Maybe fix mac
* Addressed review
1 month ago
Julien Lebosquain
02c5ff41ff
Remove obsolete members from Avalonia.Controls ( #20617 )
* Remove IActivatableApplicationLifetime
* Remove ItemContainerGenerator.ContainerFromIndex/IndexFromContainer
* Remove TreeItemContainerGenerator
* Remove SystemDialog
* Remove IInsetsManager.DisplayEdgeToEdge
* Remove Screen.PixelDensity/Primary
* Remove Screens.ScreenFromWindow
* Remove Popup/ContextMenu.PlacementMode
* Remove ToggleButton.Checked/Unchecked/Indeterminate
* Remove AppBuilder.LifetimeOverride
* Remove IApplicationPlatformEvents
* Remove TabItem.SubscribeToOwnerProperties
* Update API suppressions
2 months ago
Tom Edwards
b7cb9e5770
Unify selection event handling for all `SelectingItemsControl` types plus `TreeView` ( #19203 )
* Unify selection event handling for all SelectingItemsControl types plus TreeView
- Controls can decide whether to select on press/release, or introduce their own logic
- Container types handle events and can decide whether to forward them on to their owner
- Corrected various cases where controls checked whether a button was held when the event occurred, rather than whether it triggered the event
- Replaced various hardcoded modifier key checks with uses of PlatformHotkeyConfiguration
- ListBox no longer cares if you swipe before releasing touch (unless that triggers a gesture)
- TreeViewItem is now selected on touch/pen release
* API change requests
* Review comments
3 months ago
workgroupengineering
36c9de9cf0
feat: Enable Rule CA1851 ( #16779 )
* feat: Enable rule CA1851: Possible multiple enumerations of IEnumerable collection
* feat: Address rule CA1851
* fix: Address review
* fix: address review
2 years ago
Wiesław Šoltés
6aacd552c6
Add dedicated automation peers for TreeView and TreeViewItem ( #15653 )
* Add TreeViewAutomationPeer for TreeView
* Add TreeViewItemAutomationPeer for TreeViewItem
* Add missing xml doc
2 years ago
Steven Kirk
994fb351d6
Fix scroll to selected item logic.
- Use `TreeContainerFromItem` when trying to find the container for the selected item, it can be anywhere in the tree
- Only scroll to `SelectedItem`, not another item in `SelectedItems`
3 years ago
Steven Kirk
f912d4ca28
Improve TreeView.AutoScrollToSelectedItem.
It's still of very limited use as the selected item's ancestors need to be manually expanded, but at least when the selected item is realized it should now be scrolled into view.
Fixes #10449
3 years ago
Max Katz
d267d06a08
Move PlatformHotkeyConfiguration to IPlatformSettings
3 years ago
Max Katz
596f876868
Use PlatformHotkeyConfiguration.Instance instead of locator
3 years ago
Max Katz
20064647dd
Limit IFocusManager API, extend IInputElement API, remove visible static properties
3 years ago
Steven Kirk
6e8faab217
Clear TreeView selection when items removed.
3 years ago
Steven Kirk
8bfe6b9645
Support heterogeneous item containers.
3 years ago
Steven He
be14072ab2
Prevent all obsolete members from listing in auto-completions
3 years ago
Steven Kirk
2aca946a71
Respect single-select with IsSelected bindings.
Use the existing `UpdateSelection` methods to correctly respect the current `SelectionMode`.
3 years ago
Steven Kirk
487fe9ed77
Make TreeViewItem IsSelected bindings work.
3 years ago
Steven Kirk
27b2b27330
Make ExpandSubTree work again.
3 years ago
Dan Walmsley
e77de043b6
[TreeView] ensure SelectedItem field is set before Adding items to SelectedItems
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 .
3 years ago
Steven Kirk
be2da5cc21
Reimplemented commented-out code.
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
8347093f90
Removed IInteractive.
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 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
4 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.
5 years ago
Dan Walmsley
22605e52e9
add fix for treeview navigation when SelectedItem is not in the tree.
5 years ago
Dan Walmsley
d3c44a89c0
revert fix and add failing unit test.
5 years ago
Dan Walmsley
3db5e1bc5a
Revert "treeview navigation never return handled... if returning null."
This reverts commit 27c58c45e1 .
5 years ago
Dan Walmsley
27c58c45e1
treeview navigation never return handled... if returning null.
5 years ago
Dan Walmsley
d3b43efe16
if TreeView has a selecteditem that isnt really part of the tree... then do not crash tab navigation.
5 years ago
Dan Walmsley
8f40596546
fix nits
6 years ago
Dan Walmsley
09069e28b2
fix implementation.
6 years ago