José Pedro
f281e81530
Fixed typo.
Whitespace fixes.
5 years ago
Steven Kirk
b16820a230
Added failing test for application resources.
`DynamicResource` in `Application.Resources` fails to resolve resource.
5 years ago
Steven Kirk
34b5f07e96
Added failing tests for #5027 .
We shouldn't subscribe to bindings until needed.
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
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
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
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
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
Jeremy Koritzinsky
f9993e8980
Rename BindingExtension->ReflectionBindingExtension.
Implement x:CompileBindings directive to toggle between transforming Binding->ReflectionBindingExtension and Binding->CompiledBindingExtension.
Expose a property on AvaloniaXamlIlCompiler to set the default transformation.
7 years ago
Jeremy Koritzinsky
5e5e7e22ae
Support synthetic Source property.
7 years ago
Jeremy Koritzinsky
c0c1ccb544
Enable transforming old-style RelativeSource/ElementName properties in CompiledBindings to element path nodes during XamlIl compilation.
7 years ago
Jeremy Koritzinsky
70ae77e797
Fix ElementName bindings.
7 years ago
Jeremy Koritzinsky
d89f5d019b
Fix assigning binding paths via the property.
7 years ago
Jeremy Koritzinsky
7020def354
Throw exception if trying to compile a binding under an element with its DataContext bound via a non-compiled binding.
7 years ago
Jeremy Koritzinsky
5c91a14536
Fix failing test.
7 years ago
Jeremy Koritzinsky
84b4b8c12e
x:DataContextType -> x:DataType to match Xamarin.Forms.
7 years ago
Jeremy Koritzinsky
777693cee2
Implement smart inference for DataTemplates. Fix calculated DataContext types for DataContext bindings.
7 years ago
Steven Kirk
a6c9086782
Fix flaky XAML tests.
Make tests that load XAML inherit from `XamlTestBase` which ensures that `Avalonia.Markup` is loaded.
7 years ago
Jeremy Koritzinsky
da00a14149
Change property notification management to directly create property accessors. Fix indexer bindings for arrays.
PR Feedback.
7 years ago
Nikita Tsukanov
f9561260a3
IPopupImpl is now optional advanced feature
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Jeremy Koritzinsky
ee46a69cef
Add additional test for IObservable compiled bindings.
7 years ago
Jeremy Koritzinsky
b1a2ea21c5
Fix stream bindings.
7 years ago
Jeremy Koritzinsky
e3bc5345ae
Finish initial implementation of compiled bindings. Still some bugs to work out, but we have something that works now.
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Jeremy Koritzinsky
cf8244b37a
Move current contents of Avalonia.Markup to Avalonia.Base. Move Avalonia.Markup.Xaml.Data/Parser classes to Avalonia.Markup since they're not Xaml-specific.
Use pattern-matching switch.
Fix bug from cleanup.
8 years ago
Amadeusz Sadowski
c7f7640ae7
Removed comments about not working parent ambient providers
8 years ago
Amadeusz Sadowski
5dabc067ed
Added StaticResource tests for bindings within DataTemplate
8 years ago
Amadeusz Sadowski
8d11d7a5fa
BindingExtension Source tests and sample
#1521
8 years ago
Amadeusz Sadowski
3f87b9d02d
Support StaticResource in Bindings inside DataTemplate
8 years ago
Steven Kirk
a72ce3671d
Added ResourceInclude.
9 years ago
Steven Kirk
56c06be403
DynamicResource merged dictionary tests.
9 years ago