Yoh Deadfall
741f3458d4
Allowed empty templates
5 years ago
Nikita Tsukanov
61792ce45f
Allow binding to classes with Classes.ClassName
5 years ago
artyom
b7b5eaa702
Add a failing test
5 years ago
Steven Kirk
1a39210feb
Fix ncrunch.
5 years ago
José Pedro
f281e81530
Fixed typo.
Whitespace fixes.
5 years ago
Dan Walmsley
8ac7127809
sign more test assemblies
5 years ago
Steven Kirk
b16820a230
Added failing test for application resources.
`DynamicResource` in `Application.Resources` fails to resolve resource.
6 years ago
Steven Kirk
ad677f0ff4
Added failing test for #4900 .
6 years ago
Steven Kirk
34b5f07e96
Added failing tests for #5027 .
We shouldn't subscribe to bindings until needed.
6 years ago
Andrey Kunchev
cc1051efa3
add failing test for set of base class property
6 years ago
Nikita Tsukanov
b229acf8dc
Don't use the concrete type in tests
6 years ago
Andrey Kunchev
f9de2a9c82
add more tests for CompiledBinding Source with StaticResource
6 years ago
Andrey Kunchev
80a87d7aa3
add failing tests for CompiledBidning with Source set to StaticResource and x:Static
6 years ago
Andrey Kunchev
bf2dfff8f6
add test for casting after indexer
6 years ago
Andrey Kunchev
ebe1af51a9
modify tests to c# style casting in binding path
6 years ago
Andrey Kunchev
fa754bcaa2
add test for converter with parameter in compiled binding
6 years ago
Andrey Kunchev
9633300e5d
add few more tests for cast in binding path
6 years ago
Andrey Kunchev
df95ba630d
add test for $parent as it look like not working for compiled binding
6 years ago
Andrey Kunchev
0036bf22c4
add tests for reflection binding for casting in path
6 years ago
Andrey Kunchev
604a8b635f
add some tests for cast in path expression
6 years ago
Giuseppe Lippolis
a222bf9239
Add test to check ViewModel is Collected
6 years ago
Giuseppe Lippolis
9f3ed1c8fe
Add testing
6 years ago
Nikita Tsukanov
6c89473ca1
Fixed tests
6 years ago
Nikita Tsukanov
d355007c57
Extracted runtime XAML loader to a separate package
6 years ago
Jeremy Koritzinsky
5fb7fe3c32
Fix Discovering properties and indexers on parent interfaces of an interface type.
Fixes #4234
6 years ago
Steven Kirk
8d2af50808
Add failing tests for #3552 .
6 years ago
Steven Kirk
5e16897137
Unwrap BindingNotification in MultiBinding.
And add some unit tests.
6 years ago
Steven Kirk
f46c62801e
Convert Color resources to brushes.
Make `StaticResource` and `DynamicResource` automatically convert `Color`s to `ImmutableSolidColorBrush`es and add a `ColorToBrushConverter` for use by bindings.
To do this I made `GetResourceObservable` accept an optional conversion function.
6 years ago
Dan Walmsley
ed375b5780
Allow tests to pass as we expect a KeyNotFound exceptions.
6 years ago
Dan Walmsley
455c899876
Add failing unit tests.
6 years ago
Steven Kirk
dcdaf5e0bf
Don't raise ResourceChanged on reparenting...
...when the new parent isn't attached to the tree. This prevents us sending a load of useless `ResourcesChanged` events.
6 years ago
Steven Kirk
d138523b8e
Set owner on Styles children.
And added some unit tests.
6 years ago
Steven Kirk
42859fae89
Refactored resources.
Split resource nodes into two types:
- `IResourceHost` represents controls and `Application`
- `IResourceProvider` represents resource dictionaries and styles, these are owned by `IResourceHost`s
Dynamic resources are now always resolved from an `IResourceHost`: if an `IResourceProvider` doesn't have a host then a dynamic resource in the resource provider will not be resolved. Resource providers no longer have a `ResourcesChanged` event, instead they notify their `IResourceHost` owner of a resource change by calling the `NotifyHostedResourcesChanged` method.
6 years ago
Steven Kirk
8e7c0e1c59
Make Transitions a styled property.
This requires that a `<Transitions>` element is used to contain the transitions in XAML and a `new Transitions()` is used when assigning transitions from code.
6 years ago
Steven Kirk
4a752c3f48
Get non-animated change information.
- Pass information for all property changes to `OnPropertyChangedCore`; whether they result in an effective value change or not
- Added `GetBaseValue` to get a value with a specified priority
- Change the signature of `OnPropertyChanged` again to take an `AvaloniaPropertyChangedEventArgs<T>`
6 years ago
Andrey Kunchev
fb1da608f8
add failing tests for point parsing
6 years ago
Andrey Kunchev
df35f61906
add failing tests for parsing points in xaml
6 years ago
Steven Kirk
ab67200954
Implement finding common base type.
Had to also change the unit test to use controls that all have the `Background` property in a common base type.
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Steven Kirk
370590f3e0
Add failing tests for #2838 .
6 years ago
Steven Kirk
e9256a9e40
Initial implementation of add/remove styles.
Only currently works on top-level `Styles` collections, not working in `Application.Styles`.
6 years ago
Steven Kirk
30e8cac05d
Update to .NET core 3.1.
6 years ago
Steven Kirk
18537addd7
Fix problems with setter binding priorities.
We need to make sure to set up the bindings as soon as the setter is instanced, even if it's not activated immediately.
6 years ago
Steven Kirk
dc55d65287
Refactored styling.
- Don't use Rx in the styling system. Instead introduces `IStyleActivator` which is like an `IObservable<bool>`-lite in order to cut down on allocations.
- #nullable enable on touched files
6 years ago
Steven Kirk
7345336b9a
Added failing unit tests for #3590 .
6 years ago
José Pedro
6fabfdc561
Fixed BindingExtension.TargetNullValue default value.
6 years ago
Luis von der Eltz
d88640b1ea
!B Fixing test
6 years ago
Luis v.d.Eltz
e89d5af718
Adding unit test
6 years ago
Andrey Kunchev
b1cc2a1d9c
enable valid xamlil test (disabled before because of portable.xaml)
6 years ago
Andrey Kunchev
73be933bd0
add failing test for ControlTemplate can't be added to resources #3145
6 years ago