Nikita Tsukanov
fee5b4e594
Support default clr-namespace when loading XAML from Uri or previewer
8 years ago
Steven Kirk
53ff0e178c
Added failing test for #1376
8 years ago
Jeremy Koritzinsky
8817910549
Add ref-counting for the scene instance in DeferredRenderer to ensure that we don't dispose a scene while it is being rendered.
Also rename Scene.Clone to Scene.CloneScene to prevent confusion between IRef<Scene>.Clone and Scene.Clone.
8 years ago
Jeremy Koritzinsky
74f8930277
Fixed bug in TrimDrawOperations that wasn't disposing draw operations correctly.
8 years ago
sdoroff
5dce65f7b6
Created a shared DataValidationErrors framework
Moved Validation Error tracking to attached an attached property
Created an shared error indicator that can be simply added to control
templates and re-styled across all controls
This should reduce the need for code and markup duplication while
allowing for a consistent visual interface
8 years ago
Jeremy Koritzinsky
7e174a79e0
Refactored refcounting and added tests for refcount tracking in the DeferredRenderer and friends.
8 years ago
Jeremy Koritzinsky
8b97174735
Fix tests to correctly access the item of the ref-counted instance.
8 years ago
Jeremy Koritzinsky
952f89883d
Fix build errors in SceneGraph and DeferredRenderer tests.
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
7458f28ca9
Fix intermittently failing test.
Fixed in https://ci.appveyor.com/project/AvaloniaUI/Avalonia/build/0.1.4466 : this should prevent that by keeping both of the data objects alive.
8 years ago
Steven Kirk
6133837600
Locate tests directory in code.
Rather than using a hard-coded path.
8 years ago
Steven Kirk
8a80a724d7
Implement disabling of ListBox scrollbars.
Fixes #1344 .
8 years ago
Steven Kirk
52dcd41cd9
Don't dispose geometry impls.
We can't do this until we have ref counting infrastructure in, as the impls may still be in use by the deferred renderer.
8 years ago
Steven Kirk
589b76e9cd
Moved render tests for each platform to their own directory.
The test .cs files stay in the `Avalonia.RenderTests` directory but the D2D and Skia render test .csprojs are moved to their own directory: include the test files by using a glob in the .csproj.
This avoids the hack we were having to do to get `BaseIntermediateOutputPath` to work - we no longer have this problem as now each .csproj has its own directory, it can use the default directory for intermediate files.
8 years ago
Steven Kirk
d2e1eba876
Refactored geometry.
There were a number of problems with `Geometry` and its subclasses and platform implementations. Fix these, for more details see the PR that this commit is a part of.
8 years ago
Steven Kirk
42f0f6a23f
Added failing test for #1343 .
8 years ago
Steven Kirk
062f67cd18
Added expected test output.
8 years ago
Steven Kirk
7a60b790b0
Added failing test for #1341 .
8 years ago
Steven Kirk
64ed0761c7
Rename Dispatcher invoke methods.
`InvokeAsync` -> `Post`
`InvokeTaskAsync` -> `InvokeAsync`
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
Steven Kirk
f22994a083
Added failing test for #1065 .
Also add setter for `ScrollContentPresenter.CanScrollHorizontally`.
8 years ago
José Pedro
7cccc6bda0
Use nameof where possible.
9 years ago
Jeremy Koritzinsky
1c12cd4bd6
Fix x64 builds of Avaloina.Direct2D1. Refactor build scripts to reduce time and fix issues.
9 years ago
Jeremy Koritzinsky
b502f48ff8
Make sure Direct2D1 Unit tests (non-render tests) run in the build.
9 years ago
Jeremy Koritzinsky
f72577cf92
Clean up test scripts
9 years ago
Jeremy Koritzinsky
abe1afbb01
Retarget base unit tests library (that is just included in tests) back to net461.
9 years ago
Jeremy Koritzinsky
bc3e3cb25d
Update project file for Avalonia.UnitTests to use net47 instead of net461
9 years ago
Jeremy Koritzinsky
eb7c010462
Retarget .Net Framework projects to 4.7
Works around dotnet/standard#567 .
9 years ago
Jeremy Koritzinsky
ba481365f6
Enable turning off the setup check for appbuilder tests.
9 years ago
Jeremy Koritzinsky
b0d013ad25
Fix tests.
9 years ago
Jeremy Koritzinsky
b463d04e9f
Make KeyGestures with +,-,. in them match with both the non-numpad keys and the matching numpad keys.
Fixes #225
9 years ago
Jeremy Koritzinsky
6d075ad27b
Fix #424 .
9 years ago
Jeremy Koritzinsky
8bcd07730a
Change StylingParent for Popup to be PopupRoot so local styles flow to it.
9 years ago
Jeremy Koritzinsky
bdaf4a2046
Fix #1182 .
9 years ago
Steven Kirk
d01e19e3f4
Added failing test for #1275 .
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
78cbaee3a0
FIx collection comparisons.
9 years ago
Steven Kirk
4676ac5fb2
Don't use ObserveOn in Bindings.
Instead of using `Observable.ObserveOn` in bindings, interface with `Dispatcher.UIThread` to schedule binding notifications on the UI thread. This saves a significant amount of memory.
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
Jeremy Koritzinsky
05eda280de
Refactor DeferredSetter logic to allow passing references to backing fields and utilizing that in all usages. Refactor SetAndRaise logic to be combined and simplified between the two use cases. Now the common case delegates to the less specialized case.
9 years ago
Jeremy Koritzinsky
ca9a4c4128
PR Feedback.
9 years ago
Jeremy Koritzinsky
d8efff505d
Clean up formatting. Fix bug in PriorityValue usage of DeferredSetter. Change DeferredSetter to use ConditionalWeakTable to not hold strong references to PriorityValue objects.
9 years ago
Steven Kirk
4f8f5e9c71
Added some benchmarks
Added some benchmarks to test setting and binding properties.
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
409e40c8be
Added AvaloniaObject.IsAnimating(property).
Added a method to test whether a property on an object is currently animating.
9 years ago