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
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
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
José Pedro
7cccc6bda0
Use nameof where possible.
8 years ago
Steven Kirk
d01e19e3f4
Added failing test for #1275 .
8 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
0440794d79
Clean up tests and fix PR feedback.
9 years ago
Jeremy Koritzinsky
3b1b3cb9cd
Change test logic to working version.
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
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
Steven Kirk
f6ed69be28
StyleResource -> DynamicResource
9 years ago
Steven Kirk
c7e1e5ddaa
Moved StaticResourceTests.
9 years ago
Steven Kirk
4268014e66
A few tweaks.
9 years ago
Steven Kirk
4a9302b61e
More work on static resources.
Also found a scenario that Portable.Xaml can't seem to handle...
9 years ago
Steven Kirk
0b0667f5ee
Delay load static resources if necessary.
9 years ago
Steven Kirk
fe3c5d0290
Get Appplication.Resources from StaticResource.
9 years ago
Steven Kirk
b166b9c3fb
Started adding StaticResource.
9 years ago
Steven Kirk
84aa27162f
Made a start adding Control/Application.Resources.
9 years ago
Steven Kirk
3c382decbc
Added FindAncestor binding mode.
This uses the same (fugly) syntax as WPF for now. As discussed in #590 I'd like to add some syntactic sugar over this
9 years ago
Steven Kirk
56d7ee5ea8
Added tests for existing RelativeSource modes.
9 years ago
Nikita Tsukanov
9134723eef
Dead code elimination
9 years ago
Steven Kirk
3eb5e0e200
Tweaked logging of binding errors.
1. Fixed some tests to expect `BindingNotification`s to be returned on a broken binding chain.
2. Changed logging of `BindingNotification`s - log at `Warning` level (instead of `Error`) except when the binding chain is broken at the root, in which case log at `Information` level. Do this to prevent flooding the output window when initializing.
9 years ago
Andrey Kunchev
b798e3ffd4
fix unit test for SolidColorBrush
9 years ago
Andrey Kunchev
1f530c20f4
minor refactorings
9 years ago
Andrey Kunchev
f7bba472e4
tests for Grid Row and Col definitions
9 years ago
Andrey Kunchev
895cdb4b14
ensure style include is built from Markup extension
9 years ago
Andrey Kunchev
ac976a30bb
fixed review comments
9 years ago
Steven Kirk
65f9fe67f7
Added a set of immutable brushes.
Make `SolidColorBrush` immutable, but make the static `Brushes`
properties return immutable brushes. The immutable brushes will be
needed by the deferred renderer.
9 years ago
Steven Kirk
c3f71bc1c6
Added tests for stream binding operator in XAML.
9 years ago
Andrey Kunchev
824429b049
2 more unit test for parsing avalonia properties without getter or setter
9 years ago
Andrey Kunchev
e7de0aeb2e
added 2 more tests for creation order in xaml
9 years ago
Andrey Kunchev
84ac0cec54
added failing test for 2 way binding to IList avalonia property
9 years ago
Andrey Kunchev
ff5a8459c7
clean up and skip portable xaml failing test for xaml creation order, it's not valid for portable xaml context
9 years ago
Andrey Kunchev
a010d5c37a
use Delayed Bindings for all properties except datacontext
9 years ago
donandren
9d93b83fa6
WIP: really cache xaml types and props and other and other minor things
9 years ago