Simon
876fa08812
move to a consistent langversion of 11
3 years ago
Max Katz
ab64b33470
Remove IRuntimePlatform.OperatingSystem API and replace with trimmable OperatingSystem API
3 years ago
Max Katz
9f633b8411
Fix OnPlatform-like extensions with a single input parameter
3 years ago
Max Katz
8a78f134c5
Remove JetBrains.Annotations from the repo
3 years ago
Steven Kirk
02fe8bcd4b
Fix missing FontManagerImpl exception.
3 years ago
Steven Kirk
40228a3886
Ensure required assemblies are loaded.
And ensure the ResUri parsers are initialized.
3 years ago
Max Katz
bdceb1c3df
Do not require matching ctor, if top level element
3 years ago
Giuseppe Lippolis
2aa79269e8
fix: Address reviw
3 years ago
Max Katz
6ed60610c9
Add ServiceProvider to the xaml runtime loader too
3 years ago
Max Katz
de9e9580c0
Pass parent's service provider to the StyleInclude, so parents stack is complete
3 years ago
Max Katz
390221b3ce
Implement compile time MergedDictionaties
3 years ago
Max Katz
98cf91c385
Properly support relative Uris in StyleInclude/ResourceInclude
3 years ago
Steven Kirk
6f03f1c3d6
Removed ITemplatedControl.
4 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
4 years ago
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
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.
4 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.
4 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).
4 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
4 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
4 years ago
Max Katz
c111b235f7
Fix static property getter/setter
4 years ago
Max Katz
7b00f34df8
Fix template parent compiled bindings with "!" in the beginning
4 years ago
Max Katz
fcf26fe4f2
Inject generated types into Ref assembly as well
4 years ago
Max Katz
bdd588fef8
Also check for previous XamlIlTypeSelector
4 years ago
Max Katz
ddeb27e0a3
CompiledBinding resolve template type from selector
4 years ago
Max Katz
dc0c7e756a
Respect AvaloniaUseCompiledBindingsByDefault in previewer
4 years ago
Max Katz
5553958238
Remove RuntimeHostConfigurationOption
4 years ago
Max Katz
6bd6e9fd29
Reuse PlatformFact on some onplatform tests
4 years ago
Max Katz
12921c17f7
Refactor extension to use a custom xaml method
4 years ago
Max Katz
0c84ae68b9
Add AvaloniaXamlIlSetterTargetTypeMetadataTransformer to allow SetterTargetType
4 years ago
Max Katz
3d4b0ae91c
Reenable form factor markup extension with some tests
4 years ago
Max Katz
06a68751a4
Move IsOnPlatform method to the xaml helpers class
4 years ago
Max Katz
9e41a88f46
Reimplement OnPlatform to inject IL code instead of markup extension
4 years ago
Dan Walmsley
a8ac68b36c
skip failing test for now.
4 years ago
Max Katz
0dfc280e8f
WIP
4 years ago
Giuseppe Lippolis
6213676115
fix: Address CA1822 rule
4 years ago
Giuseppe Lippolis
de4b55f8ee
feat(tests): Address rule CA1822
4 years ago
Takoooooo
d59a998440
Add test.
4 years ago
Takoooooo
426f4e1e64
Fix Tests.
4 years ago
Takoooooo
e05a0d0014
Fix DashStyle not applying values correctly.
4 years ago
Max Katz
41d31d8857
Add thickness test as well
4 years ago
Max Katz
6520722e54
Attempt to not deferr value types
4 years ago
Max Katz
705e9065a3
Add more tests for lazy resources
4 years ago
Max Katz
1731f88822
Rename Default to Simple
4 years ago
Max Katz
33931e99bb
Fix unit tests
4 years ago
Luis von der Eltz
8cae955688
Add another keyframe to UT
4 years ago
Luis von der Eltz
f6b50e5fde
Use StyledWindow services
4 years ago
Luis von der Eltz
04b7a8b0c1
Add UT
4 years ago
Steven Kirk
14f17f263c
Stop assert dialogs popping up in netfx tests.
4 years ago