Steven Kirk
474d78b335
Deprecate IStyleable .
This was signalled for removal in #9553 , but I was hesitant to do it because it will be in use by a lot of code in order to override `StyleKey`. Instead of removing it, deprecate it and provide a virtual `StyledElement.StyleKeyOverride` property as the supported way of overriding a control's style key.
3 years ago
Martin Garstenauer
ec8cbeb37d
Fix FloatingResourceObservable listening for ActualThemeVariantChanged
3 years ago
Giuseppe Lippolis
20971097ca
test: Binding StringFormat without curly braces
3 years ago
Giuseppe Lippolis
cf2d107a19
test: fix test CompiledBinding Binding Command DependsOn
3 years ago
Max Katz
3f5a5e6bd8
Add test for #11172
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
3 years ago
Max Katz
b8ecad2cbc
Restore resource include validation
3 years ago
Max Katz
a507e92b31
Fix theme-dependend markup extensions not knowing current theme context
3 years ago
Steven Kirk
3882bc0217
Remove ControlTemplateResult.
Use `TempateResult<Control>` instead as described in #6666 .
Fixes #10525 .
3 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.
3 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
3 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
Steven Kirk
ba7e8a20b5
Added ItemsControl.ItemsSource.
`ItemsControl` now works more like WPF, in that there are separate `Items` and `ItemsSource` properties. For backwards compatibility `Items` can still be set, though the setter is deprecated. `Items` needed to be changed from `IEnumerable` to `IList` though.
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
29d92f75dc
Fix Relative Source with {x:Type} bindings
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
e9a01c6c21
Update naming
4 years ago
Max Katz
d8d2240ecb
Implement support for DataTypeInheritFromAttribute
4 years ago
Steven Kirk
0065a962ac
Move ItemsRepeater to separate assembly.
4 years ago
Max Katz
be22b361c8
Add theme variants specific tests
4 years ago
Simon Cropp
9d075fe2a9
Update ControlTemplateTests.cs
4 years ago
rabbitism
182e469066
feat: add UT for GeometryTypeConverter.
4 years ago
Simon Cropp
dba476c11c
fix more typos
4 years ago
Simon
876fa08812
move to a consistent langversion of 11
4 years ago
Max Katz
ab64b33470
Remove IRuntimePlatform.OperatingSystem API and replace with trimmable OperatingSystem API
4 years ago
Max Katz
9f633b8411
Fix OnPlatform-like extensions with a single input parameter
4 years ago
Max Katz
8a78f134c5
Remove JetBrains.Annotations from the repo
4 years ago
Steven Kirk
02fe8bcd4b
Fix missing FontManagerImpl exception.
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
Giuseppe Lippolis
2aa79269e8
fix: Address reviw
4 years ago