Takoooooo
b3bd2e54ec
Use correct ToggleModifier in ListBox multiselection on MacOS.
4 years ago
robloo
d4540ed0e5
Add template part attributes to common controls
4 years ago
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
4 years ago
Miha Markič
97c33f432a
Applies spell checking on mostly comments, but also non public members and arguments
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
Steven Kirk
14f314341e
Fix scrolling to selection.
A few `AutoScrollToSelectedItem` improvements:
- Scroll to current selected item when it's set to true
- Scroll to current selected item when list first displayed
- Scroll to current selected item when attached to visual tree if the selection was changed while it wasn't attached
Fixes #4100
6 years ago
Steven Kirk
0e7f24ff51
Added back removed tests.
6 years ago
Steven Kirk
a9b04a5c2c
Started integrating new SelectionModel.
6 years ago
Steven Kirk
af90219ff4
Reverted SelectionModel.
6 years ago
Andrey Kunchev
e5c373acd0
pass ctrl key state to selection logic in listbox
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
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
6001115573
Use SelectionModel in SelectingItemsControl.
6 years ago
José Pedro
ef15b80b12
Updated GotFocusEventArgs obsolete API usages.
6 years ago
danwalmsley
d64ec6a762
set Scroll before calling base.OnTemplateApplied.
6 years ago
José Pedro
14b3683127
Replaced obsolete API usages.
7 years ago
Steven Kirk
1f9bb75ed3
Add setter for ListBox.SelectedItems.
It had been erroneously omitted.
7 years ago
Steven Kirk
11a3f0c093
Added failing test for #2565 .
Along with a passing test I wrote looking for the solution, and some documentation about SelectionMode.
7 years ago
Steven Kirk
2b11ca12dd
Don't clear selection on right click.
Fixes #2660 .
7 years ago
Steven Kirk
ac59468ddc
Add SelectAll and UnselectAll to ListBox.
7 years ago
Dariusz Komosinski
cf1401e5f2
Use ListBox properties for TreeView implementation.
7 years ago
Steven Kirk
0bf9404e00
Deafult ItemsPresenter virtualization to None
And override it in ListBox. This prevents ItemsPresenter thinking it's virtualized in a TreeView. Fixes #610 .
10 years ago
Steven Kirk
43d9fa5724
Show scroll info in virt test app.
10 years ago
Steven Kirk
69ba9810d8
Added ListBox.VirtualizationMode
10 years ago
Steven Kirk
e930c35882
Expose IScrollable in ListBox.
To allow programmatic control of the ListBox's scroll.
10 years ago
Steven Kirk
38afaf1aca
More WIP on adding virtualization to ItemsPresenter.
10 years ago
Steven Kirk
5cd9b98057
Added ItemsControl.ItemTemplate property.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
3e3134217c
Fixed name of PointerPressedEventArgs.
10 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
10 years ago
Steven Kirk
53926a47bf
Refactored ItemContainerGenerator<T>.
To allow TreeItemContainerGenerator to inherit from it.
11 years ago
Steven Kirk
77d8db6b2d
Mark selection click events as handled.
11 years ago
Steven Kirk
6401cec2ef
Make SelectedItems a plain IList
As IList<T> is not covariant.
11 years ago
Steven Kirk
c0dff57a78
Make SelectedItems bindable.
And to avoid confusion removed SelectedIndexes.
11 years ago
Steven Kirk
ddb5ed229a
Make keyboard range selection work.
11 years ago
Steven Kirk
7d73960ef6
Make selecting ranges work.
11 years ago
Steven Kirk
b2d40e77c3
Started implementing multiple selection.
11 years ago
Steven Kirk
24e18d0236
Documentation.
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
eb6bd28664
Rename TypedItemContainerGenerator
As ItemContainerGenerator<T>.
11 years ago
Steven Kirk
3010bc76fb
Use IItemContainerGenerator interface.
Instead of ItemContainerGenerator class.
11 years ago
Steven Kirk
9a1c5825d4
Added ListBox.
And moved all item selecting logic etc in SelectingItemsControl where it
should be.
11 years ago