Resilient xaml (#4096)
authorStephane Delcroix <stephane@delcroix.org>
Fri, 9 Nov 2018 09:03:17 +0000 (10:03 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Nov 2018 09:03:17 +0000 (10:03 +0100)
commitf3c54050333578f134bf3b6050b2a97a2133f718
tree462aae33b1844a504c28f088d158bee796bc145d
parentaac2aeea6bc1409d468dc194c3e277b878f1f9ab
Resilient xaml (#4096)

* [Xaml] un-obsolete XamlLoader.Create

now that we plan to load Xaml files without compiling the ctor, keeping
XamlLoader.Create makes sense.

* [Xaml] add FallbackTypeResolver

* Additional tests

* More tests

* Further tests

* [Xaml] provide an mock App

* [C] allow re-registering implicit styles

* Some tweaks and reinstated test with missing resource key

* Add StyleAppliedToDerivedTypesAppliesToDerivedUnknownType test

* Renamed some stuff for consistency. Added some CSS tests.

* Remove use of ValueTuple

* Temporarily disable failing tests

* redirect valueprovider exceptions to the handler, allow the handler to intercept excpetion with Create()

* fix the CSS situation

* new callback, works for CSS
Xamarin.Forms.Core/Element_StyleSheets.cs
Xamarin.Forms.Core/MergedStyle.cs
Xamarin.Forms.Core/Style.cs
Xamarin.Forms.Xaml.UnitTests/DesignTimeLoaderTests.cs [new file with mode: 0644]
Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj
Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs
Xamarin.Forms.Xaml/CreateValuesVisitor.cs
Xamarin.Forms.Xaml/XamlLoader.cs
Xamarin.Forms.Xaml/XamlParser.cs
Xamarin.Forms.Xaml/XamlServiceProvider.cs