Steven Kirk
479d480ad9
Parameterize logger on area as well as level.
So we can filter our more logging calls early.
6 years ago
Dariusz Komosinski
8c5b22c8cc
Initial CSS like transform support.
6 years ago
Steven Kirk
83098e9923
Enable transitions for non-Visuals.
`Visual` knows when it's attached to the visual tree, so it can enable transitions then.
This is a hack due to the fact that non-Visuals currently don't know when to enable transitions.
6 years ago
Steven Kirk
d1fc5ee92e
Reworked transitions.
- Don't apply transitions before control is added to the visual tree
- Don't allow transitions on direct properties
- Ignore animated values when determining whether to trigger a transition
- Cancel transition when removed from `Transitions` collection
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
Dariusz Komosinski
1027168c61
Remove omen of bad performance.
7 years ago
Dariusz Komosinski
1909d7a778
Avoid IAffectsRender subscribe attempts on values that can't implement it.
7 years ago
Dariusz Komosinski
c91559548e
Remove LINQ from Visual and StyledElement attach/detach funtions.
7 years ago
Dariusz Komosinski
552e536aec
Cache delegates used for reacting to logical and visual children changes.
7 years ago
Steven Kirk
6be3acb46c
Make ValueStore typed.
Major refactor of the Avalonia core to make the styled property store typed.
7 years ago
Dariusz Komosinski
7a13d819fd
Optimize and add new efficient visual tree extensions.
7 years ago
Dariusz Komosinski
5814bd7163
Remove direct logging functions.
7 years ago
Dariusz Komosinski
01a404836e
Reduce allocations caused by logging.
7 years ago
Steven Kirk
0e7f4cac81
Ensure control is invalidated on ZIndex change.
7 years ago
Steven Kirk
bc5a101faf
Render changes to child order/zindex.
Fixes #2714 .
7 years ago
Steven Kirk
9eac3b6203
Fix TranslatePoint.
- Make `VisualExtensions.TranslatePoint` respect render transforms.
- Move `IVisual.TransformToVisual` out of the interface and into `VisualExtensions` as an extension method
- Make `TranslatePoint` return a nullable value as `TransformToVisual` does, so it can return null when controls don't have a common ancestor
7 years ago
José Pedro
48dccadfb0
Fixed argument exception constructor calls.
Use nameof where possible.
Fixed wrong check in RelativeSource.AncestorLevel.
8 years ago
Dan Walmsley
2d7d9bc900
whitespace.
8 years ago
Dan Walmsley
556c1373e1
fix affectsrender memory leak with WeakEventHandlerManager
8 years ago
Steven Kirk
6961d55e7a
Only log binding errors when attached to a tree.
8 years ago
Nikita Tsukanov
f14aac365b
WIP
8 years ago
Andrey Kunchev
85c786e4e9
Fir TransformToVisual and use it in ImmediateRenderer
8 years ago
Steven Kirk
ac0c9e69cd
Added IAffectsRender interface...
...and use it as a general-purpose means of attaching to property values that can affect render.
8 years ago
Steven Kirk
a5a5b36ddc
Invalidate controls when brush changed.
8 years ago
Steven Kirk
f39e38545d
Use inner methods for invalidation.
8 years ago
Steven Kirk
c7b42d1326
Add the old overloads back in.
And mark them as `[Obsolete]`.
8 years ago
Steven Kirk
fad2e317ba
Make AffectsMeasure/Arrange/Render typed.
8 years ago
Miha Markič
0a38876590
Spellchecks all projects except for Base, Controls, Samples and Testing
8 years ago
Jeremy Koritzinsky
da0ab8b681
Move the styling system up the stack to live right below Avalonia.Animation since it has no dependencies on anything further down the dependency chain
8 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
fc7a83ee72
Fixed panel collection change actions.
As suggested in #1286
9 years ago
Steven Kirk
2c61d17bc3
Always raise visual tree attach/detach events.
Previously, if the user overrode `OnAttachedToVisualTree` or `OnDetachedFromVisualTree` and forgot to call the base implementation, the events wouldn't be raised. It's very important that these events get raised so moved the code to raise them to `OnAttachedToVisualTreeCore`/`OnDetachedFromVisualTreeCore`.
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
69a06e452e
Fixed some Visuals unit tests.
Ported some stuff from `scenegraph` that was missed in #956 , which fixes
some of the failing Avalonia.Visuals.UnitTests.
9 years ago
Steven Kirk
1b9d61416f
Ported ImmediateRenderer from scenegraph branch.
10 years ago
Steven Kirk
558f98f5bf
Remove refrences to "scene graph" in Visual.
As its now a separate thing.
10 years ago
Steven Kirk
d34c279ba1
WIP: Adding render layers.
10 years ago
Steven Kirk
934e18c8ba
Initial impl of incremental update to SceneGraph.
10 years ago
Steven Kirk
59ea52e254
Clip affects rendering.
10 years ago
Steven Kirk
59c49d259d
Renamed assembly SceneGraph -> Visuals.
To make way for low-level scene graph library.
10 years ago
Steven Kirk
6afa000c42
Added a render loop.
Rather than repainting whenever, this adds a render loop which is called
N times per second. IRenderQueueManager and ITopLevelRenderer have been
removed, replaced by IRenderer.
10 years ago
Steven Kirk
c554467d13
Invalidate measure when control removed
When a control's parent changes, invalidate its measure and the measure
of all descendents.
10 years ago
Jeremy Koritzinsky
5e0f12235f
Added the platform independent interface and the Direct2D1 implementation of opacity masks.
10 years ago
donandren
31147af9d3
renamed Visual.TransformOrigin -> RenderTransformOrigin
10 years ago
Jeremy Koritzinsky
7969504431
Added path clipping infrastructure. Got Skia implementation working.
10 years ago
Steven Kirk
710de1f85a
Fix an edge case in visual parenting.
If a child that already has a parent was added as a visual child of
another control and the exception caught, the control would still be
present in the VisualChildren collection.
10 years ago
Steven Kirk
ab60beaa54
Check visual parent is not already set.
When setting the visual parent of a control, make sure that it's not
already set. The code in issue #513 was trying to reparent an already
parented control, causing problems - this makes sure that this can't
happen.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
45b5ec5d8f
Added Control.Initialized.
11 years ago
Steven Kirk
50322aabf6
Use the same pattern for visual tree (de)attachment
As for logical tree.
11 years ago