Steven Kirk
30e78dc5b6
Only run unit tests on .net core.
This allows us to run them on linux.
9 years ago
Steven Kirk
8a80a724d7
Implement disabling of ListBox scrollbars.
Fixes #1344 .
9 years ago
Steven Kirk
64ed0761c7
Rename Dispatcher invoke methods.
`InvokeAsync` -> `Post`
`InvokeTaskAsync` -> `InvokeAsync`
9 years ago
Jeremy Koritzinsky
eb7c010462
Retarget .Net Framework projects to 4.7
Works around dotnet/standard#567 .
9 years ago
Jeremy Koritzinsky
39d5ac957f
Fix test.
9 years ago
Jeremy Koritzinsky
f65ae1918f
Change TransformedBounds to a direct property on Visual (exposed on IVisual) instead of using an attached property in BoundsTracker.
9 years ago
Steven Kirk
2a87dbd6ca
Fix opacity mask rendering.
We're potentially creating a new immutable version of the opacity mask each time the `VisualNode` is updated. Need to implement comparison between mutable and immutable brushes.
9 years ago
Steven Kirk
1d1f31794e
Fix layers with opacity.
We were pushing the opacity twice.
9 years ago
Steven Kirk
e6b5df8d08
Simplified DeferredRendererTests,
9 years ago
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
9 years ago
Steven Kirk
9609d93f3b
Don't create render layers for non-parent controls.
Only create a new render layer when a control has both an animating opacity _and_ children.
9 years ago
Steven Kirk
68bdbca899
Only create render layers when Opacity is animating.
Previously we were creating a new render layer for all controls with `Opacity != 1`. This was causing the `Calendar` page in ControlCatalog to render _really_ slowly. Instead, only create a new render layer when `Opacity` is being animated.
Also don't even render controls where `Opacity == 0`.
9 years ago
Steven Kirk
5cc5b91930
Fix xunit warnings.
9 years ago
Steven Kirk
880cf657ec
Accept root in IRenderer.HitTest.
Fixes #1221 .
9 years ago
Steven Kirk
e3d34f2eb8
Added a failing test for #1221
9 years ago
Steven Kirk
d1eb0512bb
Added failing test for #1171 .
9 years ago
Steven Kirk
5fd6f5ac6d
Snap bounding boxes to pixels.
9 years ago
Steven Kirk
685a509c5c
Reimplement commented-out tests.
9 years ago
Steven Kirk
bb5a7f0cd3
Removed IRenderLayerFactory
And use `IDrawingContextImpl.CreateLayer` instead.
9 years ago
Nikita Tsukanov
913149d093
Switched to .NET Standard 2.0
9 years ago
Steven Kirk
b5317085af
Tweaked formatting.
9 years ago
Dan Walmsley
b18d91ff74
Add inline data that tests comma seperated bezier curves.
9 years ago
Eli Arbel
42115b6ade
Fix #1107
9 years ago
Eli Arbel
d9b20fada4
Rect parse & type converter
9 years ago
Eli Arbel
8cc6d30696
Matrix.Parse & type converter
9 years ago
Steven Kirk
7de42e02e1
Clear scene for invisible root visuals.
When a root visual is hidden, clear `DeferredRenderer._scene` and completely rebuild it if it is shown again.
Fixes #1096
9 years ago
Steven Kirk
d2eca3968b
Removed IRendererFactory.
Make the `ITopLevelImpl` create the renderer instead.
9 years ago
Steven Kirk
daf59b8497
Start/stop the renderer on window show/hide.
9 years ago
Steven Kirk
0f81420ee2
Don't remove root layer when hiding root.
9 years ago
Steven Kirk
024573ddd5
Removed bad project references.
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
425a670b9d
Added immediate renderer hit tests.
Ported from `scenegraph`. Tests from
`VisualExtensionsTests_GetVisualsAt` moved there.
9 years ago
Steven Kirk
7119464206
Added ImmediateRenderer hit tests.
9 years ago
Steven Kirk
19a8b8aaf2
Moved hit testing tests.
9 years ago
Steven Kirk
1b9d61416f
Ported ImmediateRenderer from scenegraph branch.
10 years ago
Steven Kirk
1af559c52e
Fixed name of tests.
10 years ago
Steven Kirk
e6cb529878
Ported immutable media impls from scenegraph.
The deferred renderer requires immutable objects for drawing as it
renders on a separate thread.
10 years ago
Steven Kirk
376535b198
Make IFormattedTextImpl immutable.
Previously `IFormattedTextImpl` had `SetForegroundBrush` which set
mutable state. Make `FormattedText` fully mutable (before it was kinda
mutable, kinda immutable) and create immutable `IFormattedTextImpl`s on
demand.
10 years ago
Wiesław Šoltés
e9d108a506
Fixed xml tags
10 years ago
Wiesław Šoltés
3b3266cc7c
Converted Avalonia.Visuals.UnitTests to a new project system
10 years ago
Wiesław Šoltés
f8097cc27d
Added msbuild props for package references
10 years ago
Steven Kirk
42239d4498
Moved IDrawingContextImpl to Avalonia.Platform.
So it can be alongside its impl brethren.
10 years ago
Nikita Tsukanov
25c7be5b7a
Removed packages.config from csproj.files
10 years ago
Nikita Tsukanov
dc8a32d1b1
Run Avalonia.Base.UnitTests using `dotnet test`
10 years ago
Nikita Tsukanov
485fe1364e
Everything is buildable via MSBuild
10 years ago
Nikita Tsukanov
b6b5b9de88
Test now compile and can be run from visual studio
10 years ago
Nikita Tsukanov
b0a063838f
Migrated to PackageReference
10 years ago
Steven Kirk
609c571424
Added AspectRatio and division operator to Size.
10 years ago
Steven Kirk
64e8896144
Added Rect.Union empty tests.
10 years ago
Steven Kirk
5546ed043f
Added Rect.Union.
10 years ago