Nikita Tsukanov
04228b6d03
Support for mc:Ignorable + d:DataContext
8 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 .
9 years ago
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
9 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`.
9 years ago
Jeremy Koritzinsky
f9b578ab0e
Make AncestorType required for ancestor searching via the visual tree.
9 years ago
Steven Kirk
5cc5b91930
Fix xunit warnings.
9 years ago
Nikita Tsukanov
9152cbbe72
Added a unit test for attached properties with namespace
9 years ago
Jeremy Koritzinsky
edf2018149
Refactored tests to move XAML Binding class tests into Avalonia.Markup.Xaml.UnitTests.
9 years ago
Jeremy Koritzinsky
0440794d79
Clean up tests and fix PR feedback.
9 years ago
Jeremy Koritzinsky
3b1b3cb9cd
Change test logic to working version.
9 years ago
Nikita Tsukanov
7affba4763
Cleaning splat
9 years ago
Jeremy Koritzinsky
8d22a25a66
Bring back original logic of test. Still trying to figure out what's going on.
9 years ago
Steven Kirk
ca0e346f49
Added failing test for #507 .
9 years ago
Steven Kirk
cc147db28d
Added more tests.
One failing.
9 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
9 years ago
Jeremy Koritzinsky
745517f68e
Updated usage of Static and Type to be x:Static and x:Type.
9 years ago
Jeremy Koritzinsky
b0a1f3f3df
Update tests to use `x:Static`.
9 years ago
Jeremy Koritzinsky
7e4c16838b
Remove StyleResource markup extension tests.
9 years ago
Jeremy Koritzinsky
52617b4a58
Remove StyleResource and StyleBinding. Fold XamlBinding into Binding since that is the only place it is being used now.
9 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.
9 years ago
Jeremy Koritzinsky
a29837dd04
Implement syntax sugar for RelativeSource (not including setting a specific AncestorType)
9 years ago
Jeremy Koritzinsky
83ee601735
Use TypeUtilities to convert the type of CommandParameter to the correct type.
9 years ago
Jeremy Koritzinsky
120eb2dde6
PR Feedback.
9 years ago
José Pedro
cc7098583e
Fixed Assert.Null warnings.
9 years ago
Nikita Tsukanov
913149d093
Switched to .NET Standard 2.0
9 years ago
Jeremy Koritzinsky
dff3031e20
Upgrade ReactiveUI to the v8 alpha nuget package so we don't need to maintain our own fork. Avalonia.ReactiveUI only registers the MainScheduler, and it does so via a call to UseReactiveUI on AppBuilder.
Update Rx.Net dependency to match reactiveui's dependency on Rx.
Removed ReactiveUI dependeny in BindingTests.
Updated BindingTest sample to use the new reactiveui APIs.
Update samples to use current ReactiveUI APIs.
Fixed bug I introduced into tests.
Remove RxUI submodule info from .gitmodules
9 years ago