Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Stephane Delcroix c71149c89b
[X] add callback for previewer on failing ctor (#5101)
Add a callback when object instantiation or creation fails, so the
previewer can replace it by an educated guess
2019-02-04 09:41:17 +01:00
Stephane Delcroix 28a016d547 [X] throw XPE on missing element .ctor (#4786)
* [X] throw XPE on missing element .ctor

In case of runtime parse, wrap the MissingMethodException in a
XamlParseException, to get lineInfo. In case of XamlC, detect missing
constructor and fail early.

- fixes #4751

* fix for ns1.0
2018-12-18 16:54:45 -07:00
Stephane Delcroix f3c5405033
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
2018-11-09 10:03:17 +01:00
Stephane Delcroix b0e8a12022
Namescope enhancements (#2556)
* [Xaml] open non-generic FindByName()

* [Xaml[C]] Only set the namescope when it's different

avoid setting the NamesCope if it's the same as the parent.

Also provide an IReferenceProvider for markup extension that need to
replicate the x:Reference behavior.
2018-05-03 20:06:52 +02:00
Stephane Delcroix d228656ec0 [Xaml[C]] consider subclass of RDs as RDs (#2487)
- fixes #2483
2018-04-19 20:50:47 -07:00
Stephane Delcroix a24c7e5808
[Xaml[C]] avoid processing RD content multiple times (#1559)
Stop the RD visitor on the RD node, as the SetPropVisitor is taking over

fixes #1554
2018-01-11 20:03:12 +01:00
Stephane Delcroix 172435c1a9 [Xaml] Chain op_implicit for OnPlatform (if needed) (#1176)
* [Xaml] Chain op_implicit for OnPlatform (if needed)

For OnPlatform<T>, if a conversion for T to the destination type exists,
first convert OnPlatform<T> to T, the T to the dest type

Also unify the way we look for op_implicit operators

* [Xaml] only apply the double opImplicit if a flag is set

* [C] allow conversion on parameter
2017-10-18 09:15:11 +02:00
Stephane Delcroix a7d12e620c [Xaml/XamlC] better RD inflation (#1148)
* [Xaml] Fix and simplifies FillRDVisitor, other minor refactorings

* [XamlC] Fix RD inflating
2017-09-25 08:52:03 +02:00
Stephane Delcroix f30aa8ae2c [Xaml[C]] Do not instantiate DataTemplate Content at parsing time (#683)
* [Xaml] rename VisitChildrenFirst

* [Xaml] rework SkipChildren in XamlNode

* [Xaml] fix 45179

* fix
2017-01-25 14:47:27 +01:00
Stephane Delcroix 39f2deb5e0 [Xaml] support arrays as x:Arguments (#545)
* [Xaml] port some FactoryMethod tests to XamlC

* [Xaml] support array parameters in factory ctors

* [XamlC] support arrays as x:Arguments

* fix build
2016-12-04 22:08:11 +01:00
Stephane Delcroix 3e0ee965d7 [Xaml] more primitive types (#385)
* [Xaml] more builtin conversion, and more type primitives

* [XamlC] more builtin conversion, more type primitives
2016-09-27 11:10:39 -07:00
Stephane Delcroix 2d5785731e [Xaml] allow compatible arguments for x:Factory (#382) 2016-09-26 13:40:04 -07:00
Stephane Delcroix 55f066584c [XamlC] Compiled converters (#358) 2016-09-26 13:29:47 -07:00
Stephane Delcroix 90396b0ffd Refix mc ignorable (#302)
* Revert "Fix mc ignorable (#298)"

This reverts commit 31c2be29d5.

* [Xaml] fix mc:Ignorable
2016-08-15 13:07:35 -07:00
Stephane Delcroix 775df09a3e [Xaml] x:Static in x:Arguments (#288)
* [Xaml] Support x:Static as x:Arguments

* [XamlC] allow x:Static in x:Arguments

* fix typo, remove commented code
2016-08-15 13:06:11 -07:00
Stephane Delcroix 31c2be29d5 Fix mc ignorable (#298)
* [Xaml] when ignoring nodes, ignore children as well

* [XamlC] ignore on xamlc too
2016-08-11 20:33:22 -07:00
Stephane Delcroix cdd6d4defc Merged ResourceDictionary (#97)
* [X] Support Merged RD

* [X] Support RD as xaml roots

* [XamlC] I have no idea how that used to work before

* [C] Remove debugging statements

* fix docs
2016-04-17 14:59:44 -07:00
Stephane Delcroix c92297047c [X] internal CreateFromXaml () (#77) 2016-04-12 09:46:39 -07:00
Jason Smith 17fdde66d9 Initial import 2016-03-22 16:13:41 -07:00