Julien Lebosquain
960cb39414
Enable nullability in Controls.UnitTests ( #20373 )
3 months ago
Javier Suárez
7efc6d9bb0
[Feature] Move LetterSpacing to TextElement as inherited attached property ( #20141 )
* Add LetterSpacing property to the Button
* Created attached property
* Added samples
* Updated implementation
* Updated Themes
* Updated ButtonPage LetterSpacing sample
* Updated templates
* Updated API
4 months ago
Nikita Tsukanov
fedbb270c0
Make sure that tests inherit from ScropedTestBase ( #18690 )
11 months ago
Steven Kirk
6f03f1c3d6
Removed ITemplatedControl.
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
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
Steven Kirk
dcdaf5e0bf
Don't raise ResourceChanged on reparenting...
...when the new parent isn't attached to the tree. This prevents us sending a load of useless `ResourcesChanged` events.
6 years ago
Steven Kirk
21bddb1ced
Added test that fails after resource refactor.
`Changing_Resource_In_Templated_Parent_Should_Affect_Templated_Child` now fails because resource changed messages no longer traverse into templated children.
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
dc55d65287
Refactored styling.
- Don't use Rx in the styling system. Instead introduces `IStyleActivator` which is like an `IObservable<bool>`-lite in order to cut down on allocations.
- #nullable enable on touched files
6 years ago
Nikita Tsukanov
991f767c3c
Removed outdated tests
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fe5c1cec76
Use INameScope from IServiceProvider
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Steven Kirk
9ccf63d51b
Add failing test for clearing templated child's parent.
8 years ago
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
8 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
a232b137b5
Allow reuse of existing tooltip popup.
To do this, had to fix a problem where templated children weren't notified of being re-attached to a logical tree.
9 years ago
Steven Kirk
4730ee1c41
Fix spelling of descendant.
While "descendent" is an acceptable English spelling, "descendant" is the common spelling.
9 years ago
Steven Kirk
1b4ebf5b1d
Renamed AsBinding -> ToBinding.
10 years ago
Steven Kirk
3ee83263c8
Make indexer produce/consume IBinding.
10 years ago
Steven Kirk
72cb1cf311
Don't reapply templates unnecessarily.
When detaching and re-attaching to the same logical tree.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
1ae6b929b3
Think I've fixed the leak...
But I think it's showing up bugs elsewhere that need to be fixed.
10 years ago
Steven Kirk
d0efd0c6d4
Clear TemplatedParent of ex-template children.
This prevents them still being bound to their ex-TemplatedParent. Fixes
#435 .
10 years ago
Steven Kirk
a03dad9bab
Removed a bunch of unused members/classes.
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
567f0135ff
Make TemplatedParent inherit.
This means that we only need to set the TemplatedParent on the root of a
control's template, and on presenter children.
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
c6582d83c3
Merged the two separate TemplatedControlTests.
10 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
10 years ago
Steven Kirk
9eb54f59d2
Fixed name scopes.
Controls were being registered with the nearest name scope on the visual
tree, whereas they should be registered by traversing the logical tree.
10 years ago
Steven Kirk
16c2242757
Implemented NameScopes
Some tests still failing as controls are only registered with name scope
when attached to a rooted visual tree. Need to work around this by
explicitly registering controls when applying template.
11 years ago
Steven Kirk
01417ba883
Renamed ControlTemplate -> FuncControlTemplate
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
14c0e17f1b
Display DropDown current selection correctly.
11 years ago
Steven Kirk
c7dc89f06b
Fixed applying control templates.
And added unit tests for it.
11 years ago