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
Andrey Kunchev
97f57c7bec
add test for style resources
6 years ago
Andrey Kunchev
a04d0b7bbb
add failing test for ControlTemplate don't respect TargetType
6 years ago
Steven Kirk
c2f3f3fdf2
Added failing tests for #3323 .
6 years ago
Steven Kirk
6be3acb46c
Make ValueStore typed.
Major refactor of the Avalonia core to make the styled property store typed.
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
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
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
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
Nikita Tsukanov
bcd98ecfa6
Updated XamlIl
7 years ago
Nikita Tsukanov
f556db57b4
Refactor pointer events to support touch events
7 years ago
Nikita Tsukanov
dd85f48c43
Update target and declaring types for properties of the root object with x:Class, fixes #2520
7 years ago
Nikita Tsukanov
67ea597d82
Properly pass root object instance to templates, fixes #2147 #2527
7 years ago
Steven Kirk
9d99cf699a
Remove test that is no longer true.
`UserControl`s should no longer be added to parent namescope.
7 years ago
Steven Kirk
208361b8fa
Don't register controls with parent namescope.
This reverts the changes in #843 because they were causing problems, as described by #2512 .
This should however not cause #829 to reappear because since #843 was merged we moved to Portable.Xaml and we're now registering controls with the root namescope in the XAML engine: b4577a1631/src/Markup/Avalonia.Markup.Xaml/PortableXaml/AvaloniaXamlObjectWriter.cs (L67)
Fixes #2512
7 years ago
Steven Kirk
1312626aed
Added failing test for #2512 .
7 years ago
Nikita Tsukanov
0a7c7fdfcf
Fixed TemplatedParent issue
7 years ago
Nikita Tsukanov
657447ff0c
Reproed binding issue
7 years ago
Nikita Tsukanov
10ef97cbf0
Fixed name
7 years ago
Nikita Tsukanov
afcb33c0fd
Make templated parent test more alike to the reported one
7 years ago
Nikita Tsukanov
20574f7c13
Test for reported TemplatedParent issue
7 years ago
Steven Kirk
d22282c151
Added failing tests for #2470 .
7 years ago