Steven Kirk
2734a67fdf
Fixed broken csproj.
9 years ago
Steven Kirk
42239d4498
Moved IDrawingContextImpl to Avalonia.Platform.
So it can be alongside its impl brethren.
9 years ago
Wiesław Šoltés
3a0ac21b48
Consolidated NuGet package versions
9 years ago
Wiesław Šoltés
1615b7992c
Do not include sdk framework twice
9 years ago
Wiesław Šoltés
26561a5ad4
Only include when using net461 framework
9 years ago
Wiesław Šoltés
07b5756b21
Removed non existing items
9 years ago
Wiesław Šoltés
e2489a6b28
Removed unused variable
9 years ago
Wiesław Šoltés
6d557f7819
Already included in coretests.props
9 years ago
Steven Kirk
d7703d619c
Fixed failing test.
And removed `TestServices.WindowImpl` as it was being ignored.
9 years ago
Steven Kirk
65dd1a423b
Use the default compile items in unit tests.
For the tests that have been ported to .net core at least.
9 years ago
Nikita Tsukanov
6cf037ad7c
One liners
9 years ago
Nikita Tsukanov
66ac05b2c2
Removed <Name> elements from new projects
9 years ago
Nikita Tsukanov
d1caaaca3e
Removed <Project>
9 years ago
Nikita Tsukanov
25c7be5b7a
Removed packages.config from csproj.files
9 years ago
Steven Kirk
65f9fe67f7
Added a set of immutable brushes.
Make `SolidColorBrush` immutable, but make the static `Brushes`
properties return immutable brushes. The immutable brushes will be
needed by the deferred renderer.
9 years ago
Nikita Tsukanov
886a65beaa
Use dotnet test for layout and controls tests
9 years ago
Nikita Tsukanov
dc8a32d1b1
Run Avalonia.Base.UnitTests using `dotnet test`
9 years ago
Nikita Tsukanov
485fe1364e
Everything is buildable via MSBuild
9 years ago
Nikita Tsukanov
b6b5b9de88
Test now compile and can be run from visual studio
9 years ago
Nikita Tsukanov
363898e658
Migrated render tests to PackageReference
9 years ago
Nikita Tsukanov
b0a063838f
Migrated to PackageReference
9 years ago
Steven Kirk
380bd7b74f
Don't validate thread affinity for bindings.
The scheduler should ensure that bindings are called on the correct
thread.
9 years ago
Steven Kirk
609c571424
Added AspectRatio and division operator to Size.
9 years ago
Steven Kirk
64e8896144
Added Rect.Union empty tests.
9 years ago
Steven Kirk
5546ed043f
Added Rect.Union.
9 years ago
Steven Kirk
f6dee9eab4
Add interfaces for all brush types.
Also:
- Change `GradientBrush.GradientStops` to be a readonly list, as changes
to it would have been ignored anyway.
- Fix typo in ImageBrush filename.
9 years ago
Steven Kirk
a46be4e200
Ensure correct thread for AvaloniaProperty access.
Previously we ensured that `AvaloniaObject.SetValue` was run on the main
thread. This makes sure that `GetValue`, `IsSet` and `ClearValue` are
also run on the main thread. Unit testing this turned out to be more
complicated than expected, because `Dispatcher` keeps a hold of a
reference to the first `IPlatformThreadingInterface` it sees, so made
`UnitTestApplication` able to notify `Dispatcher` that it should update
its services.
9 years ago
Steven Kirk
71c6c572ac
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
9 years ago
Steven Kirk
4ca0bb72b2
Added GetObservable for routed events.
Fixes #905 .
9 years ago
Nikita Tsukanov
90a4915549
Implemented WritableBitmap
9 years ago
Nikita Tsukanov
7013033a1b
Added `Bitmap(PixelFormat format, IntPtr data, int width, int height, int stride)` constructor
9 years ago
Nikita Tsukanov
432153c006
Readd [Fact] for path tests
9 years ago
Nikita Tsukanov
026c943055
Fixed tests
9 years ago
Nikita Tsukanov
46de034f98
Don't skip tests that are passing now
9 years ago
Nikita Tsukanov
d17b32d7bd
Fixed tests
9 years ago
Nikita Tsukanov
c93a6235aa
Make sure that Renderer is disposed when TopLevel is closed
9 years ago
Nikita Tsukanov
830a4963fe
Added netcoreapp1.0 build for Avalonia.Skia.Desktop, updated splat
9 years ago
Nikita Tsukanov
374d600275
Added support for multiple drawing methods for window implementations. Added framebuffer support
9 years ago
Steven Kirk
240bc4d2ca
Fix horizontal scroll with virtualized items.
Fixes #849
9 years ago
Jeremy Koritzinsky
d73350e0fd
Fixes intermittent test failures on AppVeyor when running Leak Tests.
9 years ago
Steven Kirk
7d6503a5f7
Added RelativeSource=Self XAML tests.
9 years ago
Steven Kirk
8f21388e28
Added RelativeSource=Self binding mode.
9 years ago
Steven Kirk
90f4cfbea3
Register namescoped controls with parent namescope.
If we have e.g. a named UserControl in a window then we want that
control to be findable by name from the Window, so register with both
name scopes. This differs from WPF's behavior in that XAML manually
registers controls with name scopes based on the XAML file in which the
name attribute appears, but we're trying to avoid XAML magic in Avalonia
in order to made code-created UIs easy. This will cause problems if a
UserControl declares a name in its XAML and that control is included
multiple times in a parent control
(as the name will be duplicated), however at the moment I'm fine with
saying "don't do that".
Fixes #829 .
9 years ago
Steven Kirk
799ffe72b8
Fix erroneous test expectations.
9 years ago
Steven Kirk
44f6d12157
Add failing test for #834 .
9 years ago
Steven Kirk
f73a10b593
Clear ContentPresenter data context.
When assigning a control to `ContentPresenter.Content` after a
non-control the data context should get cleared. Fixes another problem
in #831 .
9 years ago
Steven Kirk
15896f3158
Added failing test for #831 .
9 years ago
Steven Kirk
a0a201006f
Merge overridden direct property metadata.
9 years ago
Jeremy Koritzinsky
058e28640c
Fixed some whitespace.
10 years ago
Jeremy Koritzinsky
1dc96e4184
Added more tests.
10 years ago