Dariusz Komosinski
9c4bcbdea9
Add more coverage for TryParse
6 years ago
Dariusz Komosinski
34fa98c013
Unify color parsing and expose ROS and string based variants properly.
6 years ago
Dariusz Komosinski
9391ddbab5
Add failing tests for shorthand color parsing.
6 years ago
danwalmsley
a55bc8c436
Merge pull request #3960 from AvaloniaUI/fixes/3467-uselayoutrounding
Fix UseLayoutRounding calculations.
6 years ago
Steven Kirk
ba9e3e7641
Updated expected render test output.
6 years ago
Steven Kirk
83e82def70
Merge branch 'master' into fixes/3467-uselayoutrounding
6 years ago
Benedikt Stebner
d103c68993
Merge pull request #3972 from AvaloniaUI/fixes/enable-previewer
Enable the previewer in Avalonia samples.
6 years ago
Steven Kirk
e3f6a9f5ab
Enable the previewer in Avalonia samples.
6 years ago
Dariusz Komosiński
8b26f4ef25
Merge pull request #3957 from AvaloniaUI/refactor/resources
Refactor resources to produce less `ResourcesChanged` events.
6 years ago
Steven Kirk
ab9522f83d
Fix silly mistake.
6 years ago
Dariusz Komosiński
7b202b71a7
Merge branch 'master' into refactor/resources
6 years ago
Steven Kirk
0a1cb6fdf8
Added ResourcesChangedEventArgs.Empty.
We don't need to allocate a new instance each time.
6 years ago
Steven Kirk
dcdaf5e0bf
Don't raise ResourceChanged on reparenting...
...when the new parent isn't attached to the tree. This prevents us sending a load of useless `ResourcesChanged` events.
6 years ago
Steven Kirk
119d92732f
Don't UseLayoutRounding on ScrollBar.
Its default size of 18 with a thumb size of 8 can't be laid out to device pixels with a scaling of 1.5x. Previously, the thumb had more space on the right than the left, with this change it had more space on the left than the right. For some reason though it was more noticably offset with the space on the left. We may need to change the default sizes for `ScrollBar`.
6 years ago
Steven Kirk
1e74316f63
Add unit test for `UseLayoutRounding`.
6 years ago
Steven Kirk
bd0b894271
Fix UseLayoutRounding calculations.
Ported `RoundLayoutSize` and `RoundLayoutValue` from WPF and use these to calculated layout rounding.
Fixes #3467 .
6 years ago
Benedikt Stebner
29ee78661f
Merge pull request #3877 from Gillibald/fixes/VisualBrush
Fix VisualBrush tests
6 years ago
Benedikt Schroeder
5824d77d0f
Fix VisualBrush tests
6 years ago
Steven Kirk
ccc651b9ef
Merge pull request #3922 from Gillibald/initializeGlyphRunOnRender
Initialize the GlyphRunImpl on render
6 years ago
Steven Kirk
2c2b958a46
Merge branch 'master' into initializeGlyphRunOnRender
6 years ago
Steven Kirk
17a44015c6
Merge pull request #3942 from markl65536/FixTypeUtilities
Fix type utilities
6 years ago
Steven Kirk
742b7ecf81
Merge branch 'master' into FixTypeUtilities
6 years ago
Steven Kirk
9efb044e45
Merge pull request #3951 from MarchingCube/fix-path-geometry-leak
Make sure that Path does not stay subscribed to Data indefinitely.
6 years ago
Dariusz Komosiński
3544be0156
Merge branch 'master' into fix-path-geometry-leak
6 years ago
Steven Kirk
f85ceddf87
Merge pull request #3953 from MarchingCube/docs-shape
Documentation and nullable annotations for Shape control.
6 years ago
Steven Kirk
b6aec8f4e0
Propagate ResourcesChanged to visual layers.
6 years ago
Steven Kirk
7022c137e7
Propagate ResourcesChanged to template children.
Makes `Changing_Resource_In_Templated_Parent_Should_Affect_Templated_Child` pass again.
6 years ago
Steven Kirk
0f5c97109b
Fix outdated naming.
6 years ago
Steven Kirk
21bddb1ced
Added test that fails after resource refactor.
`Changing_Resource_In_Templated_Parent_Should_Affect_Templated_Child` now fails because resource changed messages no longer traverse into templated children.
6 years ago
Dariusz Komosiński
44f03692a8
Merge branch 'master' into docs-shape
6 years ago
Dariusz Komosiński
a2032b2611
Merge branch 'master' into fix-path-geometry-leak
6 years ago
Dariusz Komosiński
a3cd0e6868
Merge pull request #3958 from AvaloniaUI/fixes/setterbindinginstance-leak
Fix leak in PropertySetterBindingInstance.
6 years ago
Dariusz Komosiński
6dc6f4f63a
Merge branch 'master' into fixes/setterbindinginstance-leak
6 years ago
Dariusz Komosiński
e56797cb47
Merge branch 'master' into fix-path-geometry-leak
6 years ago
Dariusz Komosiński
492ef537cb
Merge pull request #3955 from wieslawsoltes/Fix3954
Make DrawingContext.PushSetTransform method public
6 years ago
Dariusz Komosiński
c09bff6481
Merge branch 'master' into Fix3954
6 years ago
Steven Kirk
8a74069932
Fix leak in PropertySetterBindingInstance.
`_subscription` was being used twice: for the subscription from the `PropertySetterBindingInstance` to the control (line 69) and from the subscription to the source binding to the `PropertySetterBindingInstance` (line 151).
6 years ago
Steven Kirk
740709848a
Merge pull request #3948 from AvaloniaUI/fixes/prevent-invalid-draw-operation-bounds
Fixes/prevent invalid draw operation bounds
6 years ago
Dan Walmsley
cbda0e9d95
fix nits.
6 years ago
danwalmsley
bdd9124fcf
Merge branch 'master' into fixes/prevent-invalid-draw-operation-bounds
6 years ago
Steven Kirk
d138523b8e
Set owner on Styles children.
And added some unit tests.
6 years ago
Dariusz Komosinski
93320e4759
Only subscribe to Path.Data when Path is attached to the visual tree.
6 years ago
Dariusz Komosinski
b3c0035b0b
Add failing leak test for Path control.
6 years ago
Dariusz Komosiński
9a9d0dc07b
Merge branch 'master' into docs-shape
6 years ago
Steven Kirk
eec2a05a26
Don't use ResourcesChanged to propagate.
Instead of each control listening to its parent `ResourcesChanged` event, use the logical tree to propagate `ResourcesChanged` events:
- When attaching to the logical tree, piggyback on the `AttachedToLogicalTree` traversal
- At other times, propagate by calling `NotifyResourcesChanged`
6 years ago
Dariusz Komosiński
31fa9a9fcb
Merge branch 'master' into Fix3954
6 years ago
Jumar Macato
80d233c342
Merge pull request #3895 from AvaloniaUI/fixes/3887-transitions-styled-property
Make Transitions a styled property
6 years ago
Jumar Macato
8525510ae6
Merge branch 'master' into fixes/3887-transitions-styled-property
6 years ago
Wiesław Šoltés
4eef1c1179
Make DrawingContext.PushSetTransform method public
6 years ago
Steven Kirk
42859fae89
Refactored resources.
Split resource nodes into two types:
- `IResourceHost` represents controls and `Application`
- `IResourceProvider` represents resource dictionaries and styles, these are owned by `IResourceHost`s
Dynamic resources are now always resolved from an `IResourceHost`: if an `IResourceProvider` doesn't have a host then a dynamic resource in the resource provider will not be resolved. Resource providers no longer have a `ResourcesChanged` event, instead they notify their `IResourceHost` owner of a resource change by calling the `NotifyHostedResourcesChanged` method.
6 years ago