Steven Kirk
22bda08a90
Lazily initialize DataTemplates.
Added an `IDataTemplateHost` interface with a `IsDataTemplatesInitialized` property to prevent the need for allocating empty `DataTemplates` collections for many controls.
9 years ago
Steven Kirk
090a1ec8cf
Lazily initialize Styles.
Added an `IStyleHost.IsStylesInitialized` property to prevent the need for allocating empty `Styles` collections for many controls.
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
9a0df79ec5
Use UnitTestApplication in some more places.
Also removed service registration from some tests that now don't require
it.
10 years ago
Steven Kirk
7adc902b99
Handle null content in TabControl.
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
a6b74db847
Merge branch 'logical-tree' into leaks
10 years ago
Steven Kirk
3307ef8712
Register templated controls with name scope.
Usually controls are only registered with their name scope when they get
added to a rooted visual tree, but this causes problems for tests, and
would mean the templated control wouldn't work if the client called
ApplyTemplate themselves before the control is added to the visual tree.
Work around this by explicitly registering template controls with the
name scope when the template is applied.
To allow this, we need to allow controls to be registered with a name
scope multiple times.
11 years ago
Steven Kirk
01417ba883
Renamed ControlTemplate -> FuncControlTemplate
11 years ago
Steven Kirk
5bfa93b747
Renamed Deck -> Carousel.
11 years ago
Steven Kirk
5a40e57f2b
Added extra TabControl test.
11 years ago
Steven Kirk
292a04d973
Renamed DataTemplate -> FuncDataTemplate.
11 years ago
Steven Kirk
ad70cf874c
Make the TestApplication work again.
Expose the tab item content selector from TabControl, and make
FuncMemberSelector return default(T) if the parameter is of the wrong
type.
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
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
aa88783b18
Fix failing tests.
11 years ago
Steven Kirk
aa147f0423
More stylecoping.
11 years ago
Steven Kirk
a4680f2041
Removed TabControl.SelectedContent.
Not currently needed, as Deck is responsible for displaying the selected
content.
11 years ago
Steven Kirk
07aa92e1b7
Allow TabControl to reparent children of its Deck.
11 years ago
rob
80935434bc
#46 Added remove-Tests for TabStrip and TabControl.
TabControl's SelectedContent fails.
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
7f608ffa6c
Fixed failing tests.
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
83cad3a98b
Update TabControl template in test.
Tests still failing but no longer because the Deck couldn't be found.
11 years ago
Steven Kirk
fb08924070
Make TabControl logical child test pass.
And simplified logic in selecting ContentControl logical child.
11 years ago
Steven Kirk
1c8a53a880
Test correct result from TabControl logical child.
Doesn't actually pass yet...
11 years ago
Steven Kirk
d25c4e0b4c
Some work on TabControl/TabStrip.
11 years ago