Steven Kirk
2c9f286db0
Added failing tests for #11119 .
3 years ago
Tom Edwards
74f75b0525
Converted RangeBase to StyledProperty
Normalised ScrollViewer internal properties and bindings
3 years ago
Steven Kirk
f8eceb4af9
Update usages of ItemsControl Items/ItemsSource.
- Use `ItemsSource` when appropriate
- When `Items` is appropriate, don't use the setter
3 years ago
Steven Kirk
f0c89a614e
Reimplemented Carousel.
Only `VirtualizingCarouselPanel` currently implemented.
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
Steven Kirk
692c0c155d
Begin refactoring ItemsPresenter.
A lot still broken, in particular virtualization is completely removed.`ItemsPresenter` now no longer has an `Items` or `ItemTemplate` property; it detects when it's hosted in an `ItemsControl`. `IItemsPresenter` interface removed.
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
aljosas
2a185da639
removing Dispatcher.UIThread.RunJobs() from tests
5 years ago
aljosas
ede1e2db94
fixing PR for data validation for Combobox control and all SelectingItemsControl
5 years ago
aljosas
899ba64913
fixing data validation for Combobox control and all SelectingItems control #5652
5 years ago
Steven Kirk
7d967138af
Add missing word.
6 years ago
Steven Kirk
4c20313b12
Adjust a few expected test results.
6 years ago
Steven Kirk
af90219ff4
Reverted SelectionModel.
6 years ago
Steven Kirk
41831066c2
Revert "Fix selection after deleting an item."
6 years ago
Steven Kirk
6555a51f5a
Fix selection after deleting an item.
`SelectionModel` needs to subscribe to `CollectionChanged` on the items before `ItemsControl` in order for the selection to be correct when we come to setting the selected state.
Because `SelectionModel.Source` isn't subscribed during initialization in `ItemsChanged`, we also need to make sure we don't subscribe `ItemsControl` to the collection changes during initialization. Instead subscribe in `OnInitialized` (this requires a few tests to be rooted in order to be called).
Fixes #4293
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
Steven Kirk
56825d252e
Expose ContentPresenter from ItemsControl.LogicalChildren.
Exposing the `ContentPresenter.Child` in `ItemsControl.LogicalChildren` was causing problems when detaching and reattaching an `ItemsControl` to the logical tree. Instead, expose the `ContentPresenter` itself in effect meaning that `ItemsControl` has a "container" type just like the controls derived from it.
Fixes #3487
6 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Steven Kirk
92284afa14
Added failing test for #2507 .
7 years ago
Steven Kirk
5745b72222
Started refactoring CarouselPresenter.
Make it react correctly to changes in the source collection. Fixes #2432 .
7 years ago
Dan Walmsley
9911fff84d
fix carousel presenter and add unit test for condition.
8 years ago
Dan Walmsley
3536496f21
Add test for when carousel Items is reset and virtualized.
8 years ago
Dan Walmsley
612d99d01e
use GetVisualDescendents in test.
8 years ago
Dan Walmsley
2a78b5e9c2
Add unit test and Fix for case where TemplateApplied when SelectedIndex is already set.
8 years ago
Dan Walmsley
2900333f69
Add test to ensure SelectedIndex / SelectedItem is maintained when
items are removed mid-list.
8 years ago
Dan Walmsley
65d57262b2
Add unit tests to demonstrate the issues with Carousel
8 years ago
Jumar Macato
2556b50992
Rename Carousel & TabControls Transition property to PageTransitions to avoid confusion to the upcoming Transitions from Avalonia.Animations.
8 years ago
Steven Kirk
5cc5b91930
Fix xunit warnings.
8 years ago
danwalmsley
e53cbd13f9
Added failing unit test for Carousel
9 years ago
Steven Kirk
fbb7ea759b
Make ItemContainerGenerator create containers
Make the untyped ItemContainerGenerator create `ContentPresenter`
containers when the data isn't a control. This is required for correct
binding to `DataContext` in a data template.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
a2ea7e36e3
Added Carousel.IsVirtualized.
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
01417ba883
Renamed ControlTemplate -> FuncControlTemplate
10 years ago
Steven Kirk
5bfa93b747
Renamed Deck -> Carousel.
10 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
d11d779414
Trying to fix capitalization of tests and docs AGAIN.
11 years ago
Steven Kirk
1a2fba4798
Revert "Fixed casing of Docs and Tests directories."
This reverts commit 845b28a2c2 .
11 years ago
Steven Kirk
845b28a2c2
Fixed casing of Docs and Tests directories.
11 years ago
Steven Kirk
77e81c4360
Make TabControl/Deck work again.
11 years ago
Steven Kirk
c0fc38358f
Refactored templates a bit.
Added interfaces, moved them to Controls.Templates namespace and added
base classes for common Func<> templates.
11 years ago
Steven Kirk
ba8552cb81
Renamed Id to Name.
No reason to be different for the sake of it.
11 years ago
Steven Kirk
04673d539f
Fix TabControl logical parent.
11 years ago