Martin Garstenauer
ec8cbeb37d
Fix FloatingResourceObservable listening for ActualThemeVariantChanged
3 years ago
Max Katz
0145dcc4b9
Fix nested ResourceDictionaries
3 years ago
robloo
9d76cdd3dd
Rename incorrect `Color.ToUint32` to `ToUInt32`
3 years ago
Max Katz
810558140f
Introduce static AssetLoader
3 years ago
Max Katz
4aa6035ec3
Reuse text and geometry related headless mocks in Avalonia unit tests and benchmarks
3 years ago
Max Katz
89e1680501
Fix DefinitionList parsing
4 years ago
Max Katz
b8ecad2cbc
Restore resource include validation
4 years ago
Max Katz
a507e92b31
Fix theme-dependend markup extensions not knowing current theme context
4 years ago
Steven Kirk
3882bc0217
Remove ControlTemplateResult.
Use `TempateResult<Control>` instead as described in #6666 .
Fixes #10525 .
4 years ago
Steven Kirk
1135895b73
Make Classes properties readonly.
Makes the `StyledElement.Classes` and `Flyout.FlyoutPresenterClasses` properties readonly. Adds a transformer to the XAML compiler to convert attribute syntax classes setters to collection syntax so that they will be added to the existing `Classes` object.
Prevents an unneeded allocation of a `Classes` object when setting `Classes` from XAML.
4 years ago
Steven Kirk
1a3b8fbcac
Don't allow binding to `ItemsControl.Items`.
Depends on https://github.com/kekekeks/XamlX/pull/85 : this PR disallows invoking "collection behavior" for property setters when using attribute syntax.
Required adding a `Flyout.FlyoutPresenterClasses` setter. This property was previously buggy without the setter (see https://github.com/AvaloniaUI/Avalonia/issues/10946#issuecomment-1506563268 ). Added tests for setting classes that I put in place when investigating this.
Fixes #10946
4 years ago
Max Katz
0fcf67d1cd
Add failing test
4 years ago
Steven Kirk
6dd9106fe5
Don't layout invisible controls.
And fix unit tests that were relying on this behavior.
4 years ago
Steven Kirk
22f266f994
ItemsRepeater.Items -> ItemsSource.
4 years ago
Steven Kirk
996578f2bf
Remove all remaining uses of Items setter.
4 years ago
Julien Lebosquain
e3c1cbd2e0
Nullable annotations for Markup.Xaml
4 years ago
Nikita Tsukanov
6a99ca39f9
Implemented dispatcher that works like WPF one
4 years ago
Steven Kirk
f8eceb4af9
Update usages of ItemsControl Items/ItemsSource.
- Use `ItemsSource` when appropriate
- When `Items` is appropriate, don't use the setter
4 years ago
Tom Edwards
f36cf7e3ba
Converted several "dataValidation" properties to StyledProperty
Changed Button.IsPressed to a read-only DirectProperty
4 years ago
Benedikt Stebner
f07e5de661
Make sure ItemsRepeater is loaded for XAML tests
4 years ago
Max Katz
af70f74c88
Workaround for the inherited default value bug
4 years ago
Max Katz
d5a5efa90c
Fix tests after style changes
4 years ago
Steven Kirk
1e926dac72
Added failing tests for #10110 .
4 years ago
Max Katz
f2050c868a
Extract theme related properties to IThemeVariantHost and move property definitions to ThemeVariantScope
4 years ago
Max Katz
35662ad4cb
Allow only well known ThemeVariant values in xaml compiler, add more documentation.
4 years ago
Dmitry Zhelnin
a2c7f67c41
throw XamlParseException if there are duplicate property setters in style or control theme
4 years ago
Max Katz
be22b361c8
Add theme variants specific tests
4 years ago
Simon Cropp
9d075fe2a9
Update ControlTemplateTests.cs
4 years ago
Simon Cropp
dba476c11c
fix more typos
4 years ago
Max Katz
8a78f134c5
Remove JetBrains.Annotations from the repo
4 years ago
Steven Kirk
40228a3886
Ensure required assemblies are loaded.
And ensure the ResUri parsers are initialized.
4 years ago
Steven Kirk
4a92fadd34
Fix StyleIncludeTests.
Wasn't finding `RelativeSource` type at times.
4 years ago
Steven Kirk
2ae5c9c0fe
Reimplement IChildIndexProvider.
4 years ago
Steven Kirk
5d1f9f4a0f
Removed VirtualizationMode.
If you want a different virtualization mode, use a different panel.
4 years ago
Max Katz
bdceb1c3df
Do not require matching ctor, if top level element
4 years ago
Max Katz
6ed60610c9
Add ServiceProvider to the xaml runtime loader too
4 years ago
Max Katz
de9e9580c0
Pass parent's service provider to the StyleInclude, so parents stack is complete
4 years ago
Max Katz
390221b3ce
Implement compile time MergedDictionaties
4 years ago
Max Katz
98cf91c385
Properly support relative Uris in StyleInclude/ResourceInclude
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
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
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