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)
7 years ago
Andrey Kunchev
73be933bd0
add failing test for ControlTemplate can't be added to resources #3145
7 years ago
Andrey Kunchev
97f57c7bec
add test for style resources
7 years ago
Andrey Kunchev
a04d0b7bbb
add failing test for ControlTemplate don't respect TargetType
7 years ago
Steven Kirk
c2f3f3fdf2
Added failing tests for #3323 .
7 years ago
Steven Kirk
6be3acb46c
Make ValueStore typed.
Major refactor of the Avalonia core to make the styled property store typed.
7 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
0eb7b2d25e
Enable adding event handlers to Gestures events.
Added the `Add*Handler` and `Remove*Handler` events required by XAML in order to use attached event syntax. Added unit test to ensure this works.
7 years ago
Steven Kirk
d7357ec876
Remove ContentControlMixin.
And implement the functionality in the content controls themselves. `ContentControlMixin` was too complex and even with its complexity had bugs (such as in #2821 ). By moving the functionality to the content controls there is some repeated code but it's much more straightforward.
7 years ago
Nikita Tsukanov
766a4d69c8
Fixed escaped attribute values (e. g. StringFormat="\{0\}!")
7 years ago
Nikita Tsukanov
af4c1f06ad
Extra tests for markup extensions
7 years ago
José Pedro
f3dfddc112
Fixed Binding.DoNothing for MultiBinding.
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
ccfcbadc2f
Fix failing tests
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
c61644721e
Actually use parent name scope for templates
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fe5c1cec76
Use INameScope from IServiceProvider
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
Steven Kirk
2210b441a2
Moved attached layout code to Avalonia.Layout.
Also involved moving `Orientation` enum.
7 years ago
Steven Kirk
2fa8247f01
Removed MemberSelector.
7 years ago
Steven Kirk
fdd5d7afec
Added failing (skipped) test for #2592 .
7 years ago
José Pedro
5adf7c3a4c
Moved test to separate method.
7 years ago
Steven Kirk
0225023d53
Added failing tests for #2372 .
7 years ago
Nikita Tsukanov
8ad9a0f675
Compiled property paths
7 years ago
Nikita Tsukanov
c222070d84
Added IPropertyInfo and use it in IProvideValueTarget when possible
7 years ago
Nikita Tsukanov
76f9c8fdc5
Removed legacy XAML loader
7 years ago
Nikita Tsukanov
57e061366e
Use AvaloniaProperty<T> in test class
7 years ago
Nikita Tsukanov
86a48cf7d5
Fixed #2561
7 years ago
José Pedro
433c70a6c8
Added BindingOperations.DoNothing.
Added tests.
7 years ago