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
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
feadefc1a1
Run Mono/FullNET tests for all "core" libs except Avalonia.Controls
7 years ago
Nikita Tsukanov
effc7c09c6
Fixed #2228
7 years ago
Nikita Tsukanov
5136750bc3
Added nullable type converter proxy
7 years ago
Nikita Tsukanov
04228b6d03
Support for mc:Ignorable + d:DataContext
7 years ago
Jeremy Koritzinsky
2cd66f4d49
Fix PropertyParserTests.
8 years ago
Steven Kirk
dc6f14e775
Reader -> CharacterReader
And moved `CharacterReader` and `IdentifierParser` into Avalonia.Utilities.
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
ffcaa545bb
Added PropertyParser.
So we don't need to use a regex to parse property strings.
8 years ago
Steven Kirk
16e274d29a
Added some unit tests for #1764 .
8 years ago
Jeremy Koritzinsky
274d8d8e82
Fix #1717
8 years ago
Steven Kirk
b8f127fce7
Reimplemented TemplateBinding.
Rather than just use a standard `Binding`, make `TemplateBinding` a lightweight binding in the case where the binding is simply to a property on the templated parent.
8 years ago
Steven Kirk
740b6073f0
Escape braces in format string.
8 years ago
Steven Kirk
70440517ca
Initial implementation of StringFormat.
XAML tests failing because of https://github.com/cwensley/Portable.Xaml/pull/106
8 years ago
Jeremy Koritzinsky
79f9158c6d
Remove Sprache.
8 years ago
Jeremy Koritzinsky
b38b46a280
PR Feedback.
8 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
Steven Kirk
71c3cb3b72
Added failing assert for #1559 .
8 years ago
Steven Kirk
6dfd705660
Added failing test for #1548 .
Caused by a bug in Portable.Xaml: https://github.com/cwensley/Portable.Xaml/issues/95
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
bdc8100961
Fix failing tests.
8 years ago
Steven Kirk
7b4cd4f96d
Modify/add tests for non-registered properties.
We should change to the behavior of other XAML frameworks where non-registered `AvaloniaProperty`s can be set on `AvaloniaObject`s via code.
8 years ago
Steven Kirk
30e78dc5b6
Only run unit tests on .net core.
This allows us to run them on linux.
8 years ago
José Pedro
7cccc6bda0
Use nameof where possible.
8 years ago
Jeremy Koritzinsky
eb7c010462
Retarget .Net Framework projects to 4.7
Works around dotnet/standard#567 .
8 years ago
Steven Kirk
d01e19e3f4
Added failing test for #1275 .
8 years ago
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
8 years ago
Steven Kirk
3243e0fd15
Added failing test for #1303
`TemplateBinding_With_Null_Path_Works` is a failing test for #1303 , also added a passing test for the same thing with `Binding`: `Binding_With_Null_Path_Works`.
8 years ago
Jeremy Koritzinsky
f9b578ab0e
Make AncestorType required for ancestor searching via the visual tree.
8 years ago
Steven Kirk
5cc5b91930
Fix xunit warnings.
8 years ago
Nikita Tsukanov
9152cbbe72
Added a unit test for attached properties with namespace
8 years ago
Jeremy Koritzinsky
edf2018149
Refactored tests to move XAML Binding class tests into Avalonia.Markup.Xaml.UnitTests.
8 years ago
Jeremy Koritzinsky
0440794d79
Clean up tests and fix PR feedback.
8 years ago
Jeremy Koritzinsky
3b1b3cb9cd
Change test logic to working version.
8 years ago
Nikita Tsukanov
7affba4763
Cleaning splat
8 years ago
Jeremy Koritzinsky
8d22a25a66
Bring back original logic of test. Still trying to figure out what's going on.
8 years ago
Steven Kirk
ca0e346f49
Added failing test for #507 .
8 years ago
Steven Kirk
cc147db28d
Added more tests.
One failing.
8 years ago
Steven Kirk
d6b6a0fa96
Refactored InstancedBinding creation.
Previously it wasn't clear which constructor on `InstancedBinding` must be called for a particular binding mode. Refactored the constructors:
- We now have a single public ctor which takes an `ISubject`, as a subject can be used for all binding modes.
- Instanced bindings with other sources such as single values and `IObservables` are now constructed via static methods which only allow the correct sources for that binding mode
8 years ago
Jeremy Koritzinsky
745517f68e
Updated usage of Static and Type to be x:Static and x:Type.
8 years ago
Jeremy Koritzinsky
b0a1f3f3df
Update tests to use `x:Static`.
8 years ago
Jeremy Koritzinsky
7e4c16838b
Remove StyleResource markup extension tests.
8 years ago
Jeremy Koritzinsky
52617b4a58
Remove StyleResource and StyleBinding. Fold XamlBinding into Binding since that is the only place it is being used now.
8 years ago
Jeremy Koritzinsky
f869e3f178
Move path parsing into the binding extension. Our path shorthands will only work from XAML now. Now we can look up types.
8 years ago