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
a03b73a734
Always add control in measure queue to arrange queue.
And also removed the checks for `IsAttachedToVisualTree`: that's going to be checked in `Arrange` and `Measure`.
Fixes #11161
3 years ago
Max Katz
5a742ea2c4
Run jobs after headless input
3 years ago
Max Katz
35782d9a1b
Make sure callback are on the UI thread
3 years ago
Max Katz
0547001f3b
Cleanup
3 years ago
Giuseppe Lippolis
110b536738
fix(Animation): fix Issue #11156 System.InvalidOperationException: Call from invalid thread
3 years ago
Max Katz
73d726a9f5
Make AvaloniaTestAssemblyRunner use existing test case runners
3 years ago
Max Katz
bb893b189c
Make HeadlessUnitTestSession run individual frames per test
3 years ago
Max Katz
99f4739e85
Fix scenario when application attribute is not used
3 years ago
Max Katz
4aa6035ec3
Reuse text and geometry related headless mocks in Avalonia unit tests and benchmarks
3 years ago
Max Katz
8b6311710e
Check for SupportsRunLoops
3 years ago
Max Katz
629900d6d8
Instead of creating a fake test command, try to iterate over existing commands structure and replace only what's needed
3 years ago
Steven Kirk
3d693beffa
Clarify `ClearItemContainer` docs.
And change usages of "should" to "must" as it's not optional.
3 years ago
Steven Kirk
8a5a5c8d44
Remove element from list before recycling.
Remove the element from the realized element list before recycling it, so that `IndexFromContainer` and `ContainerFromIndex` report the container as not found during `ClearItemContainer`. Fixes selection being reset when a container is unrealized.
3 years ago
Max Katz
e61e540c23
Add missing ITextShaperImpl
3 years ago
Max Katz
e2805e4118
Use GetAwaiter().GetResult()
3 years ago
Max Katz
321bf26a0a
Support SetUp and TearDown methods by NUnit
3 years ago
Max Katz
eabd3ca7f0
Fix pack and execute tests on CI
3 years ago
Max Katz
d8da2179f2
Fix build
3 years ago
Max Katz
47f610abf3
Fix inconsistent async/non-async methods
3 years ago
Max Katz
ae04033c76
Use ExecutionQueue in test frameworks
3 years ago
Max Katz
2da88e7cfc
Implement Avalonia.Headless.NUnit integration
3 years ago
Max Katz
d59727e104
Implement AvaloniaFact and AvaloniaTheory attributes, introduce HeadlessUnitTestSession abstraction
3 years ago
Max Katz
06189f77d4
Add netstandard2.0 to the headless XUnit integration
3 years ago
Steven Kirk
8a354d8cb9
Only prepare items that are containers once.
When an `ItemsControl` returns true for `IsItemItsOwnContainer`, `ItemContainerPrepared` should only be called once the first time the container is prepared.
Requires that `ContainerFromIndex` returns `ItemIsOwnContainer` items that have previously been prepared in order for `SelectingItemsControl` to update their selection correctly when outside the realized viewport.
Fixes #11119
3 years ago
Steven Kirk
c77276d00a
Don't clear ItemIsOwnContainer in PanelContainerGenerator.
One shouldn't call `ClearContainer` on a container that is an item. Adjusted `SelectingItemsControlTests` because selection is actually maintained on move with containers hold their own `IsSelected` state.
Fixes #11128
3 years ago
Yannick Excoffier
4016da0a2c
Set double click on presenter instead of whole header
3 years ago
Steven Kirk
6c8afc714c
Correctly handle TreeViewPage data context change.
Fixes #11120 .
3 years ago
Steven Kirk
9f3dbfff6a
Added docs to clarify difference with SizeChanged.
3 years ago
Steven Kirk
109c05aeab
Increase max number of permitted layout attempts.
And log a message when a control was skipped due to a layout cycle.
3 years ago
Steven Kirk
b8fed4cbea
Remove hack from VirtualizingStackPanel.
No longer needed since layout invalidation was fixed in last commit.
3 years ago
Steven Kirk
c2220039da
Re-layout descendants when made effectively visible.
Fixes #11076 .
3 years ago
Max Katz
decf80cb77
Adds RenderScaling and DesktopScaling back to the public API together with ScalingChanged
3 years ago
Max Katz
89e1680501
Fix DefinitionList parsing
3 years ago
Max Katz
41d76f256b
Add AvaloniaListAttribute
3 years ago
Tom Deseyn
0921a98067
Use latest Tmds.DBus version.
3 years ago
Max Katz
b8ecad2cbc
Restore resource include validation
3 years ago
Max Katz
753b821035
Fix merged dictionaries ordering
3 years ago
Max Katz
bbbc1280ff
Rename RegionBrush to SystemRegionColor and use it in default templates
3 years ago
Max Katz
1aba81a27f
Fix non dynamic accent brushes
3 years ago
Max Katz
c9b1ed8f51
Implement ColorPaletteResources as a public API
3 years ago
Max Katz
a09c182e89
Implement SystemAccentColors backed by the actual system values
3 years ago
Max Katz
a507e92b31
Fix theme-dependend markup extensions not knowing current theme context
3 years ago
affederaffe
f77b67db97
Move comment
3 years ago
affederaffe
1117332e4d
Add AccentColor support for KDE
3 years ago
Max Katz
1bce8de686
Fix merge conflict
3 years ago
Steven Kirk
6b13c81527
Raise WindowBase.Resized before SizeChanged.
3 years ago
Emmanuel Hansen
2f5586fad0
make refresh visualizer PullDirection internal
3 years ago
Dan Walmsley
4fbcfac676
fix build.
3 years ago
Steven Kirk
cf52ab43cd
Added WindowBase.TryGetPlatformHandle.
#11062 made `WindowBase.PlatformImpl` internal so we need to expose a different want to get the window handle.
3 years ago