Nikita Tsukanov
fedbb270c0
Make sure that tests inherit from ScropedTestBase ( #18690 )
1 year ago
mpylon
a5c0f2bde2
Fixes #17157 ( #17171 )
2 years ago
Steven Kirk
f8eceb4af9
Update usages of ItemsControl Items/ItemsSource.
- Use `ItemsSource` when appropriate
- When `Items` is appropriate, don't use the setter
4 years ago
Steven Kirk
ba7e8a20b5
Added ItemsControl.ItemsSource.
`ItemsControl` now works more like WPF, in that there are separate `Items` and `ItemsSource` properties. For backwards compatibility `Items` can still be set, though the setter is deprecated. `Items` needed to be changed from `IEnumerable` to `IList` though.
4 years ago
Tom Edwards
81530c4231
Converted a variety of writeable DirectProperty definitions to StyledProperty
4 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.
4 years ago
Steven Kirk
6f03f1c3d6
Removed ITemplatedControl.
4 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
4 years ago
Steven Kirk
8176ef6648
Added failing test.
Items are being materialized twice when not using virtualization.
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.
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Steven Kirk
2fa8247f01
Removed MemberSelector.
7 years ago
Jeremy Koritzinsky
da0ab8b681
Move the styling system up the stack to live right below Avalonia.Animation since it has no dependencies on anything further down the dependency chain
8 years ago
Steven Kirk
5cc5b91930
Fix xunit warnings.
9 years ago
Steven Kirk
209713e820
Moved tests to correct place.
@donandren correctly identified a problem with the `ItemsPresenter` but
he put the tests in the `ListBox` tests. Moved them to the correct
place. Also tweak formatting in `ItemContainerGenerator.InsertSpace`.
10 years ago
Steven Kirk
7b3e25949e
Revert "Revert "Set ContentPresenter.DataContext in UpdateChild.""
This reverts commit bf02ae41a9 .
10 years ago
Steven Kirk
bf02ae41a9
Revert "Set ContentPresenter.DataContext in UpdateChild."
This reverts commit f3c7ea27a1 .
10 years ago
Steven Kirk
f3c7ea27a1
Set ContentPresenter.DataContext in UpdateChild.
Thus delaying any changes that changing the data context would make
until we know we have the correct child.
10 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
5cd9b98057
Added ItemsControl.ItemTemplate property.
11 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
11 years ago
Steven Kirk
03c7cb5456
Handle inserts into ItemsControl items.
Fixes #431 .
11 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.
11 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
11 years ago
Steven Kirk
42ea736be2
Reset ItemsPresenter on Move for now.
Need to implement this in a more efficient manner.
11 years ago
Steven Kirk
0617aa23a5
Support Replace and Reset in ItemsPresenter.
11 years ago
Steven Kirk
71973cabb1
Fix removing items from ItemsControl.
11 years ago
Steven Kirk
53926a47bf
Refactored ItemContainerGenerator<T>.
To allow TreeItemContainerGenerator to inherit from it.
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
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
84924dee3c
Added IPanel interface.
11 years ago
Steven Kirk
d9bac5e50d
Removed ItemsPanelTemplate
Use ITemplate<Panel> instead.
11 years ago
Steven Kirk
c7dc89f06b
Fixed applying control templates.
And added unit tests for it.
11 years ago
Steven Kirk
eb6bd28664
Rename TypedItemContainerGenerator
As ItemContainerGenerator<T>.
11 years ago
Steven Kirk
77e81c4360
Make TabControl/Deck work again.
11 years ago
Steven Kirk
ff331693f0
Started refactoring SelectingItemsControl.
11 years ago
Steven Kirk
ef50e97a2b
Added more ItemsPresenter tests.
Some of failing because of the way ItemContainterGenerator currently
works. Needs to be fixed.
11 years ago
Steven Kirk
09ef0309b1
Added validation/coercion to RangeBase properties.
11 years ago
Steven Kirk
9de4a11e18
Use tab navigation mode of ItemsPresenter
When creating ItemsPresenter's panel
11 years ago
Steven Kirk
39295aa8f2
Removed ItemsControl.MemberSelector.
It didn't work out.
12 years ago
Steven Kirk
2fbf3d0280
Make TabControl use Deck.
12 years ago
Steven Kirk
dd4bd88bd8
Added ItemsPresenter tests.
Needed to allow it to not be part of ItemsControl template to allow
easier testing.
12 years ago