Julien Lebosquain
960cb39414
Enable nullability in Controls.UnitTests ( #20373 )
1 month ago
Nikita Tsukanov
fedbb270c0
Make sure that tests inherit from ScropedTestBase ( #18690 )
10 months ago
Max Katz
60c11167f8
Add default template to the ContentControl, remove theme specific templates ( #11365 )
* Move ContentPresenter template to the property default value
* Fix some unit tests
* Fix more tests
* Fix more tests
* Update api rules
2 years ago
Steven Kirk
0cb590e03b
Remove now-unnecessary casts.
3 years ago
Julien Lebosquain
9a06290142
Correctly remove ContentPresenter's content from its parent host
When the content is updated while being detached from the visual tree.
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
Steven Kirk
1945345cd1
Rename TemplatedParent priority to Template.
It no longer represents just `TemplatedParent` bindings, but every value or binding created by a template.
3 years ago
Steven Kirk
1a338ac087
Remove IStyler and make style apply internal.
- Removes the `IStyler` service and the `Styler` implementation
- Moves the logic for applying styles and control themes into `StyledElement`
- Removes the style `TryAttach` method from the public API
- Removes style caching for now - this will need to be added back
3 years ago
Giuseppe Lippolis
de4b55f8ee
feat(tests): Address rule CA1822
3 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
d7357ec876
Remove ContentControlMixin.
And implement the functionality in the content controls themselves. `ContentControlMixin` was too complex and even with its complexity had bugs (such as in #2821 ). By moving the functionality to the content controls there is some repeated code but it's much more straightforward.
7 years ago
Steven Kirk
5c407f966c
Added failing test for #2821 .
`ContentPresenter` doesn't set the logical parent of its child control after it has been removed from the logical tree and re-added.
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Jeremy Koritzinsky
cf8244b37a
Move current contents of Avalonia.Markup to Avalonia.Base. Move Avalonia.Markup.Xaml.Data/Parser classes to Avalonia.Markup since they're not Xaml-specific.
Use pattern-matching switch.
Fix bug from cleanup.
8 years ago
Steven Kirk
2e8521e690
Added failing test for #1271 .
8 years ago
Steven Kirk
0e8995e303
Added ContentControl.ContentTemplate.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
70a6b6dcb8
Prevent controls appearing twice in logical tree.
10 years ago
Steven Kirk
eec9a1f44a
Added shared TestRoot class.
And use it in every unit test project except SceneGraph as that one is
different.
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
4845dfd0fa
Added IContentPresenterHost.
Similarly to how we now have IItemsPresenterHost.
10 years ago
Steven Kirk
c4ceebcfb3
Ensure Presenter template is applied...
...before updating ContentControl's logical children, as otherwise the
Presenter.Child may be null as UpdateChild has not yet been called.
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
25fa7ddc6a
Added Carousel and CheckBox XAML styles.
10 years ago
Steven Kirk
01417ba883
Renamed ControlTemplate -> FuncControlTemplate
10 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
323c1a49c1
Removed core dependency on Splat
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
aa147f0423
More stylecoping.
11 years ago
Steven Kirk
07aa92e1b7
Allow TabControl to reparent children of its Deck.
11 years ago
Steven Kirk
5303eb7cd8
Make all tests pass again.
Menus displaying weirdly though.
11 years ago
Steven Kirk
38e85a3f36
Started reworking reparenting controls.
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
fba2633ab9
Renamed Decorator.Content property as Child.
11 years ago
Steven Kirk
fef04a5f5d
Implemented Menus a bit better.
Now appear correctly in logical tree and use general-purpose mechanisms
rather than direct communication between MenuItems.
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
fb08924070
Make TabControl logical child test pass.
And simplified logic in selecting ContentControl logical child.
11 years ago
Steven Kirk
5a1aca2876
Make template find methods to extension class.
11 years ago
Steven Kirk
a4bf79b7cc
Moved tests to Tests subdir.
11 years ago
Steven Kirk
1a3a78847b
Converted tests to run with xUnit.
11 years ago
Steven Kirk
2c1d2cb7a8
Display logical tree in DevTools.
11 years ago
Steven Kirk
70ff41b060
Use Control.ApplyTemplate to apply template.
11 years ago
Steven Kirk
309ac30a41
Make ContentControl child be logical child.
The control this is created by the ContentPresenter now appears as the
logical child of the parent ContentControl.
11 years ago