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
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
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
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
c61644721e
Actually use parent name scope for templates
7 years ago
Nikita Tsukanov
fe5c1cec76
Use INameScope from IServiceProvider
7 years ago
Steven Kirk
fdd5d7afec
Added failing (skipped) test for #2592 .
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
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
Nikita Tsukanov
5a47b295e3
Use !XamlIlPopulateOverride to populate class with precompiled xaml at runtime
7 years ago
Nikita Tsukanov
fe251ee1aa
Support for properties "attached" by AddOwner
7 years ago
Nikita Tsukanov
be404c342b
Fixed :not selector and fixed MyButton in tests
7 years ago
Nikita Tsukanov
ece2199d57
Disable tests checking that read-only properties can be set
7 years ago
Nikita Tsukanov
d0301bb4c4
Now passing most of the tests
7 years ago
Steven Kirk
f85995ed7e
Move design-time handling of events...
...to `Avalonia.Markup.Xaml`. Also added tests: tests required a new instance of `AvaloniaXamlSchemaContext` for each `AvaloniaXamlLoader` as otherwise one test can affect other tests.
7 years ago
Nikita Tsukanov
4c7551b9fa
CECIL
7 years ago
Steven Kirk
131a4d90ef
Remove Avalonia.ISupportInitialize.
This is a relic from when we were targeting a PCL profile that didn't have `System.ComponentModel.ISupportInitialize`. Now that we have that, use it instead.
7 years ago
Steven Kirk
233adc9ca5
Added `:not()` style selector.
7 years ago
Nikita Tsukanov
04228b6d03
Support for mc:Ignorable + d:DataContext
8 years ago
Steven Kirk
62526bef35
Don't disallow setting unregistered properties.
The changes made to the animation system in #1768 currently needs to be able to set any property on any object in order for animations on transforms to work.
8 years ago
Steven Kirk
5210926c03
Disallow setting unregistered properties.
8 years ago
Steven Kirk
16e274d29a
Added some unit tests for #1764 .
8 years ago
Jeremy Koritzinsky
274d8d8e82
Fix #1717
8 years ago