Jeremy Koritzinsky
92d171f154
VisualNodes are now owned by Scene objects, not by their parents. Add a Disposed member to make it easier to diagnose ownership bugs.
9 years ago
Steven Kirk
83f795480b
Fixed #1376
9 years ago
Steven Kirk
53a73df9fc
Updated version.
9 years ago
Steven Kirk
92094473e3
Handle pointer down/up events in Thumb.
Fixes #1372 .
9 years ago
Jeremy Koritzinsky
458d8bf760
Don't dispose replaced visual nodes if they're replaced with themselves.
9 years ago
Steven Kirk
e5800c17f1
Fix TextBlock click positioning.
When the click was outside the `TextPresenter`, it was not registering with the `TextBox` so the caret was being moved to the beginning.
9 years ago
Steven Kirk
b7de65f1aa
Fix TextBox text truncation.
Correctly set the value of the `TextBox`'s `HorizontalScrollBarVisibility` so that the text is not truncated.
Fixes #1354
9 years ago
Dan Walmsley
fafcecf0f3
system dialog combines the initialDirectory and InitialFileName on Gtk.
9 years ago
Nikita Tsukanov
3a42ef3463
Fixed designer focus issue
9 years ago
Jeremy Koritzinsky
53bf2431ed
Clean up OnRenderLoopTick code.
9 years ago
Steven Kirk
2af1f20108
Mark SizeToContent with [Flags].
And explicitly assign values.
9 years ago
sdoroff
f50223cb0d
Fixed a bug in tab navigation
TabNavigation.GetFirstInNextContainer would only check one sibling
and would move up to the parent if the first sibling was not focuable
9 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.
9 years ago
Steven Kirk
70d75c0eb5
Fix Window auto-sizing.
`Window` was acting like `SizeToContent="WidthAndHeight"` was set even when it wasn't. This fixes that.
9 years ago
Nikita Tsukanov
13171c4be3
Implemented `--session-id` and `--method win32` for previewer
9 years ago
Nikita Tsukanov
75d7341fa1
"Cherry-picked" EmbeddedWindowImpl.cs from single win32 assembly PR
9 years ago
Jeremy Koritzinsky
74f8930277
Fixed bug in TrimDrawOperations that wasn't disposing draw operations correctly.
9 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
9 years ago
sdoroff
267aab12ef
Altered OnKeyDown to accurately set handled
9 years ago
sdoroff
0a6da2cbfa
Altered OnKeyDown to accurately set handled
9 years ago
Jeremy Koritzinsky
85966d3ecf
Ref-count the draw operations collection in VisualNode so it correctly keeps the elements alive when only the collection is cloned (aka no changes are made by a cloned VisualNode) and the original VisualNode is disposed.
9 years ago
Jeremy Koritzinsky
ae7e7829d4
Fixed incorrect cast in DeferredRenderer's IVisualBrushRenderer implementation.
9 years ago
Jeremy Koritzinsky
d905721c46
Add more null short-circuiting checks in DeferredRenderer related to scene disposal.
9 years ago
Jeremy Koritzinsky
ebfa79ef64
Add null check for scene in DeferredRenderer disposal.
9 years ago
Jeremy Koritzinsky
7e174a79e0
Refactored refcounting and added tests for refcount tracking in the DeferredRenderer and friends.
9 years ago
Jeremy Koritzinsky
952f89883d
Fix build errors in SceneGraph and DeferredRenderer tests.
9 years ago
Jeremy Koritzinsky
617f35ce53
Add ref-counting checks throughout the SceneGraph nodes. Because IDrawOperations can be shared between IVisualNodes, they are now also ref-counted.
9 years ago
Steven Kirk
eb0e6650ca
Remove debug code.
9 years ago
Steven Kirk
b9ebff3fb2
Fixed malformed doc comment.
9 years ago
Steven Kirk
6b9e93d267
Fix window child constraint.
Instead of measuring the child and then clipping the child's desired size based on `SizeToContent`, instead pass a constraint based on `SizeToContent` to the child.
9 years ago
Steven Kirk
9b099de4a4
Addressed PR feedback.
9 years ago
Steven Kirk
51a47b3a94
Instance can be null here.
Was causing intermittently failing test: https://ci.appveyor.com/project/AvaloniaUI/Avalonia/build/0.1.4468
9 years ago
Steven Kirk
91a0811c18
Removed unused variable.
9 years ago
Steven Kirk
8901f1d781
Don't make IGeometryImpl implement IDisposable.
9 years ago
Steven Kirk
8a80a724d7
Implement disabling of ListBox scrollbars.
Fixes #1344 .
9 years ago
Steven Kirk
02c6ae3c1a
Added ScrollBarVisibility.Disabled.
9 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.
9 years ago
Steven Kirk
375e0f0a64
WIP
9 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.
9 years ago
Steven Kirk
438bc89a90
Preserve defining geometry transform.
Previous logic was overwriting `DefiningGeometry`'s transform with the transform calculated by the layout pass. Be sure to apply both transforms to the `RenderedGeometry`.
9 years ago
Steven Kirk
64ed0761c7
Rename Dispatcher invoke methods.
`InvokeAsync` -> `Post`
`InvokeTaskAsync` -> `InvokeAsync`
9 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
9 years ago
Steven Kirk
4888d11f2f
Respect CanScrollHorizontally in Arrange.
Fixes #1065
9 years ago
Steven Kirk
f22994a083
Added failing test for #1065 .
Also add setter for `ScrollContentPresenter.CanScrollHorizontally`.
9 years ago
José Pedro
7cccc6bda0
Use nameof where possible.
9 years ago
José Pedro
60a04fbd24
Fixed ToggleButton.IsChecked default value.
9 years ago
Jeremy Koritzinsky
e462e06193
Use memcpy instead of System.Runtime.CompilerServices.Unsafe
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
f72577cf92
Clean up test scripts
9 years ago
Dan Walmsley
b944783c1b
fix Skia SetForegroundBrush when length = 1.
9 years ago