Steven Kirk
f46c62801e
Convert Color resources to brushes.
Make `StaticResource` and `DynamicResource` automatically convert `Color`s to `ImmutableSolidColorBrush`es and add a `ColorToBrushConverter` for use by bindings.
To do this I made `GetResourceObservable` accept an optional conversion function.
6 years ago
Dan Walmsley
ed375b5780
Allow tests to pass as we expect a KeyNotFound exceptions.
6 years ago
Dan Walmsley
455c899876
Add failing unit tests.
6 years ago
Steven Kirk
dcdaf5e0bf
Don't raise ResourceChanged on reparenting...
...when the new parent isn't attached to the tree. This prevents us sending a load of useless `ResourcesChanged` events.
6 years ago
Steven Kirk
d138523b8e
Set owner on Styles children.
And added some unit tests.
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
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
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
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 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
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
a72ce3671d
Added ResourceInclude.
9 years ago
Steven Kirk
56c06be403
DynamicResource merged dictionary tests.
9 years ago
Steven Kirk
91387a74e1
Start testing MergedDictionaries.
9 years ago
Steven Kirk
2c1efe3773
Static resource as binding converter
Enable using a `StaticResource` as a binding converter. Fixes #818 .
9 years ago
Steven Kirk
fcee846228
Added tests for #1020
Passing. Closes #1020 .
9 years ago
Steven Kirk
a0bda15576
More resource extension tests.
One failing.
9 years ago
Steven Kirk
71e8b4fc69
Update dynamic resources on set parent.
9 years ago
Steven Kirk
0e155bd2d4
Make dynamic resources work in more situations.
Fixes #492 in a fashion: `DynamicResource` now works for this scenario.
9 years ago
Steven Kirk
513efe99f7
Start making DynamicResource react to changes.
9 years ago
Steven Kirk
61848673d2
Renamed test classes.
9 years ago
Steven Kirk
b459445290
Use an anchor for dynamic resources.
9 years ago
Steven Kirk
eda7c1f09d
Added more tests.
Some failing.
9 years ago
Steven Kirk
38dce7b7cd
Added DynamicResourceExtension.
9 years ago
Steven Kirk
c7e1e5ddaa
Moved StaticResourceTests.
9 years ago