Dan Walmsley
39ab03c35d
Revert "Merge pull request #7555 from AvaloniaUI/fixes/7552-visibility-layout-invalidation"
This reverts commit 8a8deda903 .
4 years ago
Max Katz
8a8deda903
Merge pull request #7555 from AvaloniaUI/fixes/7552-visibility-layout-invalidation
Fix visibility layout invalidation
4 years ago
Jumar Macato
cf91a06ce4
Merge pull request #6915 from AvaloniaUI/update/samples-tests-net6
Update samples/tests to net6.0
4 years ago
Max Katz
57b7a3a8b2
Update tests per new default
5 years ago
Dan Walmsley
315d8be0ea
sign more test assemblies
5 years ago
Giuseppe Lippolis
c98918bc2a
Update tests
5 years ago
Steven Kirk
67215a8590
Removed outdated tests.
5 years ago
Steven Kirk
a0e8afe841
Added rotate transform test.
6 years ago
Steven Kirk
b5da0310f1
Update tests from UWP tests.
UWP tests are at: https://github.com/grokys/EffectiveBoundsTestsUWP
Try to make the Avalonia tests match them as closely as possible in order to easily port them across.
6 years ago
Steven Kirk
9c7aeaf713
Initial implementation of EffectiveViewportChanged.
6 years ago
Steven Kirk
259529fbcd
Added unit test for not laying out invisible toplevel.
6 years ago
Steven Kirk
d3c3741bec
No longer need to pass root to ExecuteInitialLayoutPass.
6 years ago
Steven Kirk
7694fc0484
Don't run layout passes on hidden TopLevels.
To do this we need to pass the root to `LayoutManager`.
Fixes #4161
6 years ago
Rustam Sayfutdinov
8414ace5cf
Remove duplicate code for RoundLayoutValue
6 years ago
Steven Kirk
bc891efc13
Don't raise ScrollChanged if nothing changed.
And remove empty braces in test.
6 years ago
Steven Kirk
d46265233d
Raise LayoutUpdated at the end of layout pass.
This attempts to match the behavior of `LayoutUpdated` in WPF and UWP.
6 years ago
Steven Kirk
1e74316f63
Add unit test for `UseLayoutRounding`.
6 years ago
Steven Kirk
c6860ceefa
Bypass ArrangeCore logic in top-level controls.
Top-level controls cannot have a `Bounds` offset, and their `(Min)/(Max)/Width` and `(Min)/(Max)/Height` reflects the client size of the actual window, so don't need to be applied at the layout level.
Fixes #3784
6 years ago
Steven Kirk
faec3ae67f
Added NonVirtualizingStackLayout.
Required fixing/implementing a bunch of infrastructure around non-virtualizing layouts.
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
30e8cac05d
Update to .NET core 3.1.
6 years ago
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
6 years ago
Steven Kirk
ccd7236346
Added failing test for #3550 .
Calling `InvalidateMeasure` during `ExecuteInitialLayoutPass` causes invalid bounds/desired size.
6 years ago
Benedikt Schroeder
1b0221e224
Reworked the font manager to better manage resoures and also work properly with the application lifetime
6 years ago
Benedikt Schroeder
83bfb8ec70
Initial implementation of a font manager
6 years ago
Steven Kirk
b317df99e7
Added failing test for #3041 .
6 years ago
Steven Kirk
e7e57d0e91
Fix text rendering where TextAlignment != Left.
The renderer was using the wrong bounds for text where `TextAlignment != Left` as seen in #1625 . To fix this, change `FormattedTextImpl.Size` to `Bounds`, which returns a rect that takes into account the text alignment and similarly change `FormattedText.Measure` to return a `Rect` instead of a `Size.
Fixes #1625 .
7 years ago
Steven Kirk
b32a10ceda
Update tests/Avalonia.Layout.UnitTests/LayoutManagerTests.cs
Co-Authored-By: donandren <donandren@gmail.com>
7 years ago
Steven Kirk
9b4bd8d621
Update tests/Avalonia.Layout.UnitTests/LayoutManagerTests.cs
Co-Authored-By: donandren <donandren@gmail.com>
7 years ago
Steven Kirk
260789c425
Update tests/Avalonia.Layout.UnitTests/LayoutManagerTests.cs
Co-Authored-By: donandren <donandren@gmail.com>
7 years ago
Steven Kirk
61be769d61
Update tests/Avalonia.Layout.UnitTests/LayoutManagerTests.cs
Co-Authored-By: donandren <donandren@gmail.com>
7 years ago
Andrey Kunchev
a4132890bf
add unit tests for layout queue
7 years ago
Andrey Kunchev
d53dbe9416
add some more layout manager tests for potential issues with infinity loop and proper work
7 years ago
Wiesław Šoltés
338fe1d5eb
Use thickness instead of width and height
7 years ago
Nikita Tsukanov
2741fec63e
Register cursor factory for tests
7 years ago
Wiesław Šoltés
29cef8a7de
Update FullLayoutTests.cs
7 years ago
wieslawsoltes
5d8c6beed0
Fix tests
7 years ago
wieslawsoltes
1d8ea08d0b
Try to fix tests
7 years ago
Jeremy Koritzinsky
acb3d46ca0
Enable generating NuGet packages via the MSBuild Pack target.
8 years ago
Jeremy Koritzinsky
4ec647b870
Make our unit tests support library (Avalonia.UnitTests) target netstandard2.0 so we don't have to worry about targetting .NET Framework on linux.
8 years ago
Steven Kirk
7ba9d33b0e
Added extra test for Bounds/Margin.
And removed empty test.
8 years ago
Steven Kirk
30e78dc5b6
Only run unit tests on .net core.
This allows us to run them on linux.
8 years ago
Steven Kirk
8a80a724d7
Implement disabling of ListBox scrollbars.
Fixes #1344 .
8 years ago
Steven Kirk
46bcbacc53
Fix layout in ScrollContentPresenter.
- Share common layout logic between `Border`, `ContentPresenter` and `ScrollContentPresenter`
- Added a bunch of tests for things not previously convered
- Fix `ScrollContentPresenter` child layout
8 years ago
Jeremy Koritzinsky
eb7c010462
Retarget .Net Framework projects to 4.7
Works around dotnet/standard#567 .
8 years ago
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
8 years ago
Steven Kirk
5cc5b91930
Fix xunit warnings.
8 years ago
Nikita Tsukanov
a4c9f1e400
Make ShapeLayoutTests use MockPlatformRenderInterface
8 years ago
Nikita Tsukanov
913149d093
Switched to .NET Standard 2.0
9 years ago
Eli Arbel
aee42bad6c
Add scroll bar & slider buttons
9 years ago