Steven Kirk
1e926dac72
Added failing tests for #10110 .
3 years ago
Max Katz
35662ad4cb
Allow only well known ThemeVariant values in xaml compiler, add more documentation.
3 years ago
Dmitry Zhelnin
a2c7f67c41
throw XamlParseException if there are duplicate property setters in style or control theme
3 years ago
Max Katz
be22b361c8
Add theme variants specific tests
3 years ago
Simon Cropp
9d075fe2a9
Update ControlTemplateTests.cs
3 years ago
Simon Cropp
dba476c11c
fix more typos
3 years ago
Max Katz
8a78f134c5
Remove JetBrains.Annotations from the repo
3 years ago
Steven Kirk
40228a3886
Ensure required assemblies are loaded.
And ensure the ResUri parsers are initialized.
3 years ago
Steven Kirk
4a92fadd34
Fix StyleIncludeTests.
Wasn't finding `RelativeSource` type at times.
3 years ago
Steven Kirk
2ae5c9c0fe
Reimplement IChildIndexProvider.
3 years ago
Steven Kirk
5d1f9f4a0f
Removed VirtualizationMode.
If you want a different virtualization mode, use a different panel.
3 years ago
Max Katz
bdceb1c3df
Do not require matching ctor, if top level element
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
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
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
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
Max Katz
fcf26fe4f2
Inject generated types into Ref assembly as well
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
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
Steven Kirk
71785b73d8
Initial refactor of AvaloniaObject value store.
Most (but not all) tests passing, all features mostly implemented exception coercion.
4 years ago
Benedikt Stebner
fdb19912b8
Fix tests
4 years ago
Benedikt Stebner
1408e52199
Add IAddChild support
4 years ago
Steven Kirk
5c6eeed4fa
Initial support for deferred resources in XAML compiler.
4 years ago
Steven Kirk
8c61f25188
Promote theme to LocalValue if applied from style.
4 years ago
Steven Kirk
dee353bb96
Support ControlTheme in XAML compiler.
4 years ago
Steven Kirk
902703fbed
Allow nested styles inline in parent style XAML.
Removes the need to enclose nested styles in a `<Style.Children>` element in XAML.
4 years ago
Max Katz
bc2179b337
Add XDataType_Should_Be_Ignored_If_DataType_Has_Non_Standard_Name test
4 years ago
Max Katz
1d9645f01f
Validate DataTemplates
4 years ago
Max Katz
d2af5dbcac
Implicitly map x:DataType to a DataType on a DataTemplate.
4 years ago
Steven Kirk
556adb4bc7
Use ^ as nesting selector.
`&` causes problems in xml files.
4 years ago
Steven Kirk
646ce23bb4
Initial XAML implementation of nested styles.
4 years ago
Steven Kirk
f8706278a8
Make OnPropertyChanged non-generic.
4 years ago
Benedikt Stebner
9250d93407
Implement embedded runs
Improve text edit navigation
Implement IncrementalTabWidth
4 years ago
Dariusz Komosinski
d9909ab527
Cleanup test.
4 years ago
Dariusz Komosinski
0d32823c59
Fixed compiled self binding not working from setters. Add extra tests for both reflection and compiled bindings.
4 years ago
Benedikt Stebner
95769ff007
Add TextBlock inlines support
4 years ago
Steven Kirk
beaf956af7
Use TemplatedParent priority in ControlTemplates.
4 years ago
Steven Kirk
f7ff0a0289
More failing tests for ControlTemplate resources.
4 years ago
Steven Kirk
351be2f4b2
Use style priority for attached values in templates.
4 years ago
Steven Kirk
a26059630f
Add failing test for control template value priority.
Add tests to check that template values are assigned with Style priority and move other XAML control template tests alongside it in a new test class.
4 years ago