Max Katz
c8120fbbe7
Update tests with "LoadGroup" method instead of assetloader hacks
3 years ago
Max Katz
4460de529e
Implement multiple documents loading and transforming in AvaloniaRuntimeXamlLoader
3 years ago
Steven Kirk
e074a70187
Refactored style invalidation/removal.
3 years ago
Steven Kirk
c29ed43e0e
Move attaching styles in tests to a helper.
The API is now internal, so this should prevent churn in the tests when the API changes.
3 years ago
Steven Kirk
1945345cd1
Rename TemplatedParent priority to Template.
It no longer represents just `TemplatedParent` bindings, but every value or binding created by a template.
3 years ago
Steven Kirk
326dac2328
Refactored how we switch control themes.
Instead of simply wiping all control themes and styles that are applied to a control, we can now just remove the `ValueFrame`s which relate to the control theme that was changed.
To do this, added `ValueFrame.FramePriority` which encodes both the `BindingPriority` and source of the frame (style, control theme, templated parent control theme).
3 years ago
Steven Kirk
273124603f
Added benchmark for changing control theme.
3 years ago
Steven Kirk
086c2c7e70
Don't apply styling in TopLevel ctor.
Applying styling in the constructor isn't a good idea as demonstrated by #8549..
Instead apply styling when showing a window, or if it's needed call `ApplyStyling` manually, e.g. in unit tests.
Fixes #8549
3 years ago
Steven Kirk
1a338ac087
Remove IStyler and make style apply internal.
- Removes the `IStyler` service and the `Styler` implementation
- Moves the logic for applying styles and control themes into `StyledElement`
- Removes the style `TryAttach` method from the public API
- Removes style caching for now - this will need to be added back
3 years ago
Steven Kirk
0db8d5a2d2
Refactored style attach benchmark.
Now tries to simulate an application with a lot of styles applied at different points in the logical tree.
Make `StyledElement.ApplyStyling` a public API in order to do this.
3 years ago
amwx
3f1a342e6f
Add some tests
3 years ago
Max Katz
c111b235f7
Fix static property getter/setter
3 years ago
Max Katz
7b00f34df8
Fix template parent compiled bindings with "!" in the beginning
3 years ago
Max Katz
07d53775ba
Make all themes AOT friendly by moving StyleInclude to the XAML
3 years ago
Max Katz
fcf26fe4f2
Inject generated types into Ref assembly as well
3 years ago
Max Katz
fa0cea97fe
Enable compiled bindings by default and fix all the usages + adjust some namespaces
3 years ago
Max Katz
bdd588fef8
Also check for previous XamlIlTypeSelector
3 years ago
Max Katz
ddeb27e0a3
CompiledBinding resolve template type from selector
3 years ago
Max Katz
dc0c7e756a
Respect AvaloniaUseCompiledBindingsByDefault in previewer
3 years ago
Max Katz
5553958238
Remove RuntimeHostConfigurationOption
3 years ago
Max Katz
6bd6e9fd29
Reuse PlatformFact on some onplatform tests
3 years ago
Dan Walmsley
07f6a43128
fix integration tests.
3 years ago
Dan Walmsley
9311d88a26
fix gesture tests on macos
3 years ago
Benedikt
73a892f13e
Only run tests on Windows
3 years ago
Dan Walmsley
ad574e2c64
use net 7 for integration test app.
3 years ago
Emmanuel Hansen
588001d3e7
revert tests
3 years ago
Max Katz
12921c17f7
Refactor extension to use a custom xaml method
3 years ago
Max Katz
1fc811f82c
Fix touch tests
3 years ago
Benedikt Stebner
b295935286
Fix unpositioned GlyphRuns
3 years ago
Benedikt Stebner
b4e5ad0435
Add failing tests
3 years ago
Steven Kirk
2337d20df1
Add failing test for #8733 .
3 years ago
Steven Kirk
dbd1ac3af6
Fix DoubleTapped integration test.
`DoubleTapped` is raised on second pointer press, not release.
3 years ago
Steven Kirk
d0eb38b6ba
Add Tap size to IPlatformSettings.
And refactor that interface while we're at it. Also add a `DefaultPlatformSettings` implementation instead of implementing it in each backend with slightly different values.
3 years ago
Steven Kirk
9a50b9ee0c
Added integration tests for tapped gestures.
Some skipped on Windows as right button actions aren't supported by WinAppDriver.
3 years ago
Benedikt Stebner
0d889da820
Remove redundant member
3 years ago
Benedikt Stebner
2f5c5494b4
Add failing test
3 years ago
Benedikt Stebner
17b2834d21
Implement letter spacing
3 years ago
Steven Kirk
ae72b81af9
Remove empty frames.
In doing so, merged `ValueStore.OnBindingCompleted` into `OnValueEntryRemoved` as they were doing the same thing.
3 years ago
Steven Kirk
0cdedaaca5
Added failing transition test.
3 years ago
Steven Kirk
459d195a7a
Added a few more coercion tests (1 failing).
3 years ago
Emmanuel Hansen
6384c49cdb
update tests
3 years ago
Benedikt Stebner
04b8f3b388
Fix headless
3 years ago
Steven Kirk
fd46119d74
Add failing test for Viewbox DataContext binding.
3 years ago
Benedikt Stebner
2a547d7161
Introduce GlyphMetrics
3 years ago
Max Katz
0c84ae68b9
Add AvaloniaXamlIlSetterTargetTypeMetadataTransformer to allow SetterTargetType
3 years ago
Max Katz
3d4b0ae91c
Reenable form factor markup extension with some tests
3 years ago
Max Katz
06a68751a4
Move IsOnPlatform method to the xaml helpers class
3 years ago
Steven Kirk
de852142a4
Speed up tests a little.
3 years ago
Steven Kirk
d413fbbb8e
Handle fullscreen windows better on mac.
3 years ago
Steven Kirk
ccf1a35cc9
Child/Modal windows cannot be fullscreen on macOS.
3 years ago